Ardupilot2/libraries/AP_Compass
Matthew Lloyd 60a4f74de6 AP_Compass: avoid division by zero if we haven't received any mag reports
Otherwise, get_field() will return NaNs after once every few calls to
read() during compassmot on PX4 platforms, which causes compassmot to fail.

This is a quick hack around the deeper issue, which could be something
like the PX4 mag driver experiencing starvation and skipping mag reports,
buffer overrun or something else that causes mag reports to be dropped.
Or perhaps we should never expect in the first place that we will always
receive at least one mag report between calls to read().
2014-03-23 21:22:32 +11:00
..
examples/AP_Compass_test Compass: split compass learning out to its own C++ file 2014-02-16 13:21:06 +11:00
AP_Compass_HIL.cpp AP_Compass: added vector compass setHIL method 2013-12-30 14:35:24 +11:00
AP_Compass_HIL.h AP_Compass: added vector compass setHIL method 2013-12-30 14:35:24 +11:00
AP_Compass_HMC5843.cpp AP_Compass: prevent bad initial values from affecting HMC5883 calibration 2014-01-22 17:15:34 +11:00
AP_Compass_HMC5843.h AP_Compass: removed old orientation defines 2013-05-02 12:48:14 +10:00
AP_Compass_PX4.cpp AP_Compass: avoid division by zero if we haven't received any mag reports 2014-03-23 21:22:32 +11:00
AP_Compass_PX4.h AP_Compass: auto-select healthy compass 2013-12-09 20:01:42 +11:00
AP_Compass.h AP_Compass: fixed indent-tabs-mode 2013-05-30 09:52:30 +10:00
Compass_learn.cpp AP_Compass: constrain compass offsets to +/- 2000 2014-02-16 13:33:41 +11:00
Compass.cpp AP_Compass: improved COMPASS_ORIENT and COMPASS_EXTERNAL for Pixhawk 2014-02-27 12:46:27 +11:00
Compass.h Compass: split compass learning out to its own C++ file 2014-02-16 13:21:06 +11:00
keywords.txt AP_Compass - changed include for AP_Math to use relative path (it was erroring for me at least when compiling ArduCopterNG with AP_Compass) 2010-12-12 14:02:21 +00:00