Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r6c4b1bb9d485e9ab634c7775b707af0614e11788 -r9b970fd909c38f64f034cda1ffa793b9e1c8c365 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 6c4b1bb9d485e9ab634c7775b707af0614e11788) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 9b970fd909c38f64f034cda1ffa793b9e1c8c365) @@ -40,11 +40,11 @@ // ********** private definitions ********** #define RO_PUMP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the RO Pump data is published on the CAN bus. -#define ROP_CONTROL_INTERVAL ( ( MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the RO pump is controlled. -#define RO_LAG_TIMER ( MS_PER_SECOND *4 ) +#define ROP_CONTROL_INTERVAL ( ( 4* MS_PER_SECOND ) / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the RO pump is controlled. +#define RO_LAG_TIMER ( MS_PER_SECOND *8 ) -#define ROP_FLOW_CONTROL_P_COEFFICIENT 0.00005F ///< P term for RO pump flow control. -#define ROP_FLOW_CONTROL_I_COEFFICIENT 0.000002F +#define ROP_FLOW_CONTROL_P_COEFFICIENT 0.0002F ///< P term for RO pump flow control. +#define ROP_FLOW_CONTROL_I_COEFFICIENT 0.000006F #define ROP_FLOW_CONTROL_D_COEFFICIENT 0.0F ///< D term for RO pump flow control #define ROP_MIN_FLOW_TO_CONTROL_PCT 0.8F #define ROP_PRESSURE_CONTROL_P_COEFFICIENT 0.15F ///< P term for RO pump pressure control.