Rover: fixed startup order of setting mavlink system ID

This commit is contained in:
Andrew Tridgell 2016-10-17 09:21:20 +11:00
parent 30da64f8ef
commit 114b885162
1 changed files with 2 additions and 2 deletions

View File

@ -92,6 +92,8 @@ void Rover::init_ardupilot()
GCS_MAVLINK::set_dataflash(&DataFlash); GCS_MAVLINK::set_dataflash(&DataFlash);
mavlink_system.sysid = g.sysid_this_mav;
// initialise serial ports // initialise serial ports
serial_manager.init(); serial_manager.init();
@ -132,8 +134,6 @@ void Rover::init_ardupilot()
frsky_telemetry.init(serial_manager, FIRMWARE_STRING, MAV_TYPE_GROUND_ROVER); frsky_telemetry.init(serial_manager, FIRMWARE_STRING, MAV_TYPE_GROUND_ROVER);
#endif #endif
mavlink_system.sysid = g.sysid_this_mav;
#if LOGGING_ENABLED == ENABLED #if LOGGING_ENABLED == ENABLED
log_init(); log_init();
#endif #endif