com.scottpreston.javarobot.chapter3
Class LM32

java.lang.Object
  extended by com.scottpreston.javarobot.chapter2.Controller
      extended by com.scottpreston.javarobot.chapter3.Ssc
          extended by com.scottpreston.javarobot.chapter3.LM32
All Implemented Interfaces:
JController, GroupMoveProtocol, SSCProtocol

public class LM32
extends Ssc
implements SSCProtocol, GroupMoveProtocol


Field Summary
static int DEFAULT_SPEED
           
 
Fields inherited from interface com.scottpreston.javarobot.chapter3.SSCProtocol
MAX, MIN, NEUTRAL
 
Fields inherited from interface com.scottpreston.javarobot.chapter3.GroupMoveProtocol
CMD_TERM
 
Constructor Summary
LM32(JSerialPort sPort)
           
 
Method Summary
 void cmd(int ch, int pos, int spd)
          This is the native constructor mode.
static java.lang.String createCmd(int ch, int pos, int spd)
           
static int getPw(int pos)
           
 boolean isBusy()
           
static void main(java.lang.String[] args)
           
 void move(int ms)
           
 void setRawCommand(java.lang.String rawCmd)
           
 void sscCmd(int ch, int pos)
          This is the SSC Constructor Mode w/500 default speed
 
Methods inherited from class com.scottpreston.javarobot.chapter3.Ssc
getMaxPin, move, move, setMaxPin
 
Methods inherited from class com.scottpreston.javarobot.chapter2.Controller
close, execute, execute2
 
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
 

Field Detail

DEFAULT_SPEED

public static int DEFAULT_SPEED
Constructor Detail

LM32

public LM32(JSerialPort sPort)
     throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

move

public void move(int ms)
          throws java.lang.Exception
Specified by:
move in interface GroupMoveProtocol
Parameters:
ms - - length in milliseconds to move
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-31
pos - - 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-31
pos - - position 0-255
spd - - speed in milliseconds
Throws:
java.lang.Exception

setRawCommand

public void setRawCommand(java.lang.String rawCmd)

createCmd

public static java.lang.String createCmd(int ch,
                                         int pos,
                                         int spd)

isBusy

public boolean isBusy()

getPw

public static int getPw(int pos)

main

public static void main(java.lang.String[] args)