Forums - How to determine battery level in DroneKit?

9 posts / 0 new
Last post
How to determine battery level in DroneKit?
robinabraham
Join Date: 25 Feb 16
Posts: 4
Posted: Fri, 2016-09-23 13:47

Hi,

After connecting to Flight using DroneKit, I get the following callback messages for battery:

   Battery:voltage=65.535,current=None,level=None

The voltage value remains the same and the current and level values don't get set. How can I get an accurate battery level reading?

Thanks

Robin

 

  • Up0
  • Down0
James Wilson Moderator
Join Date: 11 Apr 14
Posts: 170
Posted: Tue, 2016-09-27 11:54

Robin,

We have some example code for querying the power module:

https://github.com/ATLFlight/DriverFramework/tree/LTC2946_driver/drivers/ltc2946

We are also working on adding documentation that describes how to communicate with the module.

Jim W.

  • Up0
  • Down0
cupcake
Join Date: 2 Dec 16
Posts: 46
Posted: Wed, 2017-04-19 23:26

Any update on this? I also found a related thread, does not seem to be finished yet.

  • Up0
  • Down0
James Wilson Moderator
Join Date: 11 Apr 14
Posts: 170
Posted: Thu, 2017-04-20 17:51

This driver is still not finished.  As soon as I can determine when it will be available I will post an update.

I noticed that the link to the old (not very well tested) driver is no longer available.  The files can still be accessed via the original comitt ID, however:

https://github.com/ATLFlight/DriverFramework/tree/5039e9741bea7131a5d8a2...

Jim W.

  • Up0
  • Down0
James Wilson Moderator
Join Date: 11 Apr 14
Posts: 170
Posted: Mon, 2017-04-24 19:34

Just wanted to let you know.

A code snippet was posted to the forum with example code to access battery voltage and current:

https://developer.qualcomm.com/forum/qdn-forums/hardware/snapdragon-flig...

Jim W.

  • Up0
  • Down0
cupcake
Join Date: 2 Dec 16
Posts: 46
Posted: Tue, 2017-04-25 08:55

Looks handy, thank you very much!

  • Up0
  • Down0
sean1
Join Date: 14 Feb 17
Posts: 36
Posted: Mon, 2017-09-11 09:40

Any updates on this? I noticed that the driver referenced earlier in the thread has vanished.

  • Up1
  • Down0
bryanribas
Join Date: 31 Dec 16
Posts: 6
Posted: Mon, 2017-09-25 12:06

Any updates? I have been trying to develop a way to read the voltage from the APM or the ESC directly. Acording to the Qualcomm Snapdragon Nav ESC protocol spec doc they have the ability to provide voltage feedback natively. I looked at the PX4 driver and there does not seem to have any calls that parse the esc feedback.

  • Up0
  • Down0
drone_guy
Join Date: 14 Nov 16
Posts: 37
Posted: Tue, 2017-09-26 13:27

Hello,

  • The documentation of the Snapdragon Navigator ESC protocol can be found here :

Qualcomm Snapdragon Navigator ESC Protocol Specification

  • Source code examples how to generate commands and parse feedback (platform independent and can be adapted to your application):

https://source.codeaurora.org/external/qti-robotics/esc-driver

  • and finally, the LTC2946 driver is almost entirely listed here (link from poste above):

https://developer.qualcomm.com/forum/qdn-forums/hardware/snapdragon-flig...

Alex K

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.