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

Rewrite command controller articles to show composition #2684

Merged
merged 5 commits into from
Oct 7, 2024

Conversation

Gold856
Copy link
Contributor

@Gold856 Gold856 commented Aug 1, 2024

Control subsystems are full of footguns and are poor abstractions since they don't save any typing, yet they actively bypass the command mutex system. Control commands are also poor abstractions as they are easy to mess up, yet hide internal details away from the user, making debugging harder. They also don't save any typing.

@Gold856 Gold856 force-pushed the remove-control-subsystems branch 2 times, most recently from 23d3351 to 7cac095 Compare August 1, 2024 04:31
Copy link
Collaborator

@sciencewhiz sciencewhiz left a comment

Choose a reason for hiding this comment

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

Rather then remove, the docs need to be replaced with what the new preferred pattern is.

@Gold856 Gold856 force-pushed the remove-control-subsystems branch 3 times, most recently from c55c89c to be47e1a Compare August 2, 2024 23:52
@sciencewhiz sciencewhiz added this to the 2025 milestone Aug 3, 2024
@Gold856 Gold856 changed the title Remove references to control subsystems Rewrite command controller articles to show composition Aug 17, 2024
### Control Algorithm Commands

There are commands for various control setups:
There are many different ways to implement these controllers in the command framework for various control setups:

- ``PIDCommand`` uses a PID controller. For more info, see :ref:`docs/software/commandbased/pid-subsystems-commands:PIDCommand`.
- ``PIDController`` can be integrated into a ``Subsystem``. For more info, see :ref:`docs/software/commandbased/pid-subsystems-commands:PID Control in Command-based`.

- ``TrapezoidProfileCommand`` tracks a trapezoid motion profile. For more info, see :ref:`docs/software/commandbased/profile-subsystems-commands:TrapezoidProfileCommand`.
- ``TrapezoidProfile`` tracks a trapezoid motion profile. For more info, see :doc:`/docs/software/commandbased/profile-subsystems-commands`.
Copy link
Member

Choose a reason for hiding this comment

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

This section lists controller command classes, and should be removed once all the controller command classes are phased out. In the meantime, an admonition pointing to the other pages might be helpful (but I'm not entirely convinced it's needed); it shouldn't be an item in a list of command classes.

@Gold856 Gold856 force-pushed the remove-control-subsystems branch 2 times, most recently from 326d05f to 62d15a8 Compare August 28, 2024 08:08
@sciencewhiz
Copy link
Collaborator

There's conflicts to resolve

@sciencewhiz sciencewhiz merged commit 171a0ba into wpilibsuite:main Oct 7, 2024
10 checks passed
@Gold856 Gold856 deleted the remove-control-subsystems branch October 7, 2024 00:32
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.

3 participants