pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class MavlinkFrame

    One MAVLink frame, assembled or received.

    Index
    • get bytes(): Buffer

      The whole frame, ready to put on the wire.

      Returns Buffer

    • get incompatFlags(): number

      The incompatibility flags a v2 frame declares.

      Returns number

    • get messageId(): number

      The id of the message the frame carries.

      Returns number

    • get payload(): Buffer

      The message payload.

      A v2 frame drops trailing zero bytes, so a payload can arrive shorter than the message's full length; a decoder zero-extends it.

      Returns Buffer

    • get signature(): Buffer<ArrayBufferLike> | null

      The signature block, or null when the frame is not signed.

      Returns Buffer<ArrayBufferLike> | null

    • get signed(): boolean

      Whether the frame carries a signature.

      This says only that the frame was signed, not that the signature is good; a Verifier decides that.

      Returns boolean

    • Parses one frame, checking it against a known CRC_EXTRA.

      Throws if the bytes are not a whole frame or the checksum does not match, which is what rejects a frame mangled in transit.

      Parameters

      • bytes: Buffer
      • crcExtra: number

      Returns mavlink.MavlinkFrame