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

Increase the range of available min & max angle. #90

Open
wants to merge 2 commits into
base: lunar-devel
Choose a base branch
from

Conversation

0RayZhang0
Copy link

Thank you for this very convenient and helpful plugin. However, there is a problem of data loss when the output.max and output.min are out of the range -π to π because the result of function std::atan2 is between -π to π. I have made some simple modifications to make it suitable for any desired angle.

This code has been tested under the PX4 Collision Prevention module where (0,2π) is needed.

@0RayZhang0 0RayZhang0 closed this Apr 18, 2024
@0RayZhang0 0RayZhang0 reopened this Apr 18, 2024
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