com.scottpreston.javarobot.chapter3
Class MiniSscGM
java.lang.Object
com.scottpreston.javarobot.chapter2.Controller
com.scottpreston.javarobot.chapter3.Ssc
com.scottpreston.javarobot.chapter3.MiniSscGM
- All Implemented Interfaces:
- JController, GroupMoveProtocol, SSCProtocol
public class MiniSscGM
- extends Ssc
- implements SSCProtocol, GroupMoveProtocol
Method Summary |
void |
cmd(int ch,
int pos,
int spd)
This is the native constructor mode. |
static void |
main(java.lang.String[] args)
|
void |
move(int time)
|
void |
sscCmd(int ch,
int pos)
This is the SSC Constructor Mode w/500 default speed |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.scottpreston.javarobot.chapter3.SSCProtocol |
move |
MiniSscGM
public MiniSscGM(JSerialPort jSerialPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
sscCmd
public void sscCmd(int ch,
int pos)
throws java.lang.Exception
- Description copied from interface:
GroupMoveProtocol
- This is the SSC Constructor Mode w/500 default speed
- Specified by:
sscCmd
in interface GroupMoveProtocol
- Parameters:
ch
- - channel 0-31pos
- - position 0-255
- Throws:
java.lang.Exception
cmd
public void cmd(int ch,
int pos,
int spd)
throws java.lang.Exception
- Description copied from interface:
GroupMoveProtocol
- This is the native constructor mode.
- Specified by:
cmd
in interface GroupMoveProtocol
- Parameters:
ch
- - channel 0-31pos
- - position 0-255spd
- - speed in ms
- Throws:
java.lang.Exception
move
public void move(int time)
throws java.lang.Exception
- Specified by:
move
in interface GroupMoveProtocol
- Parameters:
time
- - length in milliseconds to move
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)