Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r3e9328290bdbc18a940935bd7f7c720ca8432b1d -r21aec35b34a19514e0e00e8596e9884916ab91f1 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 3e9328290bdbc18a940935bd7f7c720ca8432b1d) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 21aec35b34a19514e0e00e8596e9884916ab91f1) @@ -71,7 +71,7 @@ // The ADC to LPM factor is calculated using the following steps: // 0.1 to 2 LPM range // 110000 pulses/liter -// For 2 LPM => 2LPM x 110000 pulses/liter * 1 edges/pulse * 1 min/60 seconds +// For 2 LPM => 2LPM x 110000 pulses/liter * 1 edges/pulse * 1 min/60 seconds = 3666.66 counts/sec => 272.72 microseconds => for 1 LPM = 136.36 counts #define RO_FLOW_ADC_TO_LPM_FACTOR 272.72F ///< 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.1F ///< Slope of flow to PWM line equation. #define ROP_FLOW_TO_PWM_INTERCEPT 0.0F ///< Intercept of flow to PWM line equation.