|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorc.Motor
public class Motor
Basic class for controlling a motor.
| Constructor Summary | |
|---|---|
Motor(Orc orc,
int port,
boolean invert)
Create a new Motor. |
|
| Method Summary | |
|---|---|
double |
getCurrent()
Returns an instantaneous estimate of the current magnitude (in Amps). |
void |
idle()
Disconnects the motor output. |
void |
setPWM(double v)
Enable the motor and set an output PWM. |
void |
setSlewSeconds(double seconds)
Set the amount of time required for the motor to transition from -1 to +1, in seconds. |
void |
setWatchDog(int usec)
Change the watchdog timer to disable motors on the uorc. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Motor(Orc orc,
int port,
boolean invert)
port - [0,2]invert - If true, the direction of the will be inverted.| Method Detail |
|---|
public void idle()
public void setPWM(double v)
v - [-1, 1]public void setWatchDog(int usec)
usec - >= 0public double getCurrent()
public void setSlewSeconds(double seconds)
seconds - [0.001, 120]. Values less than 0.001 are
accepted, but increased to 0.001
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||