Remove BATTERY_TYPES

Change-Id: I4fa03a10d0032fd6f92722bbe1d4b7eec0b95cb4
This commit is contained in:
William Wilgus 2025-03-10 13:53:09 -04:00
parent fb115e5bdb
commit 4f3bbeaffc
175 changed files with 432 additions and 951 deletions

View file

@ -32,22 +32,15 @@
Charge curve have not been calibrated yet.
*/
unsigned short battery_level_disksafe[BATTERY_TYPES_COUNT] =
{
/* TODO: this is just an initial guess */
3350,
};
unsigned short battery_level_disksafe = 3350; /* TODO: this is just an initial guess */
unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
{
3300,
};
unsigned short battery_level_shutoff = 3300;
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
unsigned short percent_to_volt_discharge[11] =
{
/* FIXME: Uncalibrated curve */
{ 3300, 3350, 3433, 3516, 3600, 3683, 3767, 3850, 3933, 4017, 4100 }
3300, 3350, 3433, 3516, 3600, 3683, 3767, 3850, 3933, 4017, 4100
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */

View file

@ -32,22 +32,15 @@
Charge curve have not been calibrated yet.
*/
unsigned short battery_level_disksafe[BATTERY_TYPES_COUNT] =
{
/* TODO: this is just an initial guess */
7050,
};
unsigned short battery_level_disksafe = 7050; /* TODO: this is just an initial guess */
unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
{
7000,
};
unsigned short battery_level_shutoff = 7000;
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
unsigned short percent_to_volt_discharge[11] =
{
/* FIXME: Uncalibrated curve */
{ 7000, 7050, 7100, 7150, 7200, 7250, 7300, 7350, 7400, 7450, 7500 }
7000, 7050, 7100, 7150, 7200, 7250, 7300, 7350, 7400, 7450, 7500
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */