Package frc.robot.subsystems
Class PanelManipulator
- java.lang.Object
-
- edu.wpi.first.wpilibj2.command.SubsystemBase
-
- frc.robot.subsystems.PanelManipulator
-
- All Implemented Interfaces:
edu.wpi.first.wpilibj.Sendable
,edu.wpi.first.wpilibj2.command.Subsystem
public class PanelManipulator extends edu.wpi.first.wpilibj2.command.SubsystemBase
Subsystem in charge of interacting with the control panel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PanelManipulator
getInstance()
Get the PanelManipulator instancevoid
goToColor(java.lang.String color)
Set the manipulator to move an FMS color under the field sensorboolean
isIdle()
Check if the system is idleboolean
isTouchingPanel()
Get if the manipulator is currently touching the control panelvoid
periodic()
void
rotateForTime(double seconds)
void
rotateTo(double relRotations)
Rotate panel by N rotationsvoid
stop()
Stop the system-
Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
-
-
-
-
Method Detail
-
getInstance
public static PanelManipulator getInstance()
Get the PanelManipulator instance- Returns:
- Instance
-
periodic
public void periodic()
-
isTouchingPanel
public boolean isTouchingPanel()
Get if the manipulator is currently touching the control panel- Returns:
- Is touching control panel?
-
isIdle
public boolean isIdle()
Check if the system is idle- Returns:
- Is system idle?
-
rotateTo
public void rotateTo(double relRotations)
Rotate panel by N rotations- Parameters:
relRotations
- Number of rotations for panel
-
goToColor
public void goToColor(java.lang.String color)
Set the manipulator to move an FMS color under the field sensor- Parameters:
color
- FMS color string
-
stop
public void stop()
Stop the system
-
rotateForTime
public void rotateForTime(double seconds)
-
-