From ed35d1981b44d3975f42fb45e38be246ace35e3a Mon Sep 17 00:00:00 2001 From: danielkalmanson <157493130+danielkalmanson@users.noreply.github.com> Date: Wed, 15 May 2024 15:46:14 +0300 Subject: [PATCH] Update mavlink.py Fixed bug #569 from mavros. Fixed another bug in the building of the ros mavlink message- the seq field was not added to the ros mavlink message. --- mavros/mavros/mavlink.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mavros/mavros/mavlink.py b/mavros/mavros/mavlink.py index a008e12fc..9dfb44464 100644 --- a/mavros/mavros/mavlink.py +++ b/mavros/mavros/mavlink.py @@ -121,12 +121,13 @@ def convert_to_rosmsg( len=hdr.mlen, incompat_flags=hdr.incompat_flags, compat_flags=hdr.compat_flags, + seq=mavmsg.get_seq(), sysid=hdr.srcSystem, compid=hdr.srcComponent, msgid=hdr.msgId, checksum=mavmsg.get_crc(), payload64=convert_to_payload64(mavmsg.get_payload()), - signature=None, # FIXME #569 + signature=[], ) else: