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 <julian@oes.ch>
This commit is contained in:
Julian Oes authored and GitHub committed 2026-10-20 16:31:03 -06:00
1 parent 922aaa4d42
commit babc54c6b2
1 file changed
+4
+4
View File
@@ -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);