Disabling battery draining in Gazebo simulation

Hi all,

I’m using Ardupilot and SITL in a Gazebo simulation to train using Reinforcement Learning. This involves the drone flying for longer than it has battery for - is it possible to either disable battery draining or artificially re-charge it (in the simulation) in my script so that I can continue training continuously?


Hey Kobi, hope all is well! Have you found a fix for this solution? I’m running into same issue

If using dronekit, once you create a vehicle object, try the following where xxxx is the mAh