altitude_loop and climb_loop of the energycontrol