adjusted code so GPS only activates after apogee