75 #ifndef FOXBMS__BETA_H_
76 #define FOXBMS__BETA_H_
90 #define BETA_POSITION_IN_RESISTOR_DIVIDER_IS_R_1 (false)
93 #define BETA_RESISTOR_DIVIDER_SUPPLY_VOLTAGE_V (4.096f)
99 #define BETA_RESISTOR_DIVIDER_RESISTANCE_R_1_R_2_Ohm (10000.0f)
102 #define BETA_T_REF_C (25.0f)
105 #define BETA_R_REF_Ohm (10000.0f)
108 #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.