Class JoystickSim

java.lang.Object
edu.wpi.first.wpilibj.simulation.GenericHIDSim
edu.wpi.first.wpilibj.simulation.JoystickSim

public class JoystickSim
extends GenericHIDSim
Class to control a simulated joystick.
  • Constructor Details

  • Method Details

    • setX

      public void setX​(double value)
      Set the X value of the joystick.
      Parameters:
      value - the new X value
    • setY

      public void setY​(double value)
      Set the Y value of the joystick.
      Parameters:
      value - the new Y value
    • setZ

      public void setZ​(double value)
      Set the Z value of the joystick.
      Parameters:
      value - the new Z value
    • setTwist

      public void setTwist​(double value)
      Set the twist value of the joystick.
      Parameters:
      value - the new twist value
    • setThrottle

      public void setThrottle​(double value)
      Set the throttle value of the joystick.
      Parameters:
      value - the new throttle value
    • setTrigger

      public void setTrigger​(boolean state)
      Set the trigger value of the joystick.
      Parameters:
      state - the new value
    • setTop

      public void setTop​(boolean state)
      Set the top state of the joystick.
      Parameters:
      state - the new state