Package edu.tufts.hrilab.scale
Class ScalePacket
java.lang.Object
edu.tufts.hrilab.scale.ScalePacket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getSize()
double
void
static char
Reads one unsigned short in little endian form from the given ByteBuffer, and returns it as a char.
-
Constructor Details
-
ScalePacket
public ScalePacket()
-
-
Method Details
-
readFrom
-
readUnsignedShort
Reads one unsigned short in little endian form from the given ByteBuffer, and returns it as a char.- Parameters:
b
- The ByteBuffer to read from.- Returns:
- The char representation of the read unsigned short.
-
getWeight
public double getWeight() -
getSize
public int getSize()
-