Battery state

Post here to get support
Post Reply
almi
Beginner
Posts: 5
Joined: Mon Nov 11, 2019 4:49 pm

Battery state

Post by almi »

Hello,
I have a view question about the battery.

Which is the lowest battery, the crazyflie need to fly?
We want to check the battery state of the crazyflie and when its to low, the crazyflie should automatically fly the the wireless charging station.

Should we turn off the crazyflie while charging wireless?

Thanks for answer!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Battery state

Post by arnaud »

In our autonomous demos we have been using the "lowPower" state of the power management module to indicate that it was time to come back to the charger. This has usually worked quite well, by default the Crazyflie assumes the battery is low if it is read as bellow 3.2V for more than 5 seconds.

The battery state is accessible as a log variable: https://github.com/bitcraze/crazyflie-f ... 2f4.c#L394. This is an enum defined in pm.h: https://github.com/bitcraze/crazyflie-f ... e/pm.h#L80 and the lowPower state has the value 3.
Post Reply