|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ferrettronics.device.Ft639
Sends commands to a Ft639 chip. The FT639 controls up to five servos. Methods are provided to switch modes of operation and send positional commands to a servo.
Field Summary | |
static int |
MODE_ACTIVE
|
static int |
MODE_SETUP
|
static int |
PULSE_LONG
|
static int |
PULSE_SHORT
|
Constructor Summary | |
Ft639()
Create an Ft639. |
Method Summary | |
void |
connectTo(javax.comm.CommPort cp)
Connect to a communications port device. |
void |
connectTo(Ft649 ft649,
int pin)
Connect to a Ft649. |
int |
getHeader()
Gets the header length. |
int |
getMode()
Gets the chip's mode. |
DeviceProxy |
getProxy()
Gets the device proxy to which this 639 is outputting data. |
int |
getPulse()
Gets the pulse length. |
void |
setHeader(int h)
Sets the header length. |
void |
setMode(int m)
Puts the chip in a mode. |
void |
setPulse(int p)
Sets the pulse length. |
void |
setServoPosition(int pin,
int pos)
Send a command to the FT639. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int MODE_SETUP
public static final int MODE_ACTIVE
public static final int PULSE_SHORT
public static final int PULSE_LONG
Constructor Detail |
public Ft639()
Method Detail |
public DeviceProxy getProxy()
public void connectTo(javax.comm.CommPort cp)
public void connectTo(Ft649 ft649, int pin)
ft649
- The Ft649.pin
- The pin on the 649 that this 639 is attached.public void setServoPosition(int pin, int pos)
pin
- The pin connected to the servo ( 1 to 5 ).pos
- The position to move servo to ( 0 to 255 ).public int getHeader()
public void setHeader(int h)
h
- Specifies the new header length.public int getMode()
public void setMode(int m)
m
- Specifies the new mode.public int getPulse()
public void setPulse(int p)
p
- specifies pulse length.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |