Changed the GROUND-ALT variable to ground_alt in order to get a reference that will be updated during the flight.