Package xbot.common.subsystems.feedback
Class RumbleManager
java.lang.Object
xbot.common.subsystems.feedback.RumbleManager
- All Implemented Interfaces:
XRumbleManager
Wrappers around gamepad rumble behavior to control intensity and duration.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface xbot.common.subsystems.feedback.XRumbleManager
XRumbleManager.XRumbleManagerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the current rumble state.voidperiodic()Called periodically to update the rumble state.voidrumbleGamepad(double intensity, double length) Rumbles the gamepad at the specified intensity for the given duration.voidImmediately stops rumbling on the gamepad.
-
Constructor Details
-
RumbleManager
Creates a new RumbleManager instance.- Parameters:
gamepad- The gamepad in which to control rumble on.
-
-
Method Details
-
stopGamepadRumble
public void stopGamepadRumble()Description copied from interface:XRumbleManagerImmediately stops rumbling on the gamepad.- Specified by:
stopGamepadRumblein interfaceXRumbleManager
-
rumbleGamepad
public void rumbleGamepad(double intensity, double length) Description copied from interface:XRumbleManagerRumbles the gamepad at the specified intensity for the given duration.- Specified by:
rumbleGamepadin interfaceXRumbleManager- Parameters:
intensity- Rumble intensity, between 0 and 1.length- Rumble duration, in seconds
-
getIsRumbling
public boolean getIsRumbling()Description copied from interface:XRumbleManagerGets the current rumble state.- Specified by:
getIsRumblingin interfaceXRumbleManager- Returns:
- true if the gamepad is currently rumbling.
-
periodic
public void periodic()Description copied from interface:XRumbleManagerCalled periodically to update the rumble state.- Specified by:
periodicin interfaceXRumbleManager
-