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

Report positive value for h480 yawMax and negative value for yawMin #1061

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gillamkid
Copy link

The h480 sim gimbal has no limit on its yaw axis. Before, it was reporting its yawMax as -1e+16 (value came from typhoon_h480.sdf.jinja:247) and its yawMin as 1e+16 (value came from typhoon_h480.sdf.jinja:248). The sign of these 2 needed to be switched, which is the fix made by this commit.

The MAVLink GIMBAL_DEVICE_INFORMATION message does not specify how to represent infinity, but it does specify "positive: to the right, negative: to the left". Gazebo already considers the right the positive direction, and handles commands as expected. This commit just fixes the yawMin/yawMax limit reporting.

The h480 sim gimbal has no limit on its yaw axis. Before, it was reporting its yawMax as -1e+16 (value came from typhoon_h480.sdf.jinja:247) and its yawMin as 1e+16 (value came from typhoon_h480.sdf.jinja:248). The sign of these 2 needed to be switched, which is the fix made by this commit.

The MAVLink GIMBAL_DEVICE_INFORMATION message does not specify how to represent infinity, but it does specify "positive: to the right, negative: to the left". Gazebo already considers the right the positive direction, and handles commands as expected. This commit just fixes the yawMin/yawMax limit reporting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant