Package xbot.common.subsystems.feedback
Interface XRumbleManager
- All Known Implementing Classes:
RumbleManager
public interface XRumbleManager
-
Nested Class Summary
Nested Classes -
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.
-
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.
-