/* Calculates the atmospheric pressure (in hPa) at the destination altitude based on the current seal-level pressure (in hPa), altitude (in meters) and temperature (in C) */
float pressureAtDestination(float seaLevel, float destTemp, float destAltitude)
/* Calculates the atmospheric pressure (in hPa) at the destination altitude based on the current seal-level pressure (in hPa), altitude (in meters) and temperature (in C) */
float pressureAtDestination(float seaLevel, float destTemp, float destAltitude)
{
  return seaLevel * (float)pow(1.0F - (0.0065F * destAltitude) /
          (destTemp + 0.0065F * destAltitude + 273.15F), 5.257F);
}