MSP430FR6047: Multiple Meter constants

Part Number: MSP430FR6047

Tool/software:

Hello,

I am trying to develop a water meter.

If I want to use multiple meter constants, how should I go about doing it? 

Calculate constants over some flows and then have an if statement to switch constants depending on uncalibrated flow?

E.g. meter constant 1 for flows from start to 20 lph, meter constant 2 for 21 to 100 and meter constant 3 from 101 to end?

meter constant 1 would be calculated at flow 12

meter constant 2 would be calculated at flow 55

meter constant 3 would be calculated at flow 200

If yes where in the code should I do that (if statement)?

**Attention** This is a public forum