Skip to content

Misc improvements (step_info, param optimization)#50

Merged
bresch merged 18 commits intomasterfrom
pr-step_info_and_find_params
Mar 30, 2026
Merged

Misc improvements (step_info, param optimization)#50
bresch merged 18 commits intomasterfrom
pr-step_info_and_find_params

Conversation

@bresch
Copy link
Copy Markdown
Collaborator

@bresch bresch commented Mar 24, 2026

A couple of misc improvements I've been working on recently:

  • allow negative feedforward gains (this could be useful to have more freedom and reduce overshoot in the step response)
  • select between OLS (ordinary least-squares) and RLS (recursive least-squares)
  • automatically try to optimize model order, delay and filtering params (button "find parameters). This can be slow
  • expose pre-processing filtering parameters
  • show fit quality based on normalized root-mean squared error (NRMSE)
  • show if the identified model is stable. If unstable, suggest stabilization using pole mirroring.
  • show step response rise time, settling time and overshoot. Also allow setting them as requirements and display on graph
Screenshot from 2026-03-24 17-06-58

Copy link
Copy Markdown
Contributor

@mahima-yoga mahima-yoga left a comment

Choose a reason for hiding this comment

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

Did a first pass. Didn't get to test everything yet - the parameter search is cool (as long as the data set is not too long).

Comment thread autotune/autotune.py
Comment thread autotune/autotune.py Outdated
Comment thread autotune/autotune.py Outdated
Comment thread autotune/system_identification.py
Comment thread autotune/autotune.py
Comment thread autotune/autotune.py Outdated
Comment thread autotune/autotune.py Outdated
Copy link
Copy Markdown
Contributor

@mahima-yoga mahima-yoga left a comment

Choose a reason for hiding this comment

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

Super cool

@bresch bresch merged commit f594e92 into master Mar 30, 2026
1 check passed
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.

2 participants