RobotCore
Robot Core Documentation
|
The ServoMotor class is used to control a motor that requires single servo PWM signal. More...
Public Member Functions | |
VexMotor (int pin) | |
Public Member Functions inherited from robotCore.SmartMotor | |
SmartMotor (SmartMotorType type, int pwmPin, int dirPin) | |
SmartMotor (SmartMotorType type, int pwmPin, int dirPin, int i2cAddr) | |
SmartMotor (int pin, int min, int zero, int max) | |
SmartMotor (int pin, int min, int zero, int max, int i2cAddr) | |
void | setMaxSpeed (double maxSpeed) |
void | set (double value) |
void | setFeedbackDevice (Encoder encoder) |
Encoder | getFeedbackDevice () |
void | setControlMode (SmartMotorMode mode) |
void | setFTerm (double f) |
void | setITerm (double i) |
void | setPTerm (double p) |
void | setIZone (double z) |
void | setInverted (boolean invert) |
void | disable () |
void | enable () |
The ServoMotor class is used to control a motor that requires single servo PWM signal.
Controls a VEX motor. This class extends the SmartMotor class and configures it with the parameters appropriate to control a VEX motor.
robotCore.VexMotor.VexMotor | ( | int | pin | ) |
pin | - Specifies the Arduino PWM pin for the motor. |