**Important** reset the default mode to 'autopilot'. this needs to be set to manual for production.

Added code for matrix rotations