mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: move responsibility for logging into library
This commit is contained in:
parent
bf23f1df67
commit
7de995aa3e
@ -23,10 +23,6 @@ void Rover::update_compass(void)
|
|||||||
{
|
{
|
||||||
if (AP::compass().enabled() && compass.read()) {
|
if (AP::compass().enabled() && compass.read()) {
|
||||||
ahrs.set_compass(&compass);
|
ahrs.set_compass(&compass);
|
||||||
// update offsets
|
|
||||||
if (should_log(MASK_LOG_COMPASS)) {
|
|
||||||
logger.Write_Compass();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,6 +90,7 @@ void Rover::init_ardupilot()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// initialise compass
|
// initialise compass
|
||||||
|
AP::compass().set_log_bit(MASK_LOG_COMPASS);
|
||||||
AP::compass().init();
|
AP::compass().init();
|
||||||
|
|
||||||
// initialise rangefinder
|
// initialise rangefinder
|
||||||
|
Loading…
Reference in New Issue
Block a user