pt.citar.diablu.nxt.protocol
Class NXTCommandSetInputMode

java.lang.Object
  extended by pt.citar.diablu.nxt.protocol.NXTCommand
      extended by pt.citar.diablu.nxt.protocol.NXTCommandSetInputMode

public class NXTCommandSetInputMode
extends NXTCommand

The NXTCommandSetInputMode allows you to set the input mode for the sensors.

Author:
Jorge Cardoso

Constructor Summary
NXTCommandSetInputMode()
          Constructs a new NXTCommandSetInputMode object with input port = 0, no sensor type, raw sensor mode and with no response requirement.
NXTCommandSetInputMode(byte inputPort, byte sensorType, byte sensorMode)
          Constructs a new NXTCommandSetInputMode object with the input port, sensor type, sensor mode and with no response requirement.
NXTCommandSetInputMode(byte inputPort, byte sensorType, byte sensorMode, boolean responseRequired)
          Constructs a new NXTCommandSetInputMode object with the input port, sensor type, sensor mode and response requirement specified.
 
Method Summary
 
Methods inherited from class pt.citar.diablu.nxt.protocol.NXTCommand
getPacketLength, isResponseRequired, sendCommand, setResponseRequired, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NXTCommandSetInputMode

public NXTCommandSetInputMode()
Constructs a new NXTCommandSetInputMode object with input port = 0, no sensor type, raw sensor mode and with no response requirement.


NXTCommandSetInputMode

public NXTCommandSetInputMode(byte inputPort,
                              byte sensorType,
                              byte sensorMode)
Constructs a new NXTCommandSetInputMode object with the input port, sensor type, sensor mode and with no response requirement.


NXTCommandSetInputMode

public NXTCommandSetInputMode(byte inputPort,
                              byte sensorType,
                              byte sensorMode,
                              boolean responseRequired)
Constructs a new NXTCommandSetInputMode object with the input port, sensor type, sensor mode and response requirement specified.



Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014