mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: move responsibility for logging into library
This commit is contained in:
parent
5d996a289a
commit
14a8bf3aec
@ -202,9 +202,6 @@ void Plane::update_compass(void)
|
||||
{
|
||||
if (AP::compass().enabled() && compass.read()) {
|
||||
ahrs.set_compass(&compass);
|
||||
if (should_log(MASK_LOG_COMPASS) && !ahrs.have_ekf_logging()) {
|
||||
logger.Write_Compass();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,7 @@ void Plane::init_ardupilot()
|
||||
// initialise airspeed sensor
|
||||
airspeed.init();
|
||||
|
||||
AP::compass().set_log_bit(MASK_LOG_COMPASS);
|
||||
AP::compass().init();
|
||||
|
||||
#if OPTFLOW == ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user