Added shaft encoder testing functions, encoder variables defined as
global