Battery status check

Firmware/software/electronics/mechanics
Post Reply
JaeDeok
Beginner
Posts: 24
Joined: Tue Oct 06, 2020 6:22 am

Battery status check

Post by JaeDeok »

Do you have a code to check the battery status?

There are a lot of drone crashes during flight due to low battery. I want to land by checking the battery level in advance.
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Battery status check

Post by kimberly »

You can use the parameter pm.vbat. Do you want to check it from a python script or from onboard the crazyflie? I guess for the latter you can make an app layer that checks the battery and lands with HL commander.
Post Reply