Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r0b93322875e9aa5719941574fde93d3042dc6796 -r24e6e4df038de04e13363d1eb929b4fd693046ff --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 0b93322875e9aa5719941574fde93d3042dc6796) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 24e6e4df038de04e13363d1eb929b4fd693046ff) @@ -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.