Set up Boat Action Message encoding
- Fixed command number for sails out #story[1089]
This commit is contained in:
@@ -94,6 +94,15 @@ public class BinaryMessageEncoder {
|
||||
this.fullMessage = tempFullMessageByteBuffer.array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a binary message from message type and message body.
|
||||
* @param headerMessageType of message
|
||||
* @param messageBody of message
|
||||
*/
|
||||
public BinaryMessageEncoder(MessageType headerMessageType, byte[] messageBody) {
|
||||
this(headerMessageType, System.currentTimeMillis(), 69, (short)messageBody.length, messageBody);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the full encoded message. This includes the header, body, and CRC.
|
||||
* @return Full encoded message.
|
||||
|
||||
@@ -19,6 +19,7 @@ public enum MessageType {
|
||||
MARKROUNDING(38),
|
||||
COURSEWIND(44),
|
||||
AVGWIND(47),
|
||||
BOATACTION(100),
|
||||
NOTAMESSAGE(0);
|
||||
|
||||
///Primitive value of the enum.
|
||||
|
||||
Reference in New Issue
Block a user