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.
Replies
Cant get Tricopter yaw servo to reverse using 2.5.5 beta
Randy wrote:
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.
But I am a newbie and is it possible to download the beta versions in the APm planner ?
Because I have the D version too.
Tomandy
With this issue in mind what are the plans for new batches of APM2 boards. What will end users receive? The original spec MPU6000 accelerometer scaling or will the new production batches continue to have the 2x factor in accel vaules?
Please confirm that the APMv2/FlowSensor patch is also NOT in this 2.5.5 release?
Thanks
M
I have the exact same issue, upside down the offset is 3000.
I'm using my APM 2.0 in a plane (arduplane 2.33) anyone can tell me if this defect will affect the dynamic of the flight?
Here are some logs for boards affected by the issue.
logs.zip
Same here.
2012-05-09 23-11-47.tlog
Log attached.
Also; do you think the crazy gyro behaviour in this video can be related: http://youtu.be/PqriyQ-eOU8
2012-05-09 17-52-44.tlog
Me too, Randy
2012-05-09 20-55-19.tlog
Same issue here.
2012-05-09 12-37-31.tlog