Skip to content

Commit

Permalink
Merge pull request #2171 from mavlink/pr-gimbal-device-test-fixes-main
Browse files Browse the repository at this point in the history
gimbal device test fixes
  • Loading branch information
julianoes authored Nov 6, 2023
2 parents d4f0ca3 + 597ba60 commit 54f643c
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 @@ -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";
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 54f643c

Please sign in to comment.