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

Show battery SoC / status in UI #24

Closed
finger563 opened this issue Feb 23, 2023 · 0 comments · Fixed by #50
Closed

Show battery SoC / status in UI #24

finger563 opened this issue Feb 23, 2023 · 0 comments · Fixed by #50

Comments

@finger563
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Even if #23 and #22 get implemented, the user will have no way to know what percentage state of charge (SoC) the battery is at, and will have no idea how much that will last them.

Describe the solution you'd like

Monitor (after calibration) the SoC of the battery and show it in the main menu. Probably also show if it's charging or not as well?

Describe alternatives you've considered

Just using an icon (battery icons exist in LVGL).

Additional context

#23 #22

This was referenced Dec 17, 2023
finger563 added a commit that referenced this issue Dec 28, 2023
* Update espp submodule to fix bug when unsubscribing from an event
* Update menu to properly unsubscribe the menu component instead of the gui component (copy paste error from long ago)
* Add battery header to box-emu-hal which includes the serialization component, adds a battery topic, and adds a BatteryInfo structure (the message data)
* Updated menu and gui to have battery status icons (battery level symbol, charge symbol) and battery status labels
* Updated menu and gui to subscribe to the battery topic and update their battery status displays when the event fires
* Updated main to send new battery info every second to test charge and discharge display in main gui and menu (until hardware V1 arrives with support for actual SoC / charge measurement
Closes #24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant