battery: delete unused armed

This commit is contained in:
Daniel Agar
2019-12-09 12:55:34 -05:00
parent 11bbc8ae34
commit de9e4dda4c
10 changed files with 16 additions and 33 deletions

View File

@@ -370,7 +370,7 @@ void Simulator::handle_message_hil_sensor(const mavlink_message_t *msg)
vbatt *= _battery.cell_count();
const float throttle = 0.0f; // simulate no throttle compensation to make the estimate predictable
_battery.updateBatteryStatus(now_us, vbatt, ibatt, true, true, 0, throttle, armed, true);
_battery.updateBatteryStatus(now_us, vbatt, ibatt, true, true, 0, throttle, true);
_last_battery_timestamp = now_us;
}