mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Vehicle: initialize scripting serial device sim ports early
Necessary for mavlink in particular to notice the port and hook up the protocol internally.
This commit is contained in:
parent
f5cc0b3093
commit
4cb684e8a9
@ -367,6 +367,14 @@ void AP_Vehicle::setup()
|
|||||||
networking.init();
|
networking.init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AP_SCRIPTING_ENABLED
|
||||||
|
#if AP_SCRIPTING_SERIALDEVICE_ENABLED
|
||||||
|
// must be done now so ports are registered and drivers get set up properly
|
||||||
|
// (in particular mavlink which checks during init_ardupilot())
|
||||||
|
scripting.init_serialdevice_ports();
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if AP_SCHEDULER_ENABLED
|
#if AP_SCHEDULER_ENABLED
|
||||||
// Register scheduler_delay_cb, which will run anytime you have
|
// Register scheduler_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
|
||||||
|
Loading…
Reference in New Issue
Block a user