public class AckValuesMessage extends AckMessage
type| Constructor and Description |
|---|
AckValuesMessage(byte[] payloadBytes,
Atmel origin)
Creates a new AckValuesMessage giving it a payload and
the Atmel chip from which it originates
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMotorEncoderValue(int motorNum)
Get the encoder value of the specified motor
|
byte[] |
getPayload()
Get the message payload excluding the type
|
int |
getSensorValue(int sensorNum)
Get the value of the specified sensor
|
getOrigin, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPayloadBytesCount, getTotalBytesCount, getTotalBytesSumpublic AckValuesMessage(byte[] payloadBytes,
Atmel origin)
payloadBytes - the payload in bytesorigin - the Atmel from which it originatespublic int getSensorValue(int sensorNum)
sensorNum - sensor number to get the value frompublic int getMotorEncoderValue(int motorNum)
motorNum - motor number to get the value frompublic byte[] getPayload()
MessagegetPayload in interface MessagegetPayload in class AckMessage