PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.4k stars 13.46k forks source link

[Bug] Pixhawk 6X not showing battery stats in QGC #23454

Closed KarthiAru closed 2 months ago

KarthiAru commented 2 months ago

Describe the bug

I’m unable to see the battery stats in QGC. I’m using a Pixhawk 6X with the Holybro PM02D power module connected to the Power 1 port.

image

These are the settings and params.

image image

This the MAVlink message for battery status

image

To Reproduce

Connect a battery with Pixhawk 6X and PM02D power module and check the battery stats in QGC

Expected behavior

Display the correct battery voltage and current in QGC

Screenshot / Media

No response

Flight Log

Not applicable

Software Version

NuttShell (NSH) NuttX-11.0.0
nsh> ver all
HW arch: PX4_FMU_V6X
HW type: V6X
HW FMUM ID: 0x003
HW BASE ID: 0x000
PX4 git-hash: 1dacb4cdef2d7145754fc788fa8dc482eed74b40
PX4 version: Release 1.14.3 (17695743)
OS: NuttX
OS version: Release 11.0.0 (184549631)
OS git-hash: de41e7feaeffaec3ce65327e9569e8fdb553ca3d
Build datetime: May 30 2024 03:33:40
Build uri: localhost
Build variant: default
Toolchain: GNU GCC, 9.3.1 20200408 (release)
PX4GUID: 000600000000343633363432510300420019
MCU: STM32H7[4|5]xxx, rev. V

Flight controller

Pixhawk 6X

Vehicle type

Multicopter

How are the different components wired up (including port information)

The Holybro PM02D power module is connected to the Power 1 port in Pixhawk 6X. I'm using a Holybro Sik Telemetry Radio to connect with my mac laptop. I'm using a 3S 2200 mAh battery.

Additional context

No response

KarthiAru commented 2 months ago

I resolved the issue by setting the param SENS_EN_INA228. I was using SENS_EN_INA226 earlier as default.