I am using dronekit python.
I know I can print battery info with:
print 'Battery: %s' % vehicle.battery
But how do I just get the battery level? I want to be able to tell the drone to RTL when the battery is low.
SOLVED. I asked a friend who has worked with dronekit before and it's: print 'Battery: %s' % vehicle.battery.level
print 'Battery: %s' % vehicle.battery.level
I'm surprised there wasn't much response here. Must not be an active board.
Glad you figured it out. I was actually going to respond to this yesterday but I was away from my laptop. Discus isn't very active and it can take days before someone responds, if they even respond at all. There is some good information on here though.