Skip to content

Commit

Permalink
Merge pull request #2158 from mavlink/v1.4-gimbal-device-test-fixes
Browse files Browse the repository at this point in the history
[v1.4] gimbal device test fixes
  • Loading branch information
julianoes authored Nov 12, 2023
2 parents 492b895 + e7987a7 commit 2b9ca69
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 2b9ca69

Please sign in to comment.