mavlink v0.9.0 MAVLink.Utils View Source
MAVLink support functions used during code generation and runtime Parts of this module are ported from corresponding implementations in mavutils.py
Link to this section Summary
Functions
Helper function for messages to pack array fields
Helper function for messages to pack string fields
Parse an ip address string into a tuple
Helper function for decode() to unpack array fields
Sort parsed message fields into wire order according to https://mavlink.io/en/guide/serialization.html List extension fields separately so that we can not include them for MAVLink 1 messages
Calculate an x25 checksum of a list or binary based on pymavlink mavcrc.x25crc
Link to this section Functions
eight_bit_checksum(value) View Source
pack_array(a, ordinality, field_packer) View Source
Helper function for messages to pack array fields
pack_double(f) View Source
pack_float(f) View Source
pack_string(s, ordinality)
View Source
pack_string(binary(), non_neg_integer()) :: binary()
pack_string(binary(), non_neg_integer()) :: binary()
Helper function for messages to pack string fields
parse_ip_address(address) View Source
Parse an ip address string into a tuple
parse_ip_address(list, address, count) View Source
parse_positive_integer(port) View Source
unpack_array(bin, fun) View Source
Helper function for decode() to unpack array fields
unpack_array(bin, fun, lst) View Source
unpack_double(arg) View Source
unpack_float(arg) View Source
wire_order(fields) View Source
Sort parsed message fields into wire order according to https://mavlink.io/en/guide/serialization.html List extension fields separately so that we can not include them for MAVLink 1 messages
x25_crc(list)
View Source
x25_crc([] | binary()) :: pos_integer()
x25_crc([] | binary()) :: pos_integer()
Calculate an x25 checksum of a list or binary based on pymavlink mavcrc.x25crc