Skip to content

Commit

Permalink
Fix fly_forward_in_posctl() timing
Browse files Browse the repository at this point in the history
  • Loading branch information
PerFrivik committed Feb 19, 2024
1 parent 8a75733 commit c971747
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/mavsdk_tests/autopilot_tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ void AutopilotTester::fly_forward_in_posctl()
}

CHECK(_manual_control->start_position_control() == ManualControl::Result::Success);
store_home();
wait_until_ready();
arm();

// Climb up for 20 seconds
for (unsigned i = 0; i < 20 * manual_control_rate_hz; ++i) {
Expand Down
3 changes: 0 additions & 3 deletions test/mavsdk_tests/test_multicopter_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ TEST_CASE("Fly forward in position control", "[multicopter][vtol]")
{
AutopilotTester tester;
tester.connect(connection_url);
tester.wait_until_ready();
tester.store_home();
tester.arm();
tester.fly_forward_in_posctl();
std::chrono::seconds until_disarmed_timeout = std::chrono::seconds(180);
tester.wait_until_disarmed(until_disarmed_timeout);
Expand Down

0 comments on commit c971747

Please sign in to comment.