Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r19d00df76fc906db9e514b10f259c39958ff25bb -r373b25b7e3229e9203f4af6bfa491def69e2ce83 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 19d00df76fc906db9e514b10f259c39958ff25bb) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 373b25b7e3229e9203f4af6bfa491def69e2ce83) @@ -64,8 +64,12 @@ #define FLOW_SAMPLES_TO_AVERAGE ( 250 / TASK_PRIORITY_INTERVAL ) ///< Averaging flow data over 250 ms intervals. #define FLOW_AVERAGE_MULTIPLIER ( 1.0 / (F32)FLOW_SAMPLES_TO_AVERAGE ) ///< Optimization - multiplying is faster than dividing. -#define RO_FLOW_ADC_TO_LPM_FACTOR 5555 ///< Conversion factor from ADC counts to LPM (liters/min) for RO flow rate (multiply this by inverse of FPGA reading). +//#define RO_FLOW_ADC_TO_LPM_FACTOR 5555 ///< Conversion factor from ADC counts to LPM (liters/min) for RO flow rate (multiply this by inverse of FPGA reading). +// TODO new flow sensor k factor for testing only +#define RO_FLOW_ADC_TO_LPM_FACTOR 300 ///< Conversion factor from ADC counts to LPM (liters/min) for RO flow rate (multiply this by inverse of FPGA reading). + + #define ROP_FLOW_TO_PWM_SLOPE 0.1 ///< Slope of flow to PWM line equation. #define ROP_FLOW_TO_PWM_INTERCEPT 0.0 ///< Intercept of flow to PWM line equation.