Class MotorDemo

  • All Implemented Interfaces:
    Iarm32, Actionable

    public class MotorDemo
    extends Task
    Demo application for motor controller in sign magnitude mode.
    Use the Maxon motor module with a RE-max13 and connect it as follows:
    • PWM A (Right): PWM, channel 0
    • PWM B (Left): PWM, channel 1
    • Encoder A: FQD, channel 0 A
    • Encoder B: FQD, channel 0 B
    • Method Detail

      • action

        public void action()
        Description copied from class: Task
        Action to be performed by the task
        Specified by:
        action in interface Actionable
        Overrides:
        action in class Task
      • stop

        public static void stop()
        Command: Stop motor.
      • left10pi

        public static void left10pi()
        Command: Rotate motor with 5 turns per second in anticlockwise direction.
      • left2pi

        public static void left2pi()
        Command: Rotate motor with 1 turn per second in anticlockwise direction.
      • right10pi

        public static void right10pi()
        Command: Rotate motor with 5 turns per second in clockwise direction.
      • right2pi

        public static void right2pi()
        Command: Rotate motor with 1 turn per second in clockwise direction.
      • disableAutoMode

        public static void disableAutoMode()
        Command: Disable automatic mode.
      • enableAutoMode

        public static void enableAutoMode()
        Command: Enable automatic mode.