mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 18:06:39 +08:00
BatterySimulator: recharge battery upon disarming
This commit is contained in:
committed by
Daniel Agar
parent
955aad0dfb
commit
52a9040c62
@@ -90,6 +90,7 @@ void BatterySimulator::Run()
|
||||
_last_integration_us = now_us;
|
||||
|
||||
} else {
|
||||
_battery_percentage = 1.f;
|
||||
_last_integration_us = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user