diff --git a/APMrover2/system.cpp b/APMrover2/system.cpp index 7cd4bb7631..56b441ff5c 100644 --- a/APMrover2/system.cpp +++ b/APMrover2/system.cpp @@ -92,6 +92,8 @@ void Rover::init_ardupilot() GCS_MAVLINK::set_dataflash(&DataFlash); + mavlink_system.sysid = g.sysid_this_mav; + // initialise serial ports serial_manager.init(); @@ -132,8 +134,6 @@ void Rover::init_ardupilot() frsky_telemetry.init(serial_manager, FIRMWARE_STRING, MAV_TYPE_GROUND_ROVER); #endif - mavlink_system.sysid = g.sysid_this_mav; - #if LOGGING_ENABLED == ENABLED log_init(); #endif