Skip to content
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

Include charging state for Device 14 - Battery messages #21

Open
raphaelcherney opened this issue Aug 24, 2022 · 0 comments
Open

Include charging state for Device 14 - Battery messages #21

raphaelcherney opened this issue Aug 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@raphaelcherney
Copy link
Contributor

When we get information about the battery state, it would be helpful to know whether it is actively being charged. Root turns off when charging due some toy-specific requirements, but that is not the case for Create 3 or other potential robots using this protocol. I propose we add a charging status byte for Device 14 messages. Something like:
0 = no charger connected (backward compatible with Root)
1 = charging
2 = charging complete

In the future, we could even consider additional states like charging error, fast charging, slow charging, etc. that would be good for the controller to know.

@raphaelcherney raphaelcherney added the enhancement New feature or request label Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant