Rover: fixed BattMonitor initialisation

This commit is contained in:
Staroselskii Georgii 2015-02-11 19:17:19 +03:00 committed by Andrew Tridgell
parent 801c4d0a93
commit 1670ccf774
2 changed files with 2 additions and 2 deletions

View File

@ -545,8 +545,6 @@ void setup() {
notify.init(false);
battery.init();
rssi_analog_source = hal.analogin->channel(ANALOG_INPUT_NONE);
init_ardupilot();

View File

@ -93,6 +93,8 @@ static void init_ardupilot()
set_control_channels();
battery.init();
// keep a record of how many resets have happened. This can be
// used to detect in-flight resets
g.num_resets.set_and_save(g.num_resets+1);