Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/CubeMX/Src/main.c

    r2 r1  
    19781978void StartAutoMode(void)
    19791979{
     1980
    19801981        uint32_t current_time = HAL_GetTick();
    19811982
     
    23392340
    23402341                // Sliding average calculation for board temperature
    2341                 current_temperature = (((MAX_TEMP - MIN_TEMP)*((int32_t)ADC_values[TEMP_CHANNEL] - TEMP_SENSOR_ADC_AT_MINUS30))/(TEMP_SENSOR_ADC_AT_PLUS100 - TEMP_SENSOR_ADC_AT_MINUS30)) + MIN_TEMP;
     2342                current_temperature = (((MAX_TEMP - MIN_TEMP)*((int)ADC_values[TEMP_CHANNEL] - TEMP_SENSOR_ADC_AT_MINUS30))/(TEMP_SENSOR_ADC_AT_PLUS100 - TEMP_SENSOR_ADC_AT_MINUS30)) + MIN_TEMP;
    23422343                temperature_accum -= sys_data.s.temperature;
    23432344                temperature_accum += current_temperature;
Note: See TracChangeset for help on using the changeset viewer.