2015-04-20 11:54:22 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Calculates the barometric pressure based on altitude and weather
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-04 00:11:24 +00:00
|
|
|
* altitude - meters <NUMBER>
|
2015-04-20 11:54:22 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-04 00:11:24 +00:00
|
|
|
* barometric pressure - hPA <NUMBER>
|
2015-04-20 11:54:22 +00:00
|
|
|
*
|
2016-01-05 07:39:29 +00:00
|
|
|
* Example:
|
|
|
|
* 0 call ace_weather_fnc_calculateBarometricPressure
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-04-20 11:54:22 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-06-30 17:26:51 +00:00
|
|
|
((1013.25 - 10 * overcast) * (1 - (0.0065 * (EGVAR(common,mapAltitude) + _this)) / (KELVIN(GVAR(currentTemperature)) + 0.0065 * EGVAR(common,mapAltitude))) ^ 5.255754495);
|