From 8cba43b82a494e5a0db5d5a107618487233c52e0 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 19 Oct 2023 10:19:02 +1300 Subject: [PATCH 1/2] gimbal_device_tester: fix degree conversion error Signed-off-by: Julian Oes --- examples/gimbal_device_tester/gimbal_device_tester.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gimbal_device_tester/gimbal_device_tester.cpp b/examples/gimbal_device_tester/gimbal_device_tester.cpp index 6ca01fe519..656a68ed38 100644 --- a/examples/gimbal_device_tester/gimbal_device_tester.cpp +++ b/examples/gimbal_device_tester/gimbal_device_tester.cpp @@ -300,9 +300,9 @@ class Tester { const auto gimbal_limits = _attitude_data.gimbal_limits(); const float yaw_min = - (!std::isinf(gimbal_limits.yaw_min_deg) ? degrees(gimbal_limits.yaw_min_deg) : -60.0f); + (!std::isinf(gimbal_limits.yaw_min_deg) ? gimbal_limits.yaw_min_deg : -60.0f); const float yaw_max = - (!std::isinf(gimbal_limits.yaw_max_deg) ? degrees(gimbal_limits.yaw_max_deg) : 60.0f); + (!std::isinf(gimbal_limits.yaw_max_deg) ? gimbal_limits.yaw_max_deg : 60.0f); std::stringstream limit_right; limit_right << "Pan " << yaw_max << " right"; From 597ba602386c9fb30b73ca9029edf43cc40a13bb Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 19 Oct 2023 10:19:41 +1300 Subject: [PATCH 2/2] gimbal_devices_tester: slow test down a bit Signed-off-by: Julian Oes --- examples/gimbal_device_tester/gimbal_device_tester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gimbal_device_tester/gimbal_device_tester.cpp b/examples/gimbal_device_tester/gimbal_device_tester.cpp index 656a68ed38..f5a269e633 100644 --- a/examples/gimbal_device_tester/gimbal_device_tester.cpp +++ b/examples/gimbal_device_tester/gimbal_device_tester.cpp @@ -410,7 +410,7 @@ class Tester { attitude_setpoint.mode = mode; }); - std::this_thread::sleep_for(std::chrono::seconds(2)); + std::this_thread::sleep_for(std::chrono::seconds(5)); const float margin_deg = 5.0f;