SITL - how to "recharge" the battery?

Hello,
in using SITL, I can’t find a way to “recharge” the virtual battery.

MP shows it in red, and MAVProxy shows:
Flight battery -50 percent
Flight battery warning

Is there a way to recharge other than to restart the simulator?

Here are my changes to Ardupilot to “recharge” the virtual battery:

Hope it helps!

1 Like

Thanks for addressing this, Brandon.
Could you turn this into a PR to the main code branch so that this can be made available even to the non-programmers :wink:

Is there any impeding reason for this to not be included upstream? It seems useful.

1 Like

I will take a look if it is already implemented or not