mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: stop pointlessly passing serial manager around
This commit is contained in:
parent
ca449cd979
commit
e2df3225b2
@ -44,7 +44,7 @@ void Rover::init_ardupilot()
|
|||||||
serial_manager.init();
|
serial_manager.init();
|
||||||
|
|
||||||
// setup first port early to allow BoardConfig to report errors
|
// setup first port early to allow BoardConfig to report errors
|
||||||
gcs().chan(0).setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink, 0);
|
gcs().chan(0).setup_uart(AP_SerialManager::SerialProtocol_MAVLink, 0);
|
||||||
|
|
||||||
// Register mavlink_delay_cb, which will run anytime you have
|
// Register mavlink_delay_cb, which will run anytime you have
|
||||||
// more than 5ms remaining in your call to hal.scheduler->delay
|
// more than 5ms remaining in your call to hal.scheduler->delay
|
||||||
@ -81,7 +81,7 @@ void Rover::init_ardupilot()
|
|||||||
barometer.init();
|
barometer.init();
|
||||||
|
|
||||||
// setup telem slots with serial ports
|
// setup telem slots with serial ports
|
||||||
gcs().setup_uarts(serial_manager);
|
gcs().setup_uarts();
|
||||||
|
|
||||||
#if OSD_ENABLED == ENABLED
|
#if OSD_ENABLED == ENABLED
|
||||||
osd.init();
|
osd.init();
|
||||||
|
Loading…
Reference in New Issue
Block a user