mageshms / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

Correct yaw using mag only when new heading has been received #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In DCM.pde it corrects the yaw using the latest Heading from the Compass 
whether or not a new value has actually been received from the mag.

We should use the APM_Compass.lastUpdate value to ensure a new value has 
actually been recieved since the previous iteration.

This will add some protection in cases where the mag fails and continuously 
returns the same heading.

Original issue reported on code.google.com by rmackay...@gmail.com on 20 Nov 2010 at 6:50

GoogleCodeExporter commented 8 years ago

Original comment by jasonshort on 8 May 2011 at 7:25