Class MotorDemo1

  • All Implemented Interfaces:
    Ippc32, Actionable

    public class MotorDemo1
    extends Task
    Demo application for motor controller.
    Use the Maxon Motor Module with a RE-max13 and connect it as follows:
    • PWM A (Right): TPU A, Channel 0
    • PWM B (Left): TPU A, Channel 1
    • Encoder A: TPU A, Channel 2
    • Encoder B: TPU A, Channel 3
    • Mode: Sign Magnitude (GND)
    • 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.
      • fullLeft

        public static void fullLeft()
        Command: Rotate motor with full speed in anticlockwise direction.
      • halfLeft

        public static void halfLeft()
        Command: Rotate motor with half speed in anticlockwise direction.
      • fullRight

        public static void fullRight()
        Command: Rotate motor with full speed in clockwise direction.
      • halfRight

        public static void halfRight()
        Command: Rotate motor with half speed in clockwise direction.
      • disableAutoMode

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

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