Skip to content

MavlinkTunnel (UORB message)

MAV_TUNNEL_PAYLOAD_TYPE enum.

TOPICS: mavlink_tunnel esc_serial_passthru io_serial_passthru

Fields

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64Time since system start (microseconds)
payload_typeuint16A code that identifies the content of the payload (0 for unknown, which is the default). If this code is less than 32768, it is a 'registered' payload type and the corresponding code should be added to the MAV_TUNNEL_PAYLOAD_TYPE enum. Software creators can register blocks of types as needed. Codes greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase.
target_systemuint8System ID (can be 0 for broadcast, but this is discouraged)
target_componentuint8Component ID (can be 0 for broadcast, but this is discouraged)
payload_lengthuint8Length of the data transported in payload
payloaduint8[128]Data itself

Constants

NameTypeValueDescription
MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWNuint80Encoding of payload unknown
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0uint8200Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1uint8201Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2uint8202Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3uint8203Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4uint8204Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5uint8205Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6uint8206Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7uint8207Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8uint8208Registered for STorM32 gimbal controller
MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9uint8209Registered for STorM32 gimbal controller

Source Message

Source file (GitHub)

Click here to see original file
c
# MAV_TUNNEL_PAYLOAD_TYPE enum

uint8 MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN = 0                # Encoding of payload unknown
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0 = 200    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1 = 201    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2 = 202    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3 = 203    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4 = 204    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5 = 205    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6 = 206    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7 = 207    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8 = 208    # Registered for STorM32 gimbal controller
uint8 MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9 = 209    # Registered for STorM32 gimbal controller

uint64 timestamp	     # Time since system start (microseconds)
uint16 payload_type      # A code that identifies the content of the payload (0 for unknown, which is the default). If this code is less than 32768, it is a 'registered' payload type and the corresponding code should be added to the MAV_TUNNEL_PAYLOAD_TYPE enum. Software creators can register blocks of types as needed. Codes greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase.
uint8 target_system      # System ID (can be 0 for broadcast, but this is discouraged)
uint8 target_component   # Component ID (can be 0 for broadcast, but this is discouraged)
uint8 payload_length     # Length of the data transported in payload
uint8[128] payload       # Data itself

# Topic aliases for known payload types
# TOPICS mavlink_tunnel esc_serial_passthru io_serial_passthru