Hey Guys.
First time posting here. I defined a macro as follows:
#define VPressureSUPPLY 5.0
#define mpx4115VOLTStoPRESSURE(VOLTS) (VOLTS + 0.095) / (VPressureSUPPLY * 0.009)
Then in my code, I called the above macro as follows:
pressurekPA = mpx4115VOLTStoPRESSURE(vPressure);
Issue is for vPressure = 0, pressurekPA is 2.11 instead of 0.019. What is the problem?
Thanks!