Class HapticCommands

java.lang.Object
frc.robot.commands.HapticCommands

public class HapticCommands extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static edu.wpi.first.wpilibj2.command.Command
    HapticTap(edu.wpi.first.wpilibj.XboxController controller, edu.wpi.first.wpilibj.GenericHID.RumbleType type, double strength, double length)
    Trigger rumble on a controller for a specified amount of time.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HapticCommands

      public HapticCommands()
  • Method Details

    • HapticTap

      public static edu.wpi.first.wpilibj2.command.Command HapticTap(edu.wpi.first.wpilibj.XboxController controller, edu.wpi.first.wpilibj.GenericHID.RumbleType type, double strength, double length)
      Trigger rumble on a controller for a specified amount of time.
      Parameters:
      controller - controller to rumble
      type - rumble type
      strength - rumble strength (0 to 1)
      length - rumble time (seconds)