mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Plane: move relay init earlier
allows relay pins to be used as pullups for other sensors (such as LidarLiteV3)
This commit is contained in:
parent
05cbc19ad6
commit
abcc75009d
@ -139,6 +139,8 @@ void Plane::init_ardupilot()
|
||||
// setup any board specific drivers
|
||||
BoardConfig.init();
|
||||
|
||||
relay.init();
|
||||
|
||||
// initialise notify system
|
||||
notify.init(false);
|
||||
notify_flight_mode(control_mode);
|
||||
@ -216,8 +218,6 @@ void Plane::init_ardupilot()
|
||||
|
||||
init_rc_in(); // sets up rc channels from radio
|
||||
|
||||
relay.init();
|
||||
|
||||
#if MOUNT == ENABLED
|
||||
// initialise camera mount
|
||||
camera_mount.init(&DataFlash, serial_manager);
|
||||
|
Loading…
Reference in New Issue
Block a user