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_att_control: reenable TPA for I term #9166

Merged
merged 1 commit into from
Mar 26, 2018
Merged

mc_att_control: reenable TPA for I term #9166

merged 1 commit into from
Mar 26, 2018

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Mar 26, 2018

As a reaction to #9113 (comment) I started into looking why this line https://github.com/PX4/Firmware/blob/500a1c808d0c392bc1836e6bf2f57e418414dae9/src/modules/mc_att_control/mc_att_control_main.cpp#L522 was commented out.

It was:

  • introduced with TPA a2c0391
  • made useless shortly probably because of a rebase error eb67686
  • commented out without further analysis when the compiler started complaining d6e9287

This pr should finally introduce TPA for the I term back...

In commit
eb67686
the TPA scaled integral gain was reverted back to the
normal unscaled gain which rendered the I part of TPA
useless.
@MaEtUgR
Copy link
Member Author

MaEtUgR commented Mar 26, 2018

I don't like TPA anyways because it's a hack and hard to tune. But it's probably a necessary hack if you want to get good high total thrust perfomance from a vehicle with non-linear thrust response which is to be expected if you don't compensate the thrust curve. Still probably noone really uses it...

@dagar
Copy link
Member

dagar commented Mar 26, 2018

@MaEtUgR thanks for digging up the history. It's interesting (at least to me) how these subtle errors get introduced, and what we could have done to catch them in the first place.

In d6e9287 I commented it out because it wasn't actually be used anywhere. At the time I likely assumed it had slipped through never being used and wanted to at least make it obvious.

@MaEtUgR MaEtUgR merged commit 76bf9c6 into master Mar 26, 2018
@MaEtUgR MaEtUgR deleted the pr-reenable-I-TPA branch March 26, 2018 17:00
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.

2 participants