74 #ifndef FOXBMS__BETA_H_
75 #define FOXBMS__BETA_H_
89 #define BETA_POSITION_IN_RESISTOR_DIVIDER_IS_R_1 (false)
92 #define BETA_RESISTOR_DIVIDER_SUPPLY_VOLTAGE_V (4.096f)
98 #define BETA_RESISTOR_DIVIDER_RESISTANCE_R_1_R_2_Ohm (10000.0f)
101 #define BETA_T_REF_C (25.0f)
104 #define BETA_R_REF_Ohm (10000.0f)
107 #define BETA_BETACOEFFICIENT (3984.0f)
int16_t BETA_TemperatureFromResistance(float resistance_Ohm)
returns temperature corresponding to NTC resistance
float BETA_ResistanceFromTemperature(int16_t temperature_ddegC)
returns NTC resistance corresponding to temperature, used to compute Vmin and Vmax of the divider
int16_t BETA_GetTemperatureFromBeta(uint16_t adcVoltage_mV)
returns temperature based on measured ADC voltage
General macros and definitions for the whole platform.