[snippets] Add ProfiledPIDController with feedforward snippets (#8280)

Adds snippets demonstrating ProfiledPIDController usage with
SimpleMotorFeedforward using the two-parameter calculate() method
(currentVelocity, nextVelocity).

These snippets will be used in frc-docs to document the recommended
feedforward pattern with ProfiledPIDController.

Co-authored-by: sciencewhiz <sciencewhiz@users.noreply.github.com>
This commit is contained in:
Jason Daming
2025-10-27 19:49:16 -07:00
committed by GitHub
parent 873e960e93
commit a6a4912a80
5 changed files with 151 additions and 0 deletions

View File

@@ -154,5 +154,15 @@
],
"foldername": "AccelerometerFilter",
"gradlebase": "cpp"
},
{
"name": "ProfiledPIDFeedforward",
"description": "Snippets of ProfiledPIDController with feedforward for frc-docs.",
"tags": [
"PID",
"Profiled PID"
],
"foldername": "ProfiledPIDFeedforward",
"gradlebase": "cpp"
}
]