From babc54c6b2739f30adae04d2d1a6fec342a12e60 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 21 Oct 2026 00:31:03 +0200 Subject: [PATCH] test(mavsdk_tests): disable baro auto-calibration in the param FTP test (#29359) The test compares a PARAM_VALUE download against a packed FTP download taken shortly after. With SENS_BAR_AUTOCAL enabled, the baro GNSS calibration can save a new CAL_BARO0_OFF between the two, which makes the comparison fail even though both downloads are correct. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Julian Oes --- test/mavsdk_tests/test_param_ftp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/mavsdk_tests/test_param_ftp.cpp b/test/mavsdk_tests/test_param_ftp.cpp index a9a2ab84b98..9d2852c7b82 100644 --- a/test/mavsdk_tests/test_param_ftp.cpp +++ b/test/mavsdk_tests/test_param_ftp.cpp @@ -140,6 +140,10 @@ TEST_CASE("Parameters download via MAVLink FTP", "[multicopter]") AutopilotTesterParamFtp tester; tester.connect(connection_url); + // The baro GNSS auto-calibration writes CAL_BAROx_OFF shortly after boot, + // which can land between the two downloads compared below. + tester.set_param_int("SENS_BAR_AUTOCAL", 0); + // the reference: the conventional PARAM_VALUE stream const mavsdk::Param::AllParams all = tester.all_params(); REQUIRE(all.int_params.size() + all.float_params.size() > 100);