RobotCore
Robot Core Documentation
Public Member Functions | List of all members
robotCore.VexMotor Class Reference

The ServoMotor class is used to control a motor that requires single servo PWM signal. More...

Inheritance diagram for robotCore.VexMotor:
robotCore.SmartMotor robotCore.MotorBase

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 ()
 

Detailed Description

The ServoMotor class is used to control a motor that requires single servo PWM signal.

Author
John Gaby

Controls a VEX motor. This class extends the SmartMotor class and configures it with the parameters appropriate to control a VEX motor.

Constructor & Destructor Documentation

◆ VexMotor()

robotCore.VexMotor.VexMotor ( int  pin)
Parameters
pin- Specifies the Arduino PWM pin for the motor.

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