Class FtcGamepadRumble.Pattern

java.lang.Object
ftclib.driverio.FtcGamepadRumble.Pattern
Enclosing class:
FtcGamepadRumble

public static class FtcGamepadRumble.Pattern extends Object
This class contains information about a rumble pattern. A rumble pattern contains a pattern name and a custom rumble effect array.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    com.qualcomm.robotcore.hardware.Gamepad.RumbleEffect
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pattern(String name, double leftRumble, double rightRumble, double duration)
    Constructor: Creates an instance of the object.
    Pattern(String name, int blipCount)
    Constructor: Creates an instance of the object.
    Pattern(String name, com.qualcomm.robotcore.hardware.Gamepad.RumbleEffect rumbleEffect)
    Constructor: Creates an instance of the object.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      public String name
    • rumbleEffect

      public com.qualcomm.robotcore.hardware.Gamepad.RumbleEffect rumbleEffect
  • Constructor Details

    • Pattern

      public Pattern(String name, com.qualcomm.robotcore.hardware.Gamepad.RumbleEffect rumbleEffect)
      Constructor: Creates an instance of the object.
      Parameters:
      name - specifies the name of the pattern.
      rumbleEffect - specifies the gamepad rumble effect.
    • Pattern

      public Pattern(String name, double leftRumble, double rightRumble, double duration)
      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

      public Pattern(String name, int blipCount)
      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