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

Implemented GND_W_RMAX param. #12041

Closed
wants to merge 4 commits into from
Closed

Implemented GND_W_RMAX param. #12041

wants to merge 4 commits into from

Conversation

SalimTerryLi
Copy link
Contributor

Please use PX4 Discuss or Slack to align on pull requests if necessary. You can then open draft pull requests to get early feedback.

Describe problem solved by the proposed pull request
My differential rover turns around too quickly so I make use of GND_W_RMAX parameter to limit its steering rate.

Test data / coverage
Tested through gazebo. It worked.

Additional context
This solution creates a limiter on pid output of yaw control. So this parameter ranges from 0 to 1. For normal rovers, this value may be set to 1.0 . For differential ones, a value of 0.5 works fine.

@dagar
Copy link
Member

dagar commented May 18, 2019

Can you check the test failure? Minor code style changes. Try make check_format locally.

Screen Shot 2019-05-18 at 4 54 28 PM

http://ci.px4.io:8080/blue/organizations/jenkins/PX4%2FFirmware/detail/PR-12041/1/pipeline

@SalimTerryLi
Copy link
Contributor Author

Can you check the test failure? Minor code style changes. Try make check_format locally.

Screen Shot 2019-05-18 at 4 54 28 PM

http://ci.px4.io:8080/blue/organizations/jenkins/PX4%2FFirmware/detail/PR-12041/1/pipeline

Done.

@julianoes
Copy link
Contributor

@SalimTerryLi thanks a lot, that's great. If this is ready to be merged you can remove the "draft" and make it a real pull request.

@ItsTimmy would be good if you can review and test this.

@julianoes julianoes removed their assignment May 20, 2019
@SalimTerryLi SalimTerryLi marked this pull request as ready for review May 20, 2019 05:55
@SalimTerryLi
Copy link
Contributor Author

SalimTerryLi commented May 20, 2019

@SalimTerryLi thanks a lot, that's great. If this is ready to be merged you can remove the "draft" and make it a real pull request.

@ItsTimmy would be good if you can review and test this.

But there is another problem. There would be some changes on QGC and document side such as the description and default values of this parameter. If not, nobody can turn it correctly. I don' t know how to make such a change on QGC.
Such as this one.

@julianoes
Copy link
Contributor

I don' t know how to make such a change on QGC.

The way this works is that the param needs to be described correctly here:
https://github.com/PX4/Firmware/blob/b984411770da07f757ebaa2f72c5600386e81892/src/modules/gnd_att_control/gnd_att_control_params.c#L127-L140

It will then appear in QGC after a release.

@SalimTerryLi
Copy link
Contributor Author

I don' t know how to make such a change on QGC.

The way this works is that the param needs to be described correctly here:

https://github.com/PX4/Firmware/blob/b984411770da07f757ebaa2f72c5600386e81892/src/modules/gnd_att_control/gnd_att_control_params.c#L127-L140

It will then appear in QGC after a release.

Thank you. I' ve added it.

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.

4 participants