Sub: check dataflash to see if we should log backend gps messages

This commit is contained in:
Peter Barker 2017-06-27 18:13:32 +10:00 committed by Francisco Ferreira
parent 1ca5f243a5
commit f8d1ac47c7

View File

@ -85,7 +85,8 @@ void Sub::init_ardupilot()
hal.scheduler->register_timer_failsafe(failsafe_check_static, 1000); hal.scheduler->register_timer_failsafe(failsafe_check_static, 1000);
// Do GPS init // Do GPS init
gps.init(&DataFlash, serial_manager); gps.set_log_gps_bit(MASK_LOG_GPS);
gps.init(serial_manager);
if (g.compass_enabled) { if (g.compass_enabled) {
init_compass(); init_compass();