|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
54 #ifndef FOXBMS__SOF_H_
55 #define FOXBMS__SOF_H_
113 #ifdef UNITY_UNIT_TEST
115 int16_t minimumCellVoltage_mV,
116 int16_t maximumCellVoltage_mV,
121 int16_t minimumCellTemperature_ddegC,
122 int16_t maximumCellTemperature_ddegC,
void SOF_Init(void)
initializes the area for SOF (where derating starts and is fully active).
float offsetHighTemperatureDischarge
float offsetUpperCellVoltage
float offsetHighTemperatureCharge
float slopeHighTemperatureDischarge
struct SOF_CURRENT_LIMITS SOF_CURRENT_LIMITS_s
void TEST_SOF_CalculateTemperatureBasedCurrentLimit(int16_t minimumCellTemperature_ddegC, int16_t maximumCellTemperature_ddegC, SOF_CURRENT_LIMITS_s *pAllowedTemperatureBasedCurrent, const SOF_CONFIG_s *pConfigLimitValues, SOF_CURVE_s *pCalculatedSofCurves)
float slopeLowTemperatureCharge
float offsetLowTemperatureCharge
float slopeLowerCellVoltage
float slopeLowTemperatureDischarge
SOF_CURRENT_LIMITS_s TEST_SOF_MinimumOfTwoSofValues(SOF_CURRENT_LIMITS_s voltageBasedLimits, SOF_CURRENT_LIMITS_s temperatureBasedLimits)
void TEST_SOF_CalculateVoltageBasedCurrentLimit(int16_t minimumCellVoltage_mV, int16_t maximumCellVoltage_mV, SOF_CURRENT_LIMITS_s *pAllowedVoltageBasedCurrent, const SOF_CONFIG_s *pConfigLimitValues, SOF_CURVE_s *pCalculatedSofCurves)
float offsetLowerCellVoltage
float continuousDischargeCurrent_mA
Header for SOF configuration.
float offsetLowTemperatureDischarge
void SOF_Calculation(void)
triggers SOF calculation
float slopeUpperCellVoltage
float slopeHighTemperatureCharge
float peakDischargeCurrent_mA
struct SOF_CURVE SOF_CURVE_s
float continuousChargeCurrent_mA
float peakChargeCurrent_mA