Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r5a03bc5bd579bf84301d26d7b062c3cadd2068c5 -rc77771acb3edff84c93cb04d7fbfad469a7ca294 --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 5a03bc5bd579bf84301d26d7b062c3cadd2068c5) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision c77771acb3edff84c93cb04d7fbfad469a7ca294) @@ -73,6 +73,7 @@ /// Persist time (task intervals) for flow vs. motor speed error condition. static const U32 DIP_FLOW_VS_SPEED_PERSIST = ((5 * MS_PER_SECOND) / TASK_PRIORITY_INTERVAL); +//static const U32 DIP_FLOW_VS_SPEED_PERSIST = ((60 * MS_PER_SECOND) / TASK_PRIORITY_INTERVAL); //DN-03NOV2022 - Make it 1 minutes for testing /// Persist time (task intervals) for motor off error condition. static const U32 DIP_OFF_ERROR_PERSIST = ((5 * MS_PER_SECOND) / TASK_PRIORITY_INTERVAL); /// Persist time (task intervals) motor speed error condition. @@ -789,6 +790,7 @@ F32 estimatedFlow; F32 QdTarget = getTargetDialInFlowRate(); F32 deltaFlow; + F32 measuredDialInFlow; if ( QdTarget >= DIAL_IN_FLOW_QHIGHTRANSITION ) { @@ -819,11 +821,12 @@ // Check the measured flow against estimated flow - / deltaFlow = FIFTY_PERCENT * estimatedFlow; // 50% estimated flow + measuredDialInFlow = getMeasuredDialInFlowRate(); if ( ( TRUE == isDialInPumpRunning() ) && ( dialInPumpControlMode != PUMP_CONTROL_MODE_OPEN_LOOP ) ) { - if ( ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, deltaFlow < fabs( estimatedFlow - filteredDialInFlowMeterReading ) ) ) ) + if ( ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, deltaFlow < fabs( estimatedFlow - measuredDialInFlow ) ) ) ) { - SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, filteredDialInFlowMeterReading, estimatedFlow ); + SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, measuredDialInFlow, estimatedFlow ); } } else