Skip to content

Add flywheel bang-bang controller example#4071

Merged
PeterJohnson merged 12 commits intowpilibsuite:mainfrom
m10653:main
Aug 5, 2023
Merged

Add flywheel bang-bang controller example#4071
PeterJohnson merged 12 commits intowpilibsuite:mainfrom
m10653:main

Conversation

@m10653
Copy link
Contributor

@m10653 m10653 commented Mar 3, 2022

Added a java example on how to use the BangBangController to control a flywheel (#3829). I plan on adding the corresponding C++ example but wanted to get a sanity check as this is my first Pull request to WPIlib.

Few things I was not sure of. If I should show the example using the tolerance constructor or not and how I should go about getting the setpoint for the example. (Right now I am just pulling a basic joystick axis 0)

Thanks!

@m10653 m10653 requested review from a team as code owners March 3, 2022 22:31
@calcmogul
Copy link
Member

A C++ version of the example will be needed as well.

m10653 and others added 2 commits March 4, 2022 22:00
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
@Starlight220 Starlight220 linked an issue May 1, 2022 that may be closed by this pull request
@calcmogul calcmogul requested a review from sciencewhiz August 1, 2023 20:27
@calcmogul calcmogul changed the title Added Java example using BangBangController (#3829) Add flywheel bang-bang controller example Aug 1, 2023
@PeterJohnson PeterJohnson dismissed sciencewhiz’s stale review August 5, 2023 21:14

Comments resolved

@PeterJohnson PeterJohnson merged commit e2c1904 into wpilibsuite:main Aug 5, 2023
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.

Add flywheel bang-bang controller example

4 participants