forked from Archive/PX4-Autopilot
Fix fly_forward_in_posctl() timing
This commit is contained in:
parent
1ec0ba4736
commit
9b122adae4
|
@ -438,6 +438,9 @@ void AutopilotTester::fly_forward_in_posctl()
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECK(_manual_control->start_position_control() == ManualControl::Result::Success);
|
CHECK(_manual_control->start_position_control() == ManualControl::Result::Success);
|
||||||
|
store_home();
|
||||||
|
wait_until_ready();
|
||||||
|
arm();
|
||||||
|
|
||||||
// Climb up for 20 seconds
|
// Climb up for 20 seconds
|
||||||
for (unsigned i = 0; i < 20 * manual_control_rate_hz; ++i) {
|
for (unsigned i = 0; i < 20 * manual_control_rate_hz; ++i) {
|
||||||
|
|
|
@ -38,9 +38,6 @@ TEST_CASE("Fly forward in position control", "[multicopter][vtol]")
|
||||||
{
|
{
|
||||||
AutopilotTester tester;
|
AutopilotTester tester;
|
||||||
tester.connect(connection_url);
|
tester.connect(connection_url);
|
||||||
tester.wait_until_ready();
|
|
||||||
tester.store_home();
|
|
||||||
tester.arm();
|
|
||||||
tester.fly_forward_in_posctl();
|
tester.fly_forward_in_posctl();
|
||||||
std::chrono::seconds until_disarmed_timeout = std::chrono::seconds(180);
|
std::chrono::seconds until_disarmed_timeout = std::chrono::seconds(180);
|
||||||
tester.wait_until_disarmed(until_disarmed_timeout);
|
tester.wait_until_disarmed(until_disarmed_timeout);
|
||||||
|
|
Loading…
Reference in New Issue