mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavsdk_test: fix mission timeout check
We shouldn't adjust for lockstep speedup twice.
This commit is contained in:
parent
d03b1171f9
commit
bfbd9bfe27
@ -415,16 +415,7 @@ void AutopilotTester::execute_mission_raw()
|
||||
{
|
||||
REQUIRE(_mission->start_mission() == Mission::Result::Success);
|
||||
|
||||
float speed_factor = 1.0f;
|
||||
|
||||
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)));
|
||||
wait_for_mission_raw_finished(std::chrono::seconds(300));
|
||||
}
|
||||
|
||||
void AutopilotTester::execute_rtl()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user