aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/battery/BatteryController.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert "added low battery message"Riku Isokoski2023-03-021-7/+0
| | | | This reverts PR https://github.com/InfiniTimeOrg/InfiniTime/pull/1352
* Format header filesFinlay Davidson2023-01-091-0/+1
| | | | In my PR updating clang-format, I forgot to also format the headers.
* changed to boolminacode2022-12-271-1/+1
|
* fixed a comment, set threshold to 15%minacode2022-12-271-1/+1
|
* added message, changed UIminacode2022-12-271-0/+5
|
* added low battery messageminacode2022-12-271-0/+1
|
* Add linear approximation and use it for improving battery percentageAlex Dolzhenkov2022-11-191-1/+0
| | | | | | | | Add linear approximation class and use it to better model the non-linear discharge curve of the battery. Changed the minimum voltage level to 3.5V and the maximum to 4.18V. For reference the maximum observed voltage is 4.21V during charging.
* Update BatteryController.h with non-linear discharge curvehassless2022-11-191-0/+1
|
* Don't measure and notify percentage on charging event.Riku Isokoski2021-10-091-1/+2
|
* Improve battery percentage calculation and reportingRiku Isokoski2021-10-041-0/+1
| | | | | While charging, percentage should only go up, and while discharging, percentage should only go down.
* Merge branch 'develop' into detect_full_chargeRiku Isokoski2021-09-221-5/+4
|\
| * Merge branch 'develop' into pinmaphubmartin2021-09-131-3/+4
| |\
| | * Make battery reading periodic. Add events. Disable pullupRiku Isokoski2021-08-141-3/+4
| | |
| * | Merge branch 'develop' into pinmaphubmartin2021-08-111-41/+2
| |\|
| * | Cleanup, set Pinetime as defaulthubmartin2021-08-031-1/+0
| | |
| * | PinMap with namespace and constexprhubmartin2021-08-031-2/+0
| | |
| * | DRAFT: Put gpio pins to separate filehubmartin2021-08-021-1/+2
| | |
* | | Use percentage instead of IsFullRiku Isokoski2021-09-031-4/+0
| | |
* | | Detect full charge and improve watchface displayRiku Isokoski2021-09-031-1/+8
| |/ |/|
* | Merge branch 'develop' into fix_adcRiku Isokoski2021-07-131-3/+4
|\|
| * Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2021-07-111-7/+11
| | | | | | | | Refactor battery percent : only use uint8_t to store the battery % remaining.
* | Fix misconfigured ADC and remove now unnecessary filteringRiku Isokoski2021-07-121-37/+1
|/
* Float voltage to int (#444)Riku Isokoski2021-07-021-3/+3
| | | | * Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
* Changed access modified indentationAvamander2021-04-241-4/+4
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-41/+48
|
* In order to stabilize the battery reading,Joaquim2021-04-161-2/+5
| | | | | | I modified the process to make 5 consecutive readings, as the process is asynchronous, there is no interference in the main process.
* restore battery bufferJoaquim2021-04-081-2/+38
|
* Fix wake up lock in twiJoaquim2021-04-051-2/+10
| | | | optimize battery code
* double tap wakeup error fixJoaquim2021-04-041-37/+10
| | | | battery nonblocking read
* Added more descriptive comments in doxygen format.panky-codes2021-01-171-9/+15
|
* Changed float to int in battery controller file.panky-codes2021-01-161-2/+2
|
* Changed std accumulate to use int instead of a float.panky-codes2021-01-161-1/+1
|
* Converted all the other float usage to int.panky-codes2021-01-161-1/+1
|
* Converted percent remaining calc to int.panky-codes2021-01-161-3/+3
|
* Adapted the accumulate function to return float.panky-codes2021-01-141-1/+2
|
* Implemented a circular buffer and added an average alg for batter remaining ↵panky-codes2021-01-141-2/+30
| | | | percentage.
* Include cleanup: componentsokaestne2020-11-161-1/+1
|
* Fixed all the includes that were broken due to the renamesAvamander2020-10-021-0/+27