From 114b8851620da39f6c7ea06fd43f975b6f8ce575 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Oct 2016 09:21:20 +1100 Subject: [PATCH] Rover: fixed startup order of setting mavlink system ID --- APMrover2/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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