Added current factors. Various fixes for temperature monitor. Added partial implementation for can1 and can2

This commit is contained in:
Yury Shuvakin
2023-03-14 06:18:00 +03:00
parent 3f9bcbfebb
commit 418ad47c22
15 changed files with 678 additions and 137 deletions

View File

@@ -172,7 +172,7 @@ void modConfigLoadDefaultConfig(modConfigGeneralConfigStructTypedef *configLocat
configLocation->tempEnableMaskBMS = 0x0001; // Bitwise select what sensor to enable for the BMS (internal sensors).
configLocation->tempEnableMaskBattery = 0xFFFF; // Bitwise select what sensor to enable for the battery (external sensors).
configLocation->tempEnableMaskExpansion = 0xFFFF; // Bitwise select what sensor to enable for the expansion boards(external sensors).
configLocation->noOfTempSensorPerModule = 2; // Number of temperature sensors monitored per LTC68XX
configLocation->noOfTempSensorPerModule = 4; // Number of temperature sensors monitored per LTC68XX
configLocation->noOfExpansionBoard = 0; // Number of expansion board
configLocation->noOfTempSensorPerExpansionBoard = 0; // Number of temperature sensors monitored per expansion board
configLocation->LCUseDischarge = enabled; // Enable or disable the solid state output
@@ -233,6 +233,8 @@ void modConfigLoadDefaultConfig(modConfigGeneralConfigStructTypedef *configLocat
configLocation->heatingStartThreshold = 0;
configLocation->heatingStopThreshold = 20;
configLocation->floatCurrentK1 = 0.0f; // First factor of current calculation
configLocation->floatCurrentK2 = 0.777f; // Second factor of current calculation
#elif ENNOID_HV
configLocation->noOfCellsSeries = 8; // Total number of cells in series in the battery pack