Incorrect battery0 voltage on QGC
-
Hi,
I'm seeing incorrect battery0 voltage on QGC. Would appreciate your help in resolving this issue.
I'm using the 2S Amprius battery packs on my Starling 2 and the battery parameters are attached below.
Thanks!
-
@george-kollamkulam , something seems fishy here.
The Starling 2 drone has the VOXL Mini ESC, which acts as the APM (measures voltage and total current). The ESC sends this data to PX4 via UART together with regular ESC telelmetry.
The Battery status packet is an uint16 with 0.001V resolution, so the maximum voltage it could report would be about 65V (2^16 millivolts).
packet definition:
https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/qc_esc_packet.h#L157packet parsing:
https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L577I suspect something else is going on. Maybe you need to choose a different Source for the battery monitoring (not Power Module)?
Is this voltage 267.55V updating or just stuck at that value?
Alex
-
@Alex-Kushleyev Sorry for the delay.
The voltage value seems to have decreased a little with time, but I don't think this is following the battery discharge trend. I started at 270.31 V just before take-off, and I was at 269.24 V after roughly 15 mins of flying. What could be the next steps to troubleshooting this issue?
Thanks,
George -
@george-kollamkulam In console can you do a listener battery_status to see what the PX4 topic has in it?
-
@george-kollamkulam , also are you able to use
voxl-esc
tools to verify the voltage?You can run the following command, which will not actually spin the motors, but will communicate with the ESC and receive feedback:
#stop px4 systemctl stop voxl-px4 cd /usr/share/modalai/voxl-esc-tools ./voxl-esc-spin.py --id 255 --power 0
The script should run and print out the voltage reported by the ESC.
Alex