diff --git a/examples/gimbal_device_tester/gimbal_device_tester.cpp b/examples/gimbal_device_tester/gimbal_device_tester.cpp index 62fff8eb2a..4e44874d31 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"; @@ -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;