Results 1 to 6 of 6

Thread: Density Altitude Gauge-- How hard would it be to make one of these?

  1. #1
    Join Date
    Apr 2010
    Location
    Oakland, California; USA
    Posts
    341

    Default Density Altitude Gauge-- How hard would it be to make one of these?

    This is probably a bit of a reach, but I figured it's worth a try:

    Is it possible to make a Density Altitude Gauge, using the parameter of "Ambient Density" in units of Slugs/cubic feet, and then converting that to density altitude in linear feet?

    Since ambient density varies with sea level pressure, temperature, and the plane's actual altitude (and I suppose relative humidity would also be a factor in real life-- though in the simulator changing the dew point temp seems to have no effect on the density reading), I thought there might be a way to get the simulator program to calculate the equivalent density altitude if the above factors were taken into consideration, by entering the correct formula into the .xml file. But again, I'm not 100% sure.

    Thanks,

    -- John
    MSFS 2004 v9.1; Windows 7 Ultimate 64-bit
    AMD FX 8120 8-core processor 4.3Ghz, XFX R7870 2GB GDDR5, Corsair Vengeance 8GB 1600, Western Digital 500GB HDD, Biostar A880GZ AM3+, Antec Kuhler 620 water cooling

  2. Default

    You can use pressure altitude and outside airtemperature.
    http://en.wikipedia.org/wiki/Density...de#Calculation

    from a gauge I made once:

    Code:
    <Macro Name="DensAlt"> (A:PRESSURE ALTITUDE, feet) (A:AMBIENT TEMPERATURE, celsius) (A:PRESSURE ALTITUDE, feet) 1000 / -1.98 * 15 + - 120 * + </Macro>
    Last edited by jeroen79; 06-30-2012 at 03:43 PM.

  3. #3

    Default

    This is my formula for calculating density altitude (using a simplified model that assumes dry air). It is 95% accurate to the more robust formulas that take dew-point into account.

    Code:
    <!--Calculate Density Altitude -->
    (A:Ambient temperature, celsius) (A:STANDARD ATM TEMPERATURE, celsius) -
    118.6 * (A:Pressure Altitude, feet) + (>L:DensityAlt,enum)
    

    Bill Leaming
    Gauge Programming - 3d Modeling Eaglesoft & Military Visualizations
    Flightsim.com Panels & Gauges Forum Moderator
    Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - GeForce GTX550Ti 1GB - Win7 64bit Home Premium
    Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
    Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
    NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

  4. #4
    Join Date
    Apr 2010
    Location
    Oakland, California; USA
    Posts
    341

    Default

    Thank you to both 'jeroen79' and 'n4gix'. I will try both and run them side by side just to see how close they approximate one another in practice.

    It's been my experience that when manually setting my own weather conditions in the "user weather" section, that changing the dew point temp (relative to the chosen actual temp) makes no difference in the "ambient density" as far as the simulator is concerned. Therefore any formula for density altitude that is dependent upon a specific %'age of relative humidity doesn't appear to have any bearing.
    MSFS 2004 v9.1; Windows 7 Ultimate 64-bit
    AMD FX 8120 8-core processor 4.3Ghz, XFX R7870 2GB GDDR5, Corsair Vengeance 8GB 1600, Western Digital 500GB HDD, Biostar A880GZ AM3+, Antec Kuhler 620 water cooling

  5. #5

    Default

    Bill; Thanks for pointing out the existence of A:STANDARD ATM TEMPERATURE. Is there A:STANDARD ATM PRESSURE - I cann't find it in the SDK?

  6. #6

    Default

    Quote Originally Posted by mgh View Post
    Bill; Thanks for pointing out the existence of A:STANDARD ATM TEMPERATURE. Is there A:STANDARD ATM PRESSURE - I cann't find it in the SDK?
    Not that I've seen either. Even this one seems to be new to FSX, since there's no such variable listed in the FS9 SDK.
    Bill Leaming
    Gauge Programming - 3d Modeling Eaglesoft & Military Visualizations
    Flightsim.com Panels & Gauges Forum Moderator
    Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - GeForce GTX550Ti 1GB - Win7 64bit Home Premium
    Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
    Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
    NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

Similar Threads

  1. Replies: 5
    Last Post: 06-14-2005, 11:09 PM
  2. How hard would it be...
    By JB9606 in forum The Outer Marker
    Replies: 1
    Last Post: 03-17-2003, 08:57 PM
  3. How would one make an XML windshield wiper "gauge"?
    By AndPuppetsforAll in forum FS2002
    Replies: 3
    Last Post: 01-28-2003, 04:24 PM
  4. Wondering how hard it would be for someone to paint that.
    By SRQpilot737 in forum MSFS Screen Shot Forum
    Replies: 4
    Last Post: 07-28-2002, 09:21 PM
  5. Replies: 5
    Last Post: 01-10-2002, 06:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •