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

MC PositionControl - Explicitly convert tilt to radians #12328

Merged
merged 1 commit into from Jun 27, 2019
Merged

Conversation

bresch
Copy link
Member

@bresch bresch commented Jun 25, 2019

The conversion of the tilt parameters from degrees to radians was done by updating the variables containing the value of the parameters: _param_mpc_man_tilt_max and _param_mpc_tiltmax_air. IMO, those variables should only be changed when the intent is to update a parameter (e.g.: clamp a value) and not for scaling.

follows #12324

…ents instead of converting the variable holding the parameter
@bresch
Copy link
Member Author

bresch commented Jun 27, 2019

@dagar Good to merge now

@dagar
Copy link
Member

dagar commented Jun 27, 2019

Thank you, that's much easier on the eyes.

@dagar dagar merged commit c5deba5 into master Jun 27, 2019
@dagar dagar deleted the pr-tilt-radians branch June 27, 2019 15:38
@dagar
Copy link
Member

dagar commented Jun 27, 2019

Backported for v1.9.2. 220f5cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants