Skip to content

Commit

Permalink
MAVSDK test: increase offboard position threshold
Browse files Browse the repository at this point in the history
This is a workaround to hotfix CI but the root cause is #22792
(MAVSDK test failing after EKF change, accelerometer simulation issues not learned anymore?)
  • Loading branch information
MaEtUgR committed Feb 22, 2024
1 parent c971747 commit 958a66b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/mavsdk_tests/test_multicopter_offboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "autopilot_tester.h"
#include <chrono>

static constexpr float acceptance_radius = 0.3f;

TEST_CASE("Offboard takeoff and land", "[multicopter][offboard]")
{
Expand All @@ -45,7 +46,7 @@ TEST_CASE("Offboard takeoff and land", "[multicopter][offboard]")
tester.set_rc_loss_exception(AutopilotTester::RcLossException::Offboard);
tester.arm();
std::chrono::seconds goto_timeout = std::chrono::seconds(90);
tester.offboard_goto(takeoff_position, 0.1f, goto_timeout);
tester.offboard_goto(takeoff_position, acceptance_radius, goto_timeout);
tester.offboard_land();
tester.wait_until_disarmed(std::chrono::seconds(120));
tester.check_home_within(1.0f);
Expand All @@ -63,12 +64,12 @@ TEST_CASE("Offboard position control", "[multicopter][offboard]")
tester.store_home();
tester.set_rc_loss_exception(AutopilotTester::RcLossException::Offboard);
tester.arm();
std::chrono::seconds goto_timeout = std::chrono::seconds(120);
tester.offboard_goto(takeoff_position, 0.1f, goto_timeout);
tester.offboard_goto(setpoint_1, 0.1f, goto_timeout);
tester.offboard_goto(setpoint_2, 0.1f, goto_timeout);
tester.offboard_goto(setpoint_3, 0.1f, goto_timeout);
tester.offboard_goto(takeoff_position, 0.1f, goto_timeout);
std::chrono::seconds goto_timeout = std::chrono::seconds(10);
tester.offboard_goto(takeoff_position, acceptance_radius, goto_timeout);
tester.offboard_goto(setpoint_1, acceptance_radius, goto_timeout);
tester.offboard_goto(setpoint_2, acceptance_radius, goto_timeout);
tester.offboard_goto(setpoint_3, acceptance_radius, goto_timeout);
tester.offboard_goto(takeoff_position, acceptance_radius, goto_timeout);
tester.offboard_land();
tester.wait_until_disarmed(std::chrono::seconds(120));
tester.check_home_within(1.0f);
Expand Down

0 comments on commit 958a66b

Please sign in to comment.