mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
mavsdk_test: fix mission timeout check
We shouldn't adjust for lockstep speedup twice.
This commit is contained in:
@@ -415,16 +415,7 @@ void AutopilotTester::execute_mission_raw()
|
|||||||
{
|
{
|
||||||
REQUIRE(_mission->start_mission() == Mission::Result::Success);
|
REQUIRE(_mission->start_mission() == Mission::Result::Success);
|
||||||
|
|
||||||
float speed_factor = 1.0f;
|
wait_for_mission_raw_finished(std::chrono::seconds(300));
|
||||||
|
|
||||||
if (_info != nullptr) {
|
|
||||||
speed_factor = _info->get_speed_factor().second;
|
|
||||||
}
|
|
||||||
|
|
||||||
const float waiting_time_simulation_time_s = 300.f; // currently this is tuned for the VTOL wind test
|
|
||||||
float waiting_time_absolute_s = waiting_time_simulation_time_s / speed_factor;
|
|
||||||
|
|
||||||
wait_for_mission_raw_finished(std::chrono::seconds(static_cast<int>(waiting_time_absolute_s)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutopilotTester::execute_rtl()
|
void AutopilotTester::execute_rtl()
|
||||||
|
|||||||
Reference in New Issue
Block a user