Ok,
Lets forget I said the first bits easy!!!
Instead of converting to mmH2O and then converting that to Knots, I decided to go straight from ADC counts to Knots.
So the equation comes out to be (SQR(ADC Counts))* ( 484/79).
Excel comes up with the correct answer. for 1 ADC count the result comes out at 6.1266 knots. Doing the same calculation in a PIC the result is 6 knots. It appears that the result is the integer part only.
The numbers I am trying to get is in the table
mmH2O ________Knots
15_____________ 30
26.5 ___________40
41.5 ___________50
60 _____________60
81.5 ___________70
106.5 __________80
134.5 __________90
166.5 _________100
201 ___________110
239.5 _________120
How do I calculate the correct value and still heed Steves advice to be careful of Math Overflow?
Thanks
aajgss
Bookmarks