Merge pull request #1093 from dalathegreat/bugfix/volvo-spa-limits

Volvo SPA: Tweak voltage limits for 96S battery
This commit is contained in:
Daniel Öster 2025-05-01 12:02:27 +03:00 committed by GitHub
commit 7237f1b68b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,11 +6,11 @@
#define BATTERY_SELECTED
#define MAX_PACK_VOLTAGE_108S_DV 4540
#define MIN_PACK_VOLTAGE_108S_DV 2938
#define MAX_PACK_VOLTAGE_96S_DV 4030
#define MAX_PACK_VOLTAGE_96S_DV 4080
#define MIN_PACK_VOLTAGE_96S_DV 2620
#define MAX_CELL_DEVIATION_MV 250
#define MAX_CELL_VOLTAGE_MV 4210 //Battery is put into emergency stop if one cell goes over this value
#define MIN_CELL_VOLTAGE_MV 2700 //Battery is put into emergency stop if one cell goes below this value
#define MAX_CELL_VOLTAGE_MV 4260 // Charging is halted if one cell goes above this
#define MIN_CELL_VOLTAGE_MV 2700 // Charging is halted if one cell goes below this
void setup_battery(void);
void transmit_can_frame(CAN_frame* tx_frame, int interface);