Need programming help, could include some cash

4 buttons to run the motor to 4 cardinal positions

How are the cardinal positions defined? Are the motors moving a carriage that trips a limit switch?