Code for controlling helicopter pitch.