summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-14 08:37:00 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-14 08:37:00 -0400
commit1b449abf39feeace10b6db604a4537718769141e (patch)
treec8d65c26e423128d1e8159fd1e411d8907f6196f /firmware/target
parent19d45c9257d1d8d1f59746455cddaeef910b1577 (diff)
erosq: Add battery discharge curve and initial runtime estimation.
(playing mp3 with headphones inserted lasted just over 13 hours) Change-Id: Id610f911811eafd914db20000ae860c75e0d8a93
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/aigo/powermgmt-erosq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/hosted/aigo/powermgmt-erosq.c b/firmware/target/hosted/aigo/powermgmt-erosq.c
index 14286de3fd..e02dbc6244 100644
--- a/firmware/target/hosted/aigo/powermgmt-erosq.c
+++ b/firmware/target/hosted/aigo/powermgmt-erosq.c
@@ -23,7 +23,7 @@
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
{
- 3470
+ 3435
};
/* the OF shuts down at this voltage */
@@ -35,7 +35,8 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- { 3400, 3639, 3697, 3723, 3757, 3786, 3836, 3906, 3980, 4050, 4159 }
+ /* ErosQ's 1300mAh battery */
+ { 3400, 3478, 3547, 3581, 3618, 3654, 3725, 3820, 3909, 3999, 4159 }
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */