mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
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:
1 parent
922aaa4d42
commit
babc54c6b2
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user