Interface MavlinkMessage
- All Superinterfaces:
de.wuespace.telestion.api.message.JsonMessage
public interface MavlinkMessage
extends de.wuespace.telestion.api.message.JsonMessage
Superclass for all MavlinkMessages.
Implementations will be created automatically by the xml2record-tool.
Implementations will be created automatically by the xml2record-tool.
-
Field Summary
Fields inherited from interface de.wuespace.telestion.api.message.JsonMessage
logger
-
Method Summary
Modifier and TypeMethodDescriptiondefault MavInfo
Checks if the necessaryMavInfo-Annotation
is present.
If so a representing Object will be returned otherwise anAnnotationMissingException
will be thrown.default int
getCrc()
Returns the CRC_EXTRA-Byte for theMavlinkMessage
declared in theMavInfo
.
It is used for the checksum-calculation based on theX25Checksum
algorithm (also know asCRC-16-CCITT
).
For more information see:
https://mavlink.io/en/guide/serialization.html#crc_extradefault int
getId()
Returns the id of theMavlinkMessage
declared in theMavInfo
.
it is used to identify the message which was sent to cast the payload.
For more information see:
https://mavlink.io/en/guide/serialization.htmlMethods inherited from interface de.wuespace.telestion.api.message.JsonMessage
className, json, toJsonBuffer, toJsonBuffer, toJsonObject, toJsonString, toJsonString
-
Method Details
-
checkAnnotation
Checks if the necessaryMavInfo-Annotation
is present.
If so a representing Object will be returned otherwise anAnnotationMissingException
will be thrown.Implementation Node: Should not be overwritten
- Returns:
MavInfo
of this class if present- Throws:
AnnotationMissingException
- ifMavInfo
is not present
-
getCrc
default int getCrc()Returns the CRC_EXTRA-Byte for theMavlinkMessage
declared in theMavInfo
.
It is used for the checksum-calculation based on theX25Checksum
algorithm (also know asCRC-16-CCITT
).
For more information see:
https://mavlink.io/en/guide/serialization.html#crc_extraImplementation Node: Should not be overwritten
- Returns:
- CRC_EXTRA-Byte for the
MavlinkMessage
-
getId
default int getId()Returns the id of theMavlinkMessage
declared in theMavInfo
.
it is used to identify the message which was sent to cast the payload.
For more information see:
https://mavlink.io/en/guide/serialization.htmlImplementation Node: Should not be overwritten
- Returns:
- id of the
MavlinkMessage
-