The generic autopilot helper calculates heading-bug-error-deg using
a heading direct from the simulation, rather than a heading that
simulates drift in the directional gyro. The automatic heading hold
is based on readings from the gyro and was confused by the calculated
heading-bug-error-deg. Fix by calculating in the autopilot.
Removed generic autopilot helpers, which are not used.
Modify the trigger for automatic heading hold so that it engages when
the autopilot engages, the heading is stable and the turn select is
neutral. The heading hold was only engaging when the turn select was
returned to neutral.