|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object maslab.orc.Servo
public class Servo
Orc wrapper for a servo.
Field Summary | |
---|---|
double |
maxangle
|
int |
maxpwm
|
double |
minangle
|
int |
minpwm
|
Constructor Summary | |
---|---|
Servo(Orc orc,
int port)
|
Method Summary | |
---|---|
double |
current()
Measure the servo's current consumption. |
static void |
main(java.lang.String[] args)
A very simple little servo calibration program. |
static Servo |
makeHitecHS300(Orc orc,
int port)
Create a servo using default parameters of an Hitec HS300 seeking from 0 to 180 degrees. |
static Servo |
makeMpiMX400(Orc orc,
int port)
Create a servo using default parameters of an MPI-MX400, seeking from 0 to 180 degrees. |
void |
seek(double angle)
Seek the servo. |
double |
tell()
Determine the servo's current command. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int minpwm
public int maxpwm
public double minangle
public double maxangle
Constructor Detail |
---|
public Servo(Orc orc, int port)
Method Detail |
---|
public static Servo makeMpiMX400(Orc orc, int port)
public static Servo makeHitecHS300(Orc orc, int port)
public void seek(double angle)
angle
- The angle to seek to.public double tell()
public double current()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |