|
| | PWMMotor (int pwmPin, int dirPin) |
| |
| | PWMMotor (int pwmPin, int dirPin, int i2cAddr) |
| |
| | 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 | setDTerm (double d) |
| |
| void | setMinPower (double minPower) |
| |
| void | setDeadZone (double deadZone) |
| |
The PWMMotor class is used to control a motor that requires PWM and direction signals.
- Author
- John Gaby
Controls a motor which requires two inputs. One of the inputs is a PWM (Pulse Width Modulation) signal which controls the speed of the motor while the second input controls the direction.