Plane: move battery init to after parameter load
This commit is contained in:
parent
74fc7fbea5
commit
5e997b20f6
@ -804,8 +804,6 @@ void setup() {
|
||||
|
||||
notify.init(false);
|
||||
|
||||
battery.init();
|
||||
|
||||
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
|
||||
|
||||
init_ardupilot();
|
||||
|
@ -107,6 +107,9 @@ static void init_ardupilot()
|
||||
// initialise sonar
|
||||
init_sonar();
|
||||
|
||||
// initialise battery monitoring
|
||||
battery.init();
|
||||
|
||||
// init the GCS
|
||||
gcs[0].init(hal.uartA);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user