mirror of https://github.com/ArduPilot/ardupilot
AP_NMEA_Output: stop using AHRS as conduit for Compass pointer
This commit is contained in:
parent
c34284b6eb
commit
78e63a8852
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue