public class NetFTRDTPacket
extends java.lang.Object
implements java.lang.Comparable
| Constructor and Description |
|---|
NetFTRDTPacket(int[] fields)
Create a new NetFTRDTPacket object
|
NetFTRDTPacket(int setRDTSequence,
int setFTSequence,
int setStatus,
int setFx,
int setFy,
int setFz,
int setTx,
int setTy,
int setTz)
Create a new NetFTRDTPacket object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NetFTRDTPacket o) |
int |
compareTo(java.lang.Object o) |
int[] |
getFTArray() |
long |
getFTSequence()
Get the FT sequence number of this packet.
|
int |
getFx()
Get the force in the x-axis
|
int |
getFy()
Get the force in the y-axis.
|
int |
getFz()
Get the force in the z-axis.
|
long |
getRDTSequence()
Get the RDT sequence number of this packet.
|
int |
getStatus()
Get the bit-mapped status code of this packet.
|
int |
getTx()
Get the torque in the x-axis.
|
int |
getTy()
Get the torque in the y-axis.
|
int |
getTz()
Get the torque in the z-axis.
|
public NetFTRDTPacket(int setRDTSequence,
int setFTSequence,
int setStatus,
int setFx,
int setFy,
int setFz,
int setTx,
int setTy,
int setTz)
setRDTSequence - The RDT sequence of this packet.setFTSequence - The F/T sequence of this packet.setStatus - The bit-mapped status code of this packet.setFx - The force in the x-axis, in engineering
units.setFy - The force in the y-axis, in engineering
units.setFz - The force in the z-axis, in engineering
units.setTx - The torque in the x-axis, in engineering
units.setTy - The torque in the y-axis, in engineering
units.setTz - The torque in the z-axis, in engineering
units.public NetFTRDTPacket(int[] fields)
fields - The fields of the RDT data packet, in the order
RDTSequence, FTSequence, Status, Fx, Fy, Fz, Tx, Ty, Tzpublic long getRDTSequence()
public long getFTSequence()
public int getStatus()
public int getFx()
public int getFy()
public int getFz()
public int getTx()
public int getTy()
public int getTz()
public int[] getFTArray()
public int compareTo(NetFTRDTPacket o)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable