Index: firmware/App/Controllers/SpentChamberFill.c =================================================================== diff -u -r173453569b2eb31b3f19572bf5386440667b0162 -r0a1d4f769464407084d39843244af74911bbdfa5 --- firmware/App/Controllers/SpentChamberFill.c (.../SpentChamberFill.c) (revision 173453569b2eb31b3f19572bf5386440667b0162) +++ firmware/App/Controllers/SpentChamberFill.c (.../SpentChamberFill.c) (revision 0a1d4f769464407084d39843244af74911bbdfa5) @@ -39,6 +39,7 @@ // ********** private definitions ********** #define SPENT_CHAMBER_FILL_DATA_PUBLISH_INTERVAL ( 250 / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the balancing chamber data published. +#define SPENT_CHAMBER_SWITCHING_PERIOD 59 ///< Spent Chamber Fill Switching Period // ********** private data ********** @@ -97,7 +98,7 @@ initSpentChamberFill(); updateBalChamberSwitchingPeriod(); // Follow the same cycle for spent chamber fill - spentChamberFillSwitchingPeriod = getBalChamberSwitchingPeriod(); + spentChamberFillSwitchingPeriod = SPENT_CHAMBER_SWITCHING_PERIOD; } /*********************************************************************//** @@ -188,8 +189,7 @@ /*********************************************************************//** * @brief * The handleSpentChamberFillWaitPressureStabilizeState function introduces the pressure - * stabilization period before starting the spent chamber fill - * for state 2 fill process. + * stabilization period before starting the spent chamber fill. * @details \b Inputs: none * @details \b Outputs: valve states * @return none. @@ -201,8 +201,8 @@ F32 freshDialPressure = getFilteredPressure( D18_PRES ); F32 spentDialPressure = getFilteredPressure( D51_PRES ); - BOOL spentInRange = ( ( spentDialPressure >= SPENT_DIAL_FILL_PRESSURE_MIN_PSIG ) && ( spentDialPressure <= SPENT_DIAL_FILL_PRESSURE_MAX_PSIG ) ); - BOOL freshInRange = ( ( freshDialPressure >= FRESH_DIAL_FILL_PRESSURE_MIN_PSIG ) && ( freshDialPressure <= FRESH_DIAL_FILL_PRESSURE_MAX_PSIG ) ); + BOOL spentInRange = ( ( spentDialPressure >= SPENT_DIAL_FILL_PRESSURE_MIN_PSIG ) && ( spentDialPressure <= SPENT_DIAL_FILL_PRESSURE_MAX_PSIG ) ); + BOOL freshInRange = ( ( freshDialPressure >= FRESH_DIAL_FILL_PRESSURE_MIN_PSIG ) && ( freshDialPressure <= FRESH_DIAL_FILL_PRESSURE_MAX_PSIG ) ); if ( ( TRUE == spentInRange ) && ( TRUE == freshInRange ) ) {