mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Rover: fixed BattMonitor initialisation
This commit is contained in:
parent
801c4d0a93
commit
1670ccf774
@ -545,8 +545,6 @@ void setup() {
|
|||||||
|
|
||||||
notify.init(false);
|
notify.init(false);
|
||||||
|
|
||||||
battery.init();
|
|
||||||
|
|
||||||
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
|
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
|
||||||
|
|
||||||
init_ardupilot();
|
init_ardupilot();
|
||||||
|
@ -93,6 +93,8 @@ static void init_ardupilot()
|
|||||||
|
|
||||||
set_control_channels();
|
set_control_channels();
|
||||||
|
|
||||||
|
battery.init();
|
||||||
|
|
||||||
// keep a record of how many resets have happened. This can be
|
// keep a record of how many resets have happened. This can be
|
||||||
// used to detect in-flight resets
|
// used to detect in-flight resets
|
||||||
g.num_resets.set_and_save(g.num_resets+1);
|
g.num_resets.set_and_save(g.num_resets+1);
|
||||||
|
Loading…
Reference in New Issue
Block a user