Hi all. First, I'm not sure this is the right place to ask this.
Here is my situation, I have an EB3 running the frambuesa image. I'm going to write an application (C++) that needs to have access to the battery status information. This app is not related to ROS/Mavlink, it will run on the brain itself.
So mainly, my question is how to get the battery info (voltage/current/percentage...) from a standalone c++ app? Which libraries should I include?
I tried going really low level and check for the GPIO ports, but looks like none is being used:
-rwxrwx--- 1 root gpio 4.0K Jun 22 20:17 export
lrwxrwxrwx 1 root gpio 0 Jun 22 20:17 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0
lrwxrwxrwx 1 root gpio 0 Jun 22 20:17 gpiochip100 -> ../../devices/platform/soc/soc:virtgpio/gpio/gpiochip100
-rwxrwx--- 1 root gpio 4.0K Jun 22 20:17 unexport
Not sure how the power module is wired to the rpi3, in my case, the least I need to import from ros/etc the better!
Does anyone have any resource I should explore? I'm feeling kinda lost!