mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +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;
|
_last_integration_us = now_us;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
_battery_percentage = 1.f;
|
||||||
_last_integration_us = 0;
|
_last_integration_us = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user