mirror of https://github.com/ArduPilot/ardupilot
Rover: fixed startup order of setting mavlink system ID
This commit is contained in:
parent
30da64f8ef
commit
114b885162
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue