Skip to content
Snippets Groups Projects
  1. Apr 09, 2012
  2. Mar 30, 2012
    • Andrew Tridgell's avatar
      Compass: added COMPASS_AUTODEC option · 825340d5
      Andrew Tridgell authored
      when this is 1 (which is the default), we will get the declination
      automatically via the AP_Declination library
      
      when it is 0 we will use the value configured by the user
      825340d5
  3. Mar 29, 2012
  4. Mar 28, 2012
  5. Mar 27, 2012
  6. Mar 11, 2012
  7. Feb 29, 2012
  8. Feb 25, 2012
  9. Feb 24, 2012
  10. Feb 13, 2012
  11. Jan 12, 2012
    • Doug Weibel's avatar
      Bug fix for compass. · 62221735
      Doug Weibel authored
      This is a fix for an interesting bug when a DCM matrix reset was added to the ground start.  This bug only showed up if (A) a ground start were performed after an air start or due to use of the "Calibrate Gryo" action, (B) if the current orientation were sufficiently different from 0/0/0, and (C.) if the particular magnetometer had sufficiently large offsets.  Why did resetting the DCM matrix to 0/0/0 pitch/roll/yaw at ground start cause a bug?  The magnetometer offset nulling determines the proper offsets for the magnetometer by comparing the observed change in the magnetic field vector with the expected change due to rotation as calculated from the rotation in the DCM matrix.  This comparison is made at 10Hz, and then filtered with a weight based on the amount of rotation to estimate the offsets. Normally it would take considerable time at normal in-flight rotation rates for the offset estimate to converge. 
      
      If a DCM matrix reset occurs when the offset nulling algorithm is up and running, the algorithm sees the DCM reset as a instantaneous rotation, however the magnetic field vector did not change at all.  Under certain conditions the algorithm would interpret this as indicating that the offset(s) should be very large.  Since the "rotation" could also have been large the filter weighting would be large and it was possible for a large erroneous estimate of the offset(s) to be made based on this single (bad) data point.
      
      To fix this bug methods were added to the compass object to start and stop the offset nulling algorithm.  Further, when the algorithm is started, it is set up to get fresh samples.  The DCM matrix reset method now calls these new methods to stop the offset nulling before resetting the matrix, and resume after the matrix has been reset.
      62221735
  12. Dec 28, 2011
  13. Jul 08, 2011
  14. Jun 28, 2011
  15. May 08, 2011
  16. Feb 20, 2011
  17. Feb 19, 2011
  18. Feb 14, 2011
Loading