# Incorrect Value with Battery status

**URL:** <https://discuss.px4.io/t/incorrect-value-with-battery-status/12181>\
**Category:** PX4 Autopilot\
**Created:** [July 29, 2019, 6:13am UTC](https://discuss.px4.io/t/incorrect-value-with-battery-status/12181 "2019-07-29T06:13:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FaboNo](https://discuss.px4.io/user_avatar/discuss.px4.io/fabono/32/4302_2.png) [@FaboNo](https://discuss.px4.io/u/FaboNo)\
**Post date:** [July 29, 2019, 6:13am UTC](https://discuss.px4.io/t/incorrect-value-with-battery-status/12181/1 "2019-07-29T06:13:50Z")

</div>

Hello

I am using PX4 and the PixHawk 2.1 (cube) and its power module.  
As we areworking an autonomous flights, w need to read the information related to the battery to plan a gohome when necessary (for instance).  
However when I read the information I got the following values - here is a MAVROS message but these values are identical when I used Analyze (QGC):

```
 seq: 216
  stamp: 
    secs: 1528206242
    nsecs: 464688044
  frame_id: ''
voltage: 65.5350036621
current: 0.00999999977648
charge: nan
capacity: nan
design_capacity: nan
percentage: -0.00999999977648
power_supply_status: 2
power_supply_health: 0
power_supply_technology: 3
present: True
cell_voltage: []
location: "id0"
serial_number: ''
---
header: 
  seq: 217
  stamp: 
    secs: 1528206242
    nsecs: 665512459
  frame_id: ''
voltage: 65.5350036621
current: 0.00999999977648
charge: nan
capacity: nan
design_capacity: nan
percentage: -0.00999999977648
power_supply_status: 2
power_supply_health: 0
power_supply_technology: 3
present: True
cell_voltage: []
location: "id0"
serial_number: ''

```

I got -1 for the percentage and what is surprising 65V on Voltage (with a 4 cells Lipo battery). I am wondering whether I did something wrong when I configured the battery with QGC, this is why I included a snapshot of these parameters and their values below:

 ![batrery_params](https://discuss.px4.io/uploads/default/original/2X/1/17f445be23873150c612d0f2be3e92306f32f74e.png)

Another point worth to mention is that on QGC, i am not able to modify the voltage divider because it mentioned “vehicle voltage = -1” but the drone is able o be armed and fly - so where is the problem?

![vehicle%20voltage](https://discuss.px4.io/uploads/default/original/2X/1/1cd80f4c26ed4c4c5cbfd59540ef23062d8c9fb2.png)

As I am still stuck with this issue, I am able to provide more information by running listener battery\_status, llistener system\_power and adc test - if someone can point me where I am wrong, it will be very helpfull:

 ![listener%20battery_status](https://discuss.px4.io/uploads/default/original/2X/8/80482d1a0ec8799d99a7c3f7329448894fb29a91.png)

![listener%20system_power](https://discuss.px4.io/uploads/default/original/2X/e/e6d13ce2b1551d918f953abfbd4b9bf247bfee81.png)

 ![adc%20test](https://discuss.px4.io/uploads/default/original/2X/e/e56b9a8f1713ee10ac4f368cb2e38f40d52816f8.png)

---

<div class="post-metadata">

**Author:** ![copterspace](https://discuss.px4.io/user_avatar/discuss.px4.io/copterspace/32/3187_2.png) [@copterspace](https://discuss.px4.io/u/copterspace)\
**Post date:** [August 1, 2019, 10:51am UTC](https://discuss.px4.io/t/incorrect-value-with-battery-status/12181/2 "2019-08-01T10:51:22Z")

</div>

Flight controller does not see battery voltage, battery status is N/A on QGC on your screenshot.

You should solder/repair/connect voltage divider to voltage sensor pin on power port - after this tune battery parameters - QGC should display correct battery percentage and voltage, instead of “N/A”

After this mavros should also start to post correct battery voltage/percentage info.

---

<div class="post-metadata">

**Author:** ![Kihoon](https://discuss.px4.io/user_avatar/discuss.px4.io/kihoon/32/11814_2.png) [@Kihoon](https://discuss.px4.io/u/Kihoon)\
**Post date:** [November 16, 2022, 3:48pm UTC](https://discuss.px4.io/t/incorrect-value-with-battery-status/12181/3 "2022-11-16T15:48:07Z")

</div>

I have a same problem… did you solve the problem?
