mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 03:53:35 +08:00
mavsdk_tests: reduce rate to avoid queueing of checks
When we run this at 10x (or higher) we end up with too many checks queued up and by the time they execute the drone has slowed down.
This commit is contained in:
@@ -441,7 +441,7 @@ void AutopilotTester::offboard_goto(const Offboard::PositionNedYaw &target, floa
|
||||
void AutopilotTester::check_mission_item_speed_above(int item_index, float min_speed_m_s)
|
||||
{
|
||||
|
||||
_telemetry->set_rate_velocity_ned(10);
|
||||
_telemetry->set_rate_velocity_ned(1);
|
||||
_telemetry->subscribe_velocity_ned([item_index, min_speed_m_s, this](Telemetry::VelocityNed velocity) {
|
||||
float horizontal = std::hypot(velocity.north_m_s, velocity.east_m_s);
|
||||
auto progress = _mission->mission_progress();
|
||||
|
||||
Reference in New Issue
Block a user