Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r41baa5b8828f2a2b1d19b51a4c908f1871a801b1 -r3bf0a70692b6d6a2908d2ee6186e91a339016956 --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 41baa5b8828f2a2b1d19b51a4c908f1871a801b1) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 3bf0a70692b6d6a2908d2ee6186e91a339016956) @@ -815,6 +815,13 @@ } } + // Check the measured flow against estimated flow - // TODO: Will revise this scheme with Sean's inputs. DN-27OCT2022 + F32 deltaFlow = 0.5 * estimatedFlow; // 50% estimated flow + if ( deltaFlow < fabs( estimatedFlow - filteredDialInFlowMeterReading ) ) + { + SET_ALARM_WITH_2_U32_DATA( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, filteredDialInFlowMeterReading, estimatedFlow ); + } + return estimatedFlow; }