From 552d08176fcadad66fdd223769a523c1bc83ce48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 4 Aug 2022 13:19:31 +0200 Subject: [PATCH] posix rcS: set MAV_PROTO_VER to 2 For SITL it's important that the GCS receives the first events messages that reset the sequence number, in case the user does not press 'Disconnect' when restarting SITL. --- ROMFS/px4fmu_common/init.d-posix/rcS | 1 + 1 file changed, 1 insertion(+) diff --git a/ROMFS/px4fmu_common/init.d-posix/rcS b/ROMFS/px4fmu_common/init.d-posix/rcS index 40f5eb5af9..2f0d82ca18 100644 --- a/ROMFS/px4fmu_common/init.d-posix/rcS +++ b/ROMFS/px4fmu_common/init.d-posix/rcS @@ -148,6 +148,7 @@ param set-default EKF2_MULTI_MAG 2 param set-default SENS_MAG_MODE 0 param set-default IMU_GYRO_FFT_EN 1 +param set-default MAV_PROTO_VER 2 # Ensures QGC does not drop the first few packets after a SITL restart due to MAVLINK 1 packets param set-default -s MC_AT_EN 1