Skip to content

Commit

Permalink
integration_tests: add debug for altitude
Browse files Browse the repository at this point in the history
This is to debug the PX4 v1.11 SITL test failing often.
  • Loading branch information
julianoes committed Sep 24, 2020
1 parent 894c297 commit 960bbab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/integration_tests/action_hover_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ void takeoff_and_hover_at_altitude(float altitude_m)
EXPECT_EQ(takeoff_altitude_result.first, Action::Result::Success);
EXPECT_FLOAT_EQ(takeoff_altitude_result.second, altitude_m);

telemetry->subscribe_position([](Telemetry::Position position) {
LogDebug() << "altitude: " << position.relative_altitude_m << " m";
});

Action::Result action_ret = action->arm();
EXPECT_EQ(action_ret, Action::Result::Success);

Expand Down

0 comments on commit 960bbab

Please sign in to comment.