Package ftclib.driverio
Class FtcGamepadRumble.Pattern
java.lang.Object
ftclib.driverio.FtcGamepadRumble.Pattern
- Enclosing class:
- FtcGamepadRumble
This class contains information about a rumble pattern. A rumble pattern contains a pattern name and a custom
rumble effect array.
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.qualcomm.robotcore.hardware.Gamepad.RumbleEffect
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor: Creates an instance of the object.Constructor: Creates an instance of the object.Constructor: Creates an instance of the object. -
Method Summary
-
Field Details
-
name
-
rumbleEffect
public com.qualcomm.robotcore.hardware.Gamepad.RumbleEffect rumbleEffect
-
-
Constructor Details
-
Pattern
Constructor: Creates an instance of the object.- Parameters:
name
- specifies the name of the pattern.rumbleEffect
- specifies the gamepad rumble effect.
-
Pattern
Constructor: Creates an instance of the object.- Parameters:
name
- specifies the name of the pattern.leftRumble
- specifies rumble power for left rumble motor (0.0 - 1.0).rightRumble
- specifies rumble power for right rumble motor (0.0 - 1.0).duration
- specifies duration to rumble for in seconds, or -1 for continuous.
-
Pattern
Constructor: Creates an instance of the object.- Parameters:
name
- specifies the name of the pattern.blipCount
- specifies the number of blips in the pattern.
-
-
Method Details