Battery voltage is 0V and current is 0A with SITL QuadPlane

Hello.

battery voltage is 0V and current is 0A with SITL quadplane, like below picture :

for some reason,
(1) I need battery voltage displaying with SITL QuadPlane
(2) Run SITL in Ubuntu, not on mission planner.

Below is the parameter that I tried changing.

Below is the command I run on WSL1 Ubuntu :

sim_vehicle.py -j4 -v Plane -f quadplane -A “–serial0=udpclient:127.0.0.1:14550” --no-mavproxy --custom-location=“2.48647,-159.45417,0,0”

dit you check that batt_monitor is enabled ?

1 Like

Thanks, enabling batt_monitor didn’t work at first,

but I managed to enable it.

after I set SIM_BATT_VOLTAGE and SIM_BATT_CAP_AH
and enable batt_monitor, at first it did not work,

but after restart suddenly voltage and current become to display on mission planner hud.

Thank you very much.