Browse Source

Plane: move battery init to after parameter load

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
5e997b20f6
  1. 2
      ArduPlane/ArduPlane.pde
  2. 3
      ArduPlane/system.pde

2
ArduPlane/ArduPlane.pde

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

3
ArduPlane/system.pde

@ -107,6 +107,9 @@ static void 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…
Cancel
Save