Page 1 of 1

Battery state

Posted: Tue Dec 17, 2019 8:35 am
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!

Re: Battery state

Posted: Tue Dec 17, 2019 8:55 am
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.