Index: firmware/App/Modes/FPModes/FlushFilter.c =================================================================== diff -u -rf6acd413060f862dd2bca2afeea15dab133acf7e -r4ab24710d331b6ea41ea58a4e9057ffb95724712 --- firmware/App/Modes/FPModes/FlushFilter.c (.../FlushFilter.c) (revision f6acd413060f862dd2bca2afeea15dab133acf7e) +++ firmware/App/Modes/FPModes/FlushFilter.c (.../FlushFilter.c) (revision 4ab24710d331b6ea41ea58a4e9057ffb95724712) @@ -34,6 +34,7 @@ #define FILTER_FLUSH_MAX_TIMEOUT ( 600 * MS_PER_SECOND ) ///< Max override timeout for 10 minutes #define FILTER_FLUSH_DATA_PUBLISH_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the gen water mode data published. #define FILTER_FLUSH_TIMEOUT ( 3 * SEC_PER_MIN * MS_PER_SECOND ) ///< Filter flush timeout for 3 minutes (in ms) +#define FILTER_FLUSH_BOOST_PUMP_TGT_PSI 25 ///< Pressure target in PSI for the boost pump during filter flush. // ********** private data ********** @@ -119,14 +120,12 @@ * @brief * The handleFilterFlushProgressState handles the in progress state of filter flush * @details \b Inputs: filterFlushTimer - * @details \b Outputs: none + * @details \b Outputs: isFlushComplete * @return the next state of filter flush state *************************************************************************/ static FP_FILTER_FLUSH_STATE_T handleFilterFlushProgressState( void ) { FP_FILTER_FLUSH_STATE_T state = FILTER_FLUSH_IN_PROGRESS; - BOOL isPressureOutOfRange = FALSE; - F32 pressureDif = 0.0; // if ( TRUE == 1 )// TODO Alarm and Stop State Rework // { @@ -144,7 +143,7 @@ /*********************************************************************//** * @brief - * The handleFilterFlushProgressState handles the in progress state of filter flush + * The handleFilterFlushPausedState handles the pause state of filter flush * @details \b Inputs: pendingStartFilterFlushRequest * @details \b Outputs: pendingStartFilterFlushRequest, isFlushComplete * @return the next state of filter flush state @@ -187,6 +186,10 @@ setValveState( P37_VALV, VALVE_STATE_CLOSED ); setValveState( P39_VALV, VALVE_STATE_OPEN ); filterFlushTimer = getMSTimerCount(); + if ( TRUE == isBoostPumpInstalled() ) + { + setBoostPumpTargetPressure( FILTER_FLUSH_BOOST_PUMP_TGT_PSI ); + } break; case FILTER_FLUSH_PAUSED: @@ -201,6 +204,11 @@ setValveState( P34_VALV, VALVE_STATE_CLOSED ); setValveState( P37_VALV, VALVE_STATE_CLOSED ); setValveState( P39_VALV, VALVE_STATE_CLOSED ); + if ( TRUE == isBoostPumpInstalled() ) + { + F32 currentDutyCyclePct = getCurrentBoostPumpDutyCyclePCT(); + setBoostPumpTargetDutyCycle( currentDutyCyclePct ); + } } break;