Tracker: initialise battery

This commit is contained in:
Peter Hall 2019-04-26 18:56:25 +01:00 committed by Peter Barker
parent bead34be98
commit e6c7fd2acc
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ void Tracker::init_tracker()
AP_Notify::flags.pre_arm_check = true;
AP_Notify::flags.pre_arm_gps_check = true;
// initialise battery
battery.init();
// init baro before we start the GCS, so that the CLI baro test works
barometer.set_log_baro_bit(MASK_LOG_IMU);
barometer.init();