Package xbot.common.subsystems.feedback
Interface XRumbleManager
- All Known Implementing Classes:
RumbleManager
public interface XRumbleManager
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the current rumble state.void
periodic()
Called periodically to update the rumble state.void
rumbleGamepad
(double intensity, double length) Rumbles the gamepad at the specified intensity for the given duration.void
Immediately stops rumbling on the gamepad.
-
Method Details
-
rumbleGamepad
void rumbleGamepad(double intensity, double length) Rumbles the gamepad at the specified intensity for the given duration.- Parameters:
intensity
- Rumble intensity, between 0 and 1.length
- Rumble duration, in seconds
-
stopGamepadRumble
void stopGamepadRumble()Immediately stops rumbling on the gamepad. -
getIsRumbling
boolean getIsRumbling()Gets the current rumble state.- Returns:
- true if the gamepad is currently rumbling.
-
periodic
void periodic()Called periodically to update the rumble state.
-