pt.citar.diablu.nxt.protocol
Class NXTCommandResetMotorPosition

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

public class NXTCommandResetMotorPosition
extends NXTCommand

Author:
Jorge Cardoso

Constructor Summary
NXTCommandResetMotorPosition()
          Constructs a new NXTCommandResetMotorPosition object.
NXTCommandResetMotorPosition(byte outputPort)
          Constructs a new NXTCommandResetMotorPosition object with a given output port.
 
Method Summary
 void setRelative(boolean relative)
           
 
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

NXTCommandResetMotorPosition

public NXTCommandResetMotorPosition()
Constructs a new NXTCommandResetMotorPosition object.


NXTCommandResetMotorPosition

public NXTCommandResetMotorPosition(byte outputPort)
Constructs a new NXTCommandResetMotorPosition object with a given output port.

Parameters:
inputPort - The input port to read values from. Range: (0 - 2).
Method Detail

setRelative

public void setRelative(boolean relative)
Parameters:
relative - True: position relative to last movement, False: absolute position.


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