From 2ab558196e5881693c5b9beee2b62ecdd1a24e62 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Wed, 19 Oct 2022 06:59:58 +0530 Subject: [PATCH 1/2] Add Mavlink2 and GPS to the protocol types --- uavcan/tunnel/Protocol.uavcan | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uavcan/tunnel/Protocol.uavcan b/uavcan/tunnel/Protocol.uavcan index a2fc0a3..918169f 100644 --- a/uavcan/tunnel/Protocol.uavcan +++ b/uavcan/tunnel/Protocol.uavcan @@ -4,5 +4,8 @@ # uint8 MAVLINK = 0 # MAVLink +uint8 MAVLINK2 = 1 # MAVLink2 +uint8 GPS = 2 # GPS +uint8 UNDEFINED = 255 # Undefined uint8 protocol From 6d1f636688afad564eebaf23bad21c060cbe869e Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Fri, 21 Oct 2022 04:58:47 +0530 Subject: [PATCH 2/2] add SerialConfig option message --- uavcan/tunnel/2011.SerialConfig.uavcan | 9 +++++++++ uavcan/tunnel/Protocol.uavcan | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 uavcan/tunnel/2011.SerialConfig.uavcan diff --git a/uavcan/tunnel/2011.SerialConfig.uavcan b/uavcan/tunnel/2011.SerialConfig.uavcan new file mode 100644 index 0000000..2205381 --- /dev/null +++ b/uavcan/tunnel/2011.SerialConfig.uavcan @@ -0,0 +1,9 @@ +# +# This message carries baudrate for tunnel channel_id + +# The channelID allows for additional routing between the source and target nodes. +uint8 channel_id + +uint32 baud + +uint24 options diff --git a/uavcan/tunnel/Protocol.uavcan b/uavcan/tunnel/Protocol.uavcan index 918169f..f7794cd 100644 --- a/uavcan/tunnel/Protocol.uavcan +++ b/uavcan/tunnel/Protocol.uavcan @@ -5,7 +5,7 @@ uint8 MAVLINK = 0 # MAVLink uint8 MAVLINK2 = 1 # MAVLink2 -uint8 GPS = 2 # GPS +uint8 GPS_GENERIC = 2 # GPS in any protocol (e.g. UBX, NMEA, etc.) uint8 UNDEFINED = 255 # Undefined uint8 protocol