Ignore:
Timestamp:
Apr 19, 2023, 1:25:34 PM (3 years ago)
Author:
f.jahn
Message:

Precharge pulses are made as short as possible.

File:
1 edited

Legend:

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

    r1 r2  
    19781978void StartAutoMode(void)
    19791979{
    1980 
    19811980        uint32_t current_time = HAL_GetTick();
    19821981
     
    23402339
    23412340                // Sliding average calculation for board temperature
    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;
     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;
    23432342                temperature_accum -= sys_data.s.temperature;
    23442343                temperature_accum += current_temperature;
Note: See TracChangeset for help on using the changeset viewer.