mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Merge pull request #1218 from kyberias/fix-geely
Fix Geely battery compilation
This commit is contained in:
commit
e63e2542a6
2 changed files with 12 additions and 7 deletions
1
.github/workflows/compile-all-batteries.yml
vendored
1
.github/workflows/compile-all-batteries.yml
vendored
|
@ -58,6 +58,7 @@ jobs:
|
|||
- CMFA_EV_BATTERY
|
||||
- DALY_BMS
|
||||
- FOXESS_BATTERY
|
||||
- GEELY_GEOMETRY_C_BATTERY
|
||||
- IMIEV_CZERO_ION_BATTERY
|
||||
- JAGUAR_IPACE_BATTERY
|
||||
- KIA_E_GMP_BATTERY
|
||||
|
|
|
@ -41,12 +41,16 @@ class GeelyGeometryCBattery : public CanBattery {
|
|||
|
||||
private:
|
||||
GeelyGeometryCHtmlRenderer renderer;
|
||||
const int MAX_PACK_VOLTAGE_70_DV 4420 //70kWh
|
||||
const int MIN_PACK_VOLTAGE_70_DV 2860 const int MAX_PACK_VOLTAGE_53_DV 4160 //53kWh
|
||||
const int MIN_PACK_VOLTAGE_53_DV 2700 const int MAX_CELL_DEVIATION_MV 150 const int
|
||||
MAX_CELL_VOLTAGE_MV 4250 //Battery is put into emergency stop if one cell goes over this value
|
||||
const int MIN_CELL_VOLTAGE_MV 2700 //Battery is put into emergency stop if one cell goes below this value
|
||||
DATALAYER_BATTERY_TYPE* datalayer_battery;
|
||||
|
||||
static const int MAX_PACK_VOLTAGE_70_DV = 4420; //70kWh
|
||||
static const int MIN_PACK_VOLTAGE_70_DV = 2860;
|
||||
static const int MAX_PACK_VOLTAGE_53_DV = 4160; //53kWh
|
||||
static const int MIN_PACK_VOLTAGE_53_DV = 2700;
|
||||
static const int MAX_CELL_DEVIATION_MV = 150;
|
||||
static const int MAX_CELL_VOLTAGE_MV = 4250; //Battery is put into emergency stop if one cell goes over this value
|
||||
static const int MIN_CELL_VOLTAGE_MV = 2700; //Battery is put into emergency stop if one cell goes below this value
|
||||
|
||||
DATALAYER_BATTERY_TYPE* datalayer_battery;
|
||||
DATALAYER_INFO_GEELY_GEOMETRY_C* datalayer_geometryc;
|
||||
|
||||
CAN_frame GEELY_191 = {.FD = false, //PAS_APA_Status , 10ms
|
||||
|
@ -213,7 +217,7 @@ class GeelyGeometryCBattery : public CanBattery {
|
|||
uint16_t poll_unknown7 = 0;
|
||||
uint16_t poll_unknown8 = 0;
|
||||
int16_t poll_temperature[6] = {0};
|
||||
#define TEMP_OFFSET 30 //TODO, not calibrated yet, best guess
|
||||
static const int TEMP_OFFSET = 30; //TODO, not calibrated yet, best guess
|
||||
uint8_t poll_software_version[16] = {0};
|
||||
uint8_t poll_hardware_version[16] = {0};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue