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

add smith predictor #756

Closed
wants to merge 3 commits into from
Closed

Conversation

Quick-Flash
Copy link
Member

Smith predictors feed inverse delay into a system in order to reduce delay of a system. Here it is used to help remove delay from filtering with a simple time delay model. Seems to work fairly well. The settings are the strength, delay, and filtering. Filtering adds a pt1 filter over the prediction to help reduce noise. Strength decides how much of the prediction we use, AKA a strength of 50 uses half the prediction. Delay decides how many ms/10 of delay the predictor will try to compensate for, AKA a value of 40 tries to account for 4.0 ms of delay.

For logging set the debug mode to smith_predictor. Debug 0 is the input, debug 1 is the output, debug 2 is the gyro sample it is using for the prediction, and debug 3 is the amount that the predictor changes the input.

adds a smith predictor that helps reduce delay from gyro filtering
@Quick-Flash
Copy link
Member Author

TODO add settings to the parameter_names.h file and add this to the blackbox header files.

@nerdCopter
Copy link
Member

  • closing 1.0.0 PR's for re-base.
  • will need git cherry-pick or git diff to re-create mods/PR's

@nerdCopter nerdCopter closed this Mar 23, 2022
@nerdCopter nerdCopter mentioned this pull request Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants