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 MavInfoChecks if the necessaryMavInfo-Annotationis present.
If so a representing Object will be returned otherwise anAnnotationMissingExceptionwill be thrown.default intgetCrc()Returns the CRC_EXTRA-Byte for theMavlinkMessagedeclared in theMavInfo.
It is used for the checksum-calculation based on theX25Checksumalgorithm (also know asCRC-16-CCITT).
For more information see:
https://mavlink.io/en/guide/serialization.html#crc_extradefault intgetId()Returns the id of theMavlinkMessagedeclared 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-Annotationis present.
If so a representing Object will be returned otherwise anAnnotationMissingExceptionwill be thrown.Implementation Node: Should not be overwritten
- Returns:
MavInfoof this class if present- Throws:
AnnotationMissingException- ifMavInfois not present
-
getCrc
default int getCrc()Returns the CRC_EXTRA-Byte for theMavlinkMessagedeclared in theMavInfo.
It is used for the checksum-calculation based on theX25Checksumalgorithm (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 theMavlinkMessagedeclared 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
-