Push one automata

Attempt to write an automata to maintain altitude