Module sbp::messages::invalid

source ·
Expand description

Invalid messages. This message type should be created out of two errors: The SbpMsgParseError, & the CrcError. They correspond to two cases

  1. the Frame is invalid because either it either has an invalid CRC or it is missing some metadata like msg_type or similar.
  2. The message is invalid because the payload is not large enough and cannot be parsed into a message. This is the SbpMsgParseError.

Structs§

  • Invalid messages occur when either the frame or message payload doesn’t have enough bytes or the CRC does not match the messages payload. If the message is well formed with a message id and CRC and payload that all are consistent, but its message type is unknown, it should be parsed into a Unknown message.