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 pos control - Dynamically constrain parameters #12404

Merged
merged 4 commits into from
Jul 5, 2019
Merged

Conversation

bresch
Copy link
Member

@bresch bresch commented Jul 3, 2019

I've seen a few times now that some people adjust MPC_XY_VEL_MAX to reduce the speed of the vehicle. The problem is that if MPC_VEL_MANUAL or MPC_XY_CRUISE are larger than the max speed, some problems will appear.

I also did a check for the hover thrust to fix #12338

@bresch bresch requested review from dagar and bkueng July 3, 2019 15:02
@bresch bresch changed the title MC pos control - Constrain cruise and manual velocity parameters MC pos control - Dynamically constrain parameters Jul 3, 2019
@dagar
Copy link
Member

dagar commented Jul 3, 2019

Looks good, one minor thing I'm wondering is if the wording should be changed slightly to imply it has been changed. The concern being that the user sees the message, goes to change the parameter, but is then confused because MPC_XY_CRUISE is already smaller than MPC_XY_VEL_MAX.

@bresch bresch force-pushed the pr-mc-param-check branch from 14485c4 to 1d43974 Compare July 4, 2019 07:50
@bresch
Copy link
Member Author

bresch commented Jul 4, 2019

@dagar You are right, I reworded the message.

@dagar dagar merged commit e54075a into master Jul 5, 2019
@dagar dagar deleted the pr-mc-param-check branch July 5, 2019 19:40
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.

MPC_THR_HOVER gets passed unconstrained to the thrust setpoint in manual mode.
3 participants