|
RobotCore 1.0
WPILib port to raspberry Pi
|
The PWMMotor class is used to control a motor that requires PWM and direction signals. More...
Public Member Functions | |
| PWMMotor (int pwmPin, int dirPin) | |
| PWMMotor (int pwmPin, int dirPin, int i2cAddr) | |
| 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 | 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.
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.
Definition at line 32 of file PWMMotor.java.
| robotCore.PWMMotor.PWMMotor | ( | ) |
Definition at line 35 of file PWMMotor.java.
| robotCore.PWMMotor.PWMMotor | ( | int | pwmPin, |
| int | dirPin ) |
| pwmPin | - Specifies the Arduino PWM pin for the motor. |
| dirPin | - Specifies the Arduino direction pin for the motor. |
Definition at line 43 of file PWMMotor.java.
| robotCore.PWMMotor.PWMMotor | ( | int | pwmPin, |
| int | dirPin, | ||
| int | i2cAddr ) |
| pwmPin | - Specifies the Arduino PWM pin for the motor. |
| dirPin | - Specifies the Arduino direction pin for the motor. |
| i2cAddr | - Specifies the i2c address of the Arduino controlling the motor |
Definition at line 54 of file PWMMotor.java.