Compute history gain from baro altitude