From 35f6e412971216f1cc76d4612d556433950195ab 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 62fff8eb2a..ffd7265849 100644 --- a/examples/gimbal_device_tester/gimbal_device_tester.cpp +++ b/examples/gimbal_device_tester/gimbal_device_tester.cpp @@ -294,9 +294,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 e7987a7c072661bcb850c13370ea53cab4b9e125 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 ffd7265849..4e44874d31 100644 --- a/examples/gimbal_device_tester/gimbal_device_tester.cpp +++ b/examples/gimbal_device_tester/gimbal_device_tester.cpp @@ -404,7 +404,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;