(Long Post - Apologies in advance) (Posted to FSDeveloper as well) I'm a new C++ gauge programmer and am stumped ( which bothers me since I have 19 years in software development, I've programmed in C/C++/Java/D/VB/Smalltalk...written and generated XML...er, back to the subject at hand). As the title says this question relates to a complete pitot static system for an aircraft cockpit project. To get the airspeed indicator connected to the pitot static system to work I need to get the static pressure and the pitot pressure to calculate dynamic pressure, which would give me the position of the airspeed indication (which I assumed would be CAS/IAS).
I found the static system variable its A: AMBIENT PRESSURE for the static pressure, but I can't find a "pitot pressure" Avar, I also tried looking for a ram air pressure variable, and other combinations, I have searched all the forums. Then I find that there is an A: DYNAMIC PRESSURE! Since I had assumed I had to calculate:
AMBIENT PRESSURE ( = static pressure in Millibars)
X
PITOT PRESSURE (Nonexistent in A:Vars as far as I can tell)
= DYNAMIC PRESSURE (Dynamic pressure in Pounds per square foot)
Then apparently I need to do something with the dynamic pressure to covert it into numbers for positioning the needles and drums on the instrument to display the air speed, I figured that's what a pitot static system was for (I'm not a pilot, but a back seater). I can read the A variables all day long, but what I can't seem to figure out is what variables and formula to take those do the calculations and output a airspeed to the various L:Vars for the needles and drums on the instrument itself.
A fellow sim programmer suggested taking AMBIENT PRESSURE and DYNAMIC pressure and calculating it to get airspeed to display with your indicator Lvar. This doesn't make sense when I read the aircraft -1 or -2 about the airspeed indicator. I also understand that at some point AOA and side slip angle would also have something to do with calculating a realistic airspeed indication.
Finally, I'm getting the feeling that there is a better way to go about doing this, but I just can't seem to see it.
Any help would be greatly appreciated.
Bookmarks