mavsdk_tests: update to MAVSDK v0.41.0

This required replacing some of the methods which had been deprecated
and now removed.
This commit is contained in:
Julian Oes 2021-07-23 06:44:42 +02:00
parent 11480cdbc7
commit af50e25647
2 changed files with 3 additions and 4 deletions

View File

@ -1 +1 @@
0.40.0
0.41.0

View File

@ -62,9 +62,9 @@ void AutopilotTester::connect(const std::string uri)
std::cout << time_str() << "Waiting for system connect" << std::endl;
REQUIRE(poll_condition_with_timeout(
[this]() { return _mavsdk.is_connected(); }, std::chrono::seconds(25)));
[this]() { return _mavsdk.systems().size() > 0; }, std::chrono::seconds(25)));
auto &system = _mavsdk.system();
auto system = _mavsdk.systems().at(0);
_action.reset(new Action(system));
_failure.reset(new Failure(system));
@ -98,7 +98,6 @@ void AutopilotTester::wait_until_ready_local_position_only()
(_telemetry->health().is_gyrometer_calibration_ok &&
_telemetry->health().is_accelerometer_calibration_ok &&
_telemetry->health().is_magnetometer_calibration_ok &&
_telemetry->health().is_level_calibration_ok &&
_telemetry->health().is_local_position_ok);
}, std::chrono::seconds(20)));
}