Python Messages

Paparazzi message representation

class pprzlink.message.PprzMessage(class_name, msg, component_id=0)[source]

base Paparazzi message class

property class_id

Get the class id.

fieldbintypes(t)[source]

Get type and length for binary format

property fieldcoefs

Get list of field coefs.

property fieldnames

Get list of field names.

property fieldtypes

Get list of field types.

property fieldvalues

Get list of field values.

get_field(idx)[source]

Get field value by index.

ivy_string_to_payload(data)[source]

parse Ivy data string to PPRZ values header and message name should have been removed

Basically parts/args in string are separated by space, but char array can also contain a space: |f,o,o, ,b,a,r| in old format or "foo bar" in new format

property msg_class

Get the message class.

property msg_id

Get the message id.

property name

Get the message name.

to_csv(payload_only=False)[source]

return message as CSV string for use with RAW_DATALINK msg_name;field1;field2;

exception pprzlink.message.PprzMessageError(message, inner_exception=None)[source]