Index: firmware/App/Drivers/TemperatureSensors.c =================================================================== diff -u -r50144ec3e96785cf76d5bfd22ee65029c82e732b -rb689a4627e86e263cb69e83b91e80802bf411c92 --- firmware/App/Drivers/TemperatureSensors.c (.../TemperatureSensors.c) (revision 50144ec3e96785cf76d5bfd22ee65029c82e732b) +++ firmware/App/Drivers/TemperatureSensors.c (.../TemperatureSensors.c) (revision b689a4627e86e263cb69e83b91e80802bf411c92) @@ -110,8 +110,7 @@ //benignPolynomialCalRecord( &tempSensorCalRecord.tempSensors[ i ] ); } - // Initialize TH1 (primary heater), TH2(outlet Heat Exchanger), TAUX ( Inlet Heat exchanger), - // TH3 ( Trim Heater) constants. + // Initialize temperature sensors constants. tempSensors[ D1_TEMP ].gain = PRIMARY_HEATER_TEMP_SENSORS_GAIN; tempSensors[ D1_TEMP ].refResistance = PRIMARY_HEATER_TEMP_SENSORS_REF_RESISTANCE; tempSensors[ D1_TEMP ].zeroDegreeResistance = PRIMARY_HEATER_TEMP_SENSORS_0_DEGREE_RESISTANCE; @@ -138,9 +137,12 @@ tempSensors[ D99_TEMP ].maxAllowedTemp = TEMP_SENSORS_MAX_ALLOWED_DEGREE_C; // Board temperature sensors conversion coefficient - tempSensors[ BRD_TEMP ].conversionCoeff = conversionCoeff; - tempSensors[ BRD_TEMP ].maxAllowedTemp = NON_FLUID_PATH_TEMP_SENSORS_MAX_ALLOWED_DEGREE_C; + tempSensors[ BRD_TEMP ].conversionCoeff = conversionCoeff; + tempSensors[ BRD_TEMP ].maxAllowedTemp = NON_FLUID_PATH_TEMP_SENSORS_MAX_ALLOWED_DEGREE_C; + // TODO : for testing, fix the ambient temperature as 35DegC. + temperatureValue[ BRD_TEMP ].data = 35.0F; + // Persistent alarm for the temperature sensors range check initPersistentAlarm( ALARM_ID_DD_TEMPERATURE_SENSOR_OUT_OF_RANGE, TEMP_SENSORS_OUT_OF_RANGE_TIME_OUT_MS, TEMP_SENSORS_OUT_OF_RANGE_TIME_OUT_MS );