AP_NMEA_Output: stop using AHRS as conduit for Compass pointer

This commit is contained in:
Peter Barker 2021-07-26 10:32:12 +10:00 committed by Peter Barker
parent c34284b6eb
commit 78e63a8852
1 changed files with 1 additions and 4 deletions

View File

@ -78,10 +78,7 @@ void setup(void)
vehicle.ahrs.init(); vehicle.ahrs.init();
AP::compass().init(); AP::compass().init();
if(AP::compass().read()) { if(!AP::compass().read()) {
hal.console->printf("Enabling compass\n");
vehicle.ahrs.set_compass(&AP::compass());
} else {
hal.console->printf("No compass detected\n"); hal.console->printf("No compass detected\n");
} }
AP::gps().init(serial_manager); AP::gps().init(serial_manager);