Class GamepadCarWheels

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class GamepadCarWheels
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Utility class which implements Omni-Drive.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Cleans up this GamepadCarWheels instance.
      void update​(boolean useMicroMovement)
      Must be called every loop iteration to update the movement of the wheels.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • update

        public void update​(boolean useMicroMovement)

        Must be called every loop iteration to update the movement of the wheels. Movement is based upon gamepad input.

        Controls Left stick - movement: forward, backward, left and right without turning Right tick - rotation: clockwise and counterclockwise

      • close

        public void close()
        Cleans up this GamepadCarWheels instance. This should be called when this instance is no longer in use!
        Specified by:
        close in interface java.lang.AutoCloseable