Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.4] gimbal device test fixes #2158

Merged
merged 2 commits into from
Nov 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/gimbal_device_tester/gimbal_device_tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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;

Expand Down
Loading