Package frc.robot.commands
Class HapticCommands
java.lang.Object
frc.robot.commands.HapticCommands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 rumbletype
- rumble typestrength
- rumble strength (0 to 1)length
- rumble time (seconds)
-