55 #ifndef FOXBMS__SOF_TRAPEZOID_H_
56 #define FOXBMS__SOF_TRAPEZOID_H_
117 #ifdef UNITY_UNIT_TEST
119 int16_t minimumCellVoltage_mV,
120 int16_t maximumCellVoltage_mV,
125 int16_t minimumCellTemperature_ddegC,
126 int16_t maximumCellTemperature_ddegC,
void SOF_Calculation(void)
triggers SOF calculation
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)
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)
SOF_CURRENT_LIMITS_s TEST_SOF_MinimumOfTwoSofValues(SOF_CURRENT_LIMITS_s voltageBasedLimits, SOF_CURRENT_LIMITS_s temperatureBasedLimits)
void SOF_Init(void)
initializes the area for SOF (where derating starts and is fully active).
Header for SOF configuration.
float_t peakChargeCurrent_mA
float_t continuousChargeCurrent_mA
float_t continuousDischargeCurrent_mA
float_t peakDischargeCurrent_mA
float_t offsetHighTemperatureCharge
float_t slopeHighTemperatureCharge
float_t offsetLowTemperatureCharge
float_t offsetLowTemperatureDischarge
float_t offsetLowerCellVoltage
float_t offsetHighTemperatureDischarge
float_t slopeLowTemperatureCharge
float_t slopeHighTemperatureDischarge
float_t slopeUpperCellVoltage
float_t offsetUpperCellVoltage
float_t slopeLowTemperatureDischarge
float_t slopeLowerCellVoltage