Plane: move battery init to after parameter load

This commit is contained in:
Andrew Tridgell 2014-08-09 12:29:20 +10:00
parent 74fc7fbea5
commit 5e997b20f6
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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);