Increase safety ADC timing monitor to over a second. It might take a while for the ADC to be called if a demanding operation is taking place

This commit is contained in:
Mario Hüttel 2020-08-16 01:22:26 +02:00
parent 1ad68a2c43
commit b7ccd8542e

View File

@ -92,7 +92,7 @@ static volatile struct error_flag flags[] = {
static volatile struct timing_mon timings[] = { static volatile struct timing_mon timings[] = {
TIM_MON_ENTRY(ERR_TIMING_PID, 2, 1000, ERR_FLAG_TIMING_PID), TIM_MON_ENTRY(ERR_TIMING_PID, 2, 1000, ERR_FLAG_TIMING_PID),
TIM_MON_ENTRY(ERR_TIMING_MEAS_ADC, 0, 50, ERR_FLAG_TIMING_MEAS_ADC), TIM_MON_ENTRY(ERR_TIMING_MEAS_ADC, 0, 50, ERR_FLAG_TIMING_MEAS_ADC),
TIM_MON_ENTRY(ERR_TIMING_SAFETY_ADC, 10, SAFETY_CONTROLLER_ADC_DELAY_MS + 500, ERR_FLAG_SAFETY_ADC), TIM_MON_ENTRY(ERR_TIMING_SAFETY_ADC, 10, SAFETY_CONTROLLER_ADC_DELAY_MS + 1000, ERR_FLAG_SAFETY_ADC),
}; };
static volatile struct analog_mon analog_mons[] = { static volatile struct analog_mon analog_mons[] = {