Have tracked down the error, I was using Autopilot.Arm for the autopilot on switch, should have been using Autopilot.Master.
Just need to work out how to make the heading arrow move to the correct place on the rotating compass rose and we have a working autopilot, except for speed, guess that's what a throttle is for
How do we get a switch to respond to a mouse click, at the moment they all respond to rotating the mouse wheel. As a result its easy to go from ON to OFF back to ON without realising it......edit....cancel this, I missed the word toggle in the switch type
Part 2 to this.
The Autopilot master switch now operates with a mouse wheel or left mouse button however..
Using mouse button, the switch moves, the output changes but autopilot not active
Using mouse wheel, the switch moves, the output changes and autopilot now active
??????????????????? I hate TMD files