Package frc.robot.services.control
Interface ControlProfile
- All Known Subinterfaces:
DriverProfile,OperatorProfile
- All Known Implementing Classes:
DefaultDriverProfile,DefaultOperatorProfile,GenericControlProfile,SetpointDriverProfile
public interface ControlProfile
Represents a control profile for a physical HID device.
-
Method Summary
Modifier and TypeMethodDescriptiongetHID()Returns the physical HID device.doubleReturns the left rumble value for the controller.doubleReturns the right rumble value for the controller.booleanReturns whether or not the controller is connected.
-
Method Details
-
getHID
GenericHID getHID()Returns the physical HID device.- Returns:
- The GenericHID device.
-
getLeftRumble
double getLeftRumble()Returns the left rumble value for the controller.- Returns:
- The left rumble intensity (0.0-1.0).
-
getRightRumble
double getRightRumble()Returns the right rumble value for the controller.- Returns:
- The right rumble intensity (0.0-1.0).
-
isConnected
boolean isConnected()Returns whether or not the controller is connected.- Returns:
- True if the controller is connected, false otherwise.
-