/* Calculates the temperature (in °C) at the destination altitude based on the current seal-level pressure (in hPa), altitude (in meters) and temperature (in C) */
float pressureTempAtDestination(float currTemp, float currAltitude, float destAltitude)
/* Calculates the temperature (in °C) at the destination altitude based on the current seal-level pressure (in hPa), altitude (in meters) and temperature (in C) */
float pressureTempAtDestination(float currTemp, float currAltitude, float destAltitude)
{
  return currTemp - 0.0065F * (destAltitude - currAltitude);
}