com.scottpreston.javarobot.chapter3
Class LM32
java.lang.Object
   com.scottpreston.javarobot.chapter2.Controller
com.scottpreston.javarobot.chapter2.Controller
       com.scottpreston.javarobot.chapter3.Ssc
com.scottpreston.javarobot.chapter3.Ssc
           com.scottpreston.javarobot.chapter3.LM32
com.scottpreston.javarobot.chapter3.LM32
- All Implemented Interfaces: 
- JController, GroupMoveProtocol, SSCProtocol
- public class LM32 
- extends Ssc- implements SSCProtocol, GroupMoveProtocol
 
 
 
 
| 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 java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface com.scottpreston.javarobot.chapter3.SSCProtocol | 
| move | 
 
DEFAULT_SPEED
public static int DEFAULT_SPEED
LM32
public LM32(JSerialPort sPort)
     throws java.lang.Exception
- Throws:
- java.lang.Exception
move
public void move(int ms)
          throws java.lang.Exception
- 
- Specified by:
- movein 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:
- sscCmdin 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:
- cmdin 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)
- 
 
-