jsk wrote: > Thanks. Can you explain why the altimeter has an offset (default) of > 143.6mBar, and why it should be user adjustable? Can't find anything in > the manual about this. >
I will start with the second question first: why?
The relationship between pressure and altitude is very non-linear. The equation is not easy to reproduce in plain ASCII so I will not do that here. If your curiosity overwhelms you, look for the standard atmosphere model on the net.
The sensor outputs a voltage that is linearly proportional to the pressure it sees. The ADC converts this voltage into a number. The smallest difference in the resulting number is referred to as an ADC "count".
Because of the non-linear relationship between pressure and altitude, a one count difference at low altitude does not represent the same altitude difference as one count at a high altitude.
The peak altitude is reported by subtracting the ground level altitude from the apogee altitude. Or:
apogee = f(p1) - f(p2)
Where f() is the function that converts pressure (p1 and p2) into altitude.
Now assume that the sensor has an error that results in an offset in the reported pressure. Then we get:
Apogee = f(p1+offset) - f(p2+offset)
If f() were linear then f(p1+offset) would be the same as f(p1) + f(offset) and the offset would cancel out of the equation. But f() is decidedly not linear so the offset doesn't cancel.
OK, enough of that.
The pressure sensor used in the RDAS is a "calibrated" unit from Motorola. If you look at the data sheet for this part, you will see that Motorola puts a definite number on the sensitivity of the part but not on the offset. Looking further into the data sheet it appears to me that their is some part to part variability in the sensor offset. Thus in order to get the best results you need to somehow figure out what the offset is for your particular sensor.
This isn't terribly hard to do.
First, determine your local barometric pressure. What you want is the actual air pressure and what is usually reported is corrected for your altitude. So you will need to adjust the reported pressure using the standard atmosphere model to get the actual pressure at your location.
Find out what the RDAS is reporting. First, capture some data and then export the raw data to a text file. You want to average together a few hundred samples of the pressure data to get a good number. Or just eyeball it through the random noise.
Convert this number to millvolts (5,000mV/1024 counts)
Now, since the sensor output is linear (actually it isn't quite linear, but it is close enough) we plug our numbers into the good old equation for a line: y = mx + b
y is your local pressure m is the sensor sensitivity (kPa/mV or some such. Be sure your units match!) x is the sensor output in millivolts b is the offset that we are looking for
Solve for b and enter that as the offset in the RDAS GUI.
Easy!
Now the good news is that if your maximum altitude is pretty low (a few thousand feet), the error due to offset errors is pretty small. This is because the slope of f() will not change very much between ground level and apogee.
It is those flights that hit 20,000 feet that get hammered by offset errors. :-)
Note: If you dig up the Motorola data sheet, be carefull about using the sensitivity number. This number is valid for a sensor excitation voltage of 5.1 volts and the RDAS runs at 5 volts.