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

Gain scheduling #335

Merged
merged 5 commits into from
Dec 7, 2012
Merged

Conversation

EwoudSmeur
Copy link
Member

I implemented gain scheduling as a non-obtrusive module. It can be completely disabled by not loading the module. I included an example of how to specify multiple gain sets in airframes/esden/gain_scheduling_example.xml. I made it configurable, so the user can specify on which variable to schedule and any number of gain sets is supported.

The module runs at 20 Hz, which should be high enough for all applications.

With this module enabled, in air tuning is not possible any more, because the module will immediately overwrite the set gains. This should be changed in the future so that you edit the gains in the gainlibrary instead of the the active gains.

@gautierhattenberger
Copy link
Member

I don't think it is necessary (and desirable) to add a new type of node in the airframe definition and parser since it is only producing defines. Using the existing "section" and "define" nodes is enough.

@EwoudSmeur
Copy link
Member Author

Good point, I took it out. However, if anyone would like features such as checking of every gain type has the same number of gains, I think you would need such a node.

<section name="STABILIZATION_ATTITUDE" prefix="STABILIZATION_ATTITUDE_">

<!-- setpoints -->
<define name="SP_MAX_PHI" value="RadOfDeg(45.)"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use value="45" unit="deg" instead of RadOfDeg

gautierhattenberger added a commit that referenced this pull request Dec 7, 2012
@gautierhattenberger gautierhattenberger merged commit 60475a2 into paparazzi:master Dec 7, 2012
@EwoudSmeur EwoudSmeur deleted the gain_scheduling branch August 10, 2014 18:28
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.

None yet

3 participants