autopilot_tester: slower descend for fly_forward_in_offboard_attitude

As CI was sometimes failing
This commit is contained in:
Beat Küng 2023-08-08 11:30:12 +02:00 committed by Daniel Agar
parent 1f02d55103
commit 57297234e2
1 changed files with 2 additions and 2 deletions

View File

@ -532,10 +532,10 @@ void AutopilotTester::fly_forward_in_offboard_attitude()
CHECK(fabsf(attitude.pitch_deg - attitude_estimate.pitch_deg) < 5.f); CHECK(fabsf(attitude.pitch_deg - attitude_estimate.pitch_deg) < 5.f);
// Descend // Descend
attitude.thrust_value = 0.2f; attitude.thrust_value = 0.4f;
attitude.pitch_deg = 0.f; attitude.pitch_deg = 0.f;
for (unsigned i = 0; i < 3 * offboard_rate_hz; ++i) { for (unsigned i = 0; i < 6 * offboard_rate_hz; ++i) {
CHECK(_offboard->set_attitude(attitude) == Offboard::Result::Success); CHECK(_offboard->set_attitude(attitude) == Offboard::Result::Success);
sleep_for(std::chrono::milliseconds(1000 / offboard_rate_hz)); sleep_for(std::chrono::milliseconds(1000 / offboard_rate_hz));
} }