Difference between revisions of "oapiGetAtmPressureDensity"

From OrbiterWiki
Jump to navigation Jump to search
m
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Returns the atmospheric pressure and density at the current vessel position.
+
Returns the [[Atmospheric pressure|atmospheric pressure]] and [[Atmospheric density|density]] at the current [[Vessel|vessel]] position.
  
 
  void oapiGetAtmPressureDensity (
 
  void oapiGetAtmPressureDensity (
Line 12: Line 12:
  
 
==Notes==
 
==Notes==
Pressure and density are calculated using an exponential barometric equation, without accounting for local variations.
+
Pressure and density are calculated using an exponential barometric equation, without accounting for local variations on [[Celestial body|celestial bodies]] without [[Atmosphere model|atmosphere model]] inside their [[Module|module]].
  
 
[[Category:OrbiterSDK|GetAtmPressureDensity]][[Category:Aerodynamics API|GetAtmPressureDensity]]
 
[[Category:OrbiterSDK|GetAtmPressureDensity]][[Category:Aerodynamics API|GetAtmPressureDensity]]
 +
[[Category:Aerodynamics]]

Revision as of 11:09, 7 January 2008

Returns the atmospheric pressure and density at the current vessel position.

void oapiGetAtmPressureDensity (
                               OBJHANDLE hVessel,
                               double *pressure
                               double *density)

Parameters

hVessel
vessel handle
pressure
pointer to the variable receiving pressure value (Pa)
density
pointer to the variable receiving density value (kg/m^3)

Notes

Pressure and density are calculated using an exponential barometric equation, without accounting for local variations on celestial bodies without atmosphere model inside their module.