The Knights of Ni 2024
CenterStage Off-season Documentation
Loading...
Searching...
No Matches
org.firstinspires.ftc.teamcode.Util.ServoEx Class Reference
Inheritance diagram for org.firstinspires.ftc.teamcode.Util.ServoEx:

Public Member Functions

 ServoEx (HardwareMap hw, String servoName, double minAngle, double maxAngle, AngleUnit angleUnit)
 
 ServoEx (HardwareMap hw, String servoName, double minDegree, double maxDegree)
 
void rotateByAngle (double angle, AngleUnit angleUnit)
 
void rotateByAngle (double degrees)
 
void turnToAngle (double angle, AngleUnit angleUnit)
 
void turnToAngle (double degrees)
 
void rotateBy (double position)
 
void setRange (double min, double max, AngleUnit angleUnit)
 
void setRange (double min, double max)
 
boolean getInverted ()
 
void setInverted (boolean isInverted)
 
double getPosition ()
 
void setPosition (double position)
 
double getAngle (AngleUnit angleUnit)
 
double getAngle ()
 
double getAngleRange (AngleUnit angleUnit)
 
double getAngleRange ()
 
void disable ()
 
String getDeviceType ()
 
Manufacturer getManufacturer ()
 
String getDeviceName ()
 
String getConnectionInfo ()
 
int getVersion ()
 
void resetDeviceConfigurationForOpMode ()
 
void close ()
 

Private Member Functions

double toRadians (double angle, AngleUnit angleUnit)
 
double fromRadians (double angle, AngleUnit angleUnit)
 

Private Attributes

final double maxPosition = 1
 
final double minPosition = 0
 
final Servo servo
 
double maxAngle
 
double minAngle
 

The documentation for this class was generated from the following file: