mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 07:00:35 +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