Developer

MPU6000 scaling issue

3690933314?profile=original

 

     Thanks to help from Sami Finnila and Wesley Chuen we've found an issue with the default MPU6000 accelerometer scaling in some of the recent APM2 boards shipped in the last month or so.  You can find the original discussion from Sami here.

     Internally we use "DCM" to merge the gyro and accelerometer values together to calculate attitude.  With the recent boards we are finding the accelerometer values are 2x as big as they should be which leads to an inaccurate attitude estimate.  It's apparently possible to fly with this misconfiguration but it at least makes "the leans" more common (you can recognise "the leans" by your copter requiring more and more manual roll or pitch to keep it level as you fly).

 

UPDATE (11-May-2012):

     Craig and Tridge have completed a patch to automatically detect the scaling of the accelerometer so we can compensate.

     This patched version is being called 2.5.5-Beta and is in the downloads area.  After a short testing period (maybe 24h ~ 48h), if all goes well it will be available in the mission planner.

     We're still working on the next official release 2.6 so we haven't included any improvements to flight dynamics in this patch except Adam's "Retro" loiter.  This uses the ground speed directly from the GPS instead of calculating it using lat/lon position.  You can enable this by setting the "RETRO_LOITER" parameter to "1".  BTW, it's "retro" because this is the method used in the popular 2.0.49 version of Arducopter.

 

     Feel free to post comments / issues regarding this patch release in the discussion below.

     If you have recieved an APM2 in the last month, please try the test shown above:

  • hold your APM2 flat and check the "az" value in the mission planner's Flight Data, Status screen is approximately 1000 (it should be for everyone, regardless of whether you have a new or old board)
  • hold your APM2 up-side-down (but still level) and check the "az" value again.  If it's not close to 1000 then we want your tlog!  :-)

 

     Next just roll and pitch your board a bit and attach your tlogs below.  These logs can be found in your AP Mission Planner's log directory.  On a windows machine you will likely find a recently updated file here: C:\Program Files (x86)\APM Planner\logs\YYYY-MM-DD HH-MM-SS.tlog

 

     Thanks for your help.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity