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

Remove goto statments, cleanup/tidying in tunes.cpp/h files. #11194

Merged
merged 1 commit into from
Feb 11, 2019

Conversation

mcsauder
Copy link
Contributor

@mcsauder mcsauder commented Jan 11, 2019

Hi,

This PR removes a constructor overload by adding default values, performs a handful of variable initializations in tunes.h, replaces goto statements with method calls, and does a bit of formatting/housekeeping for readability.

This PR was bench tested on pixracer (fmu-v4) and pixhawk 4 (fmu-v5) hardware.

Let me know if you have any questions on this PR. Thanks!

-Mark

@mcsauder mcsauder force-pushed the tunesWork branch 5 times, most recently from 7c8b3d2 to 8e2f50a Compare January 15, 2019 14:32
@mcsauder mcsauder changed the title Cleanup/tidying in tunes.cpp and tunes.h files. Remove goto statments, cleanup/tidying in tunes.cpp/h files. Jan 15, 2019
@mcsauder mcsauder force-pushed the tunesWork branch 11 times, most recently from 2217077 to de24cff Compare January 23, 2019 01:55
@mcsauder mcsauder force-pushed the tunesWork branch 4 times, most recently from b3b1f29 to 1cb49c3 Compare January 26, 2019 16:40
@mcsauder mcsauder mentioned this pull request Jan 28, 2019
@mcsauder mcsauder force-pushed the tunesWork branch 5 times, most recently from ea6b2d5 to 08acb62 Compare February 4, 2019 04:02
@mcsauder
Copy link
Contributor Author

mcsauder commented Feb 5, 2019

@dagar or @davids5 , would you be willing to look over this for me? Thank you!

-Mark

@dagar
Copy link
Member

dagar commented Feb 5, 2019

This seems fine to me as long as someone has thoroughly tested it.

@davids5
Copy link
Member

davids5 commented Feb 5, 2019

@mcsauder has this been tested on V2?

@mcsauder
Copy link
Contributor Author

mcsauder commented Feb 5, 2019

@davids5 , yes, bench tested on pixhawk V2, pixracer V4, pixhawk 4 V5.

@mcsauder
Copy link
Contributor Author

mcsauder commented Feb 5, 2019

Rebased on current master and re-tested on V2, V4, V5.

@davids5 davids5 requested review from dagar and davids5 February 5, 2019 17:51
davids5
davids5 previously approved these changes Feb 5, 2019
…move a constructor overload by adding default values, and disambiguate a few variables by adding verbosity to naming.
@dagar dagar merged commit 352be14 into PX4:master Feb 11, 2019
@mcsauder
Copy link
Contributor Author

Thanks!

@mcsauder mcsauder deleted the tunesWork branch February 11, 2019 02:44
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.

3 participants