-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Communicate battery level over bluetooth #88
Comments
There is currently no good ways to transfer battery level over Bluetooth. The main problem is that this information is available using the Crazyflie's Log subsystem but this subsystem requires to fetch the log's Table of Content (TOC) and this is a pretty heavy operation that would take a lot of time with the current bluetooth speed. The reason the TOC is needed is that the log variables cannot be fetched by name, but by ID, and this ID needs to be discovered. I see two ways to go forward:
The former would allow to add more functionalities like getting pitch/roll/yaw and other logs. The later might allow to get the battery level to be visible from the OS as well which can be useful, for example, to monitor the charge. If you are thinking of logging more data in the mobile clients later, we should update the log subsystem. Otherwise both way would look good to me. |
I would prefer variant 2 - implementing BLE battery service. |
Adding a battery BLE service would work fine for us. If you are interested in looking into it we will gladly accept a pull request, otherwise we will eventually get to it and implement it. |
I would like to implement this as soon as I have time. If you implement this sooner than me - that's fine. |
I'd like to add to iOS app displaying battery level / warning user about low battery level.
What's missing in this firmware to make possible sending battery level over bluetooth?
Any help is appreciated.
The text was updated successfully, but these errors were encountered: