Gold856
e0e774abde
[commands, wpimath] Remove Mecanum/SwerveControllerCommand and HolonomicDriveController ( #8119 )
2025-07-31 23:05:42 -07:00
Peter Johnson
7142fb1f5f
Merge branch 'main' into 2027
2025-07-08 19:54:03 -07:00
Gold856
26771e38fb
[commands] Deprecate Command.schedule() ( #7072 )
...
It's only syntactic sugar over the CommandScheduler's schedule method and creates a footgun because it’s too obvious to try to use in incorrect places.
Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com >
2025-07-02 13:46:59 -07:00
Joseph Eng
f55564729b
[hal,wpilib,cmd] Update POVs to use enums ( #7978 )
2025-06-29 18:32:26 -07:00
Peter Johnson
6c16e846fa
Merge branch 'main' into 2027
2025-05-29 21:41:50 -07:00
Eric
17cae787e7
[commands] Mark CommandPtr class as [[nodiscard]] ( #7803 )
...
This has the same effect but makes it so any user code returning CommandPtr can't discard a returned command.
Signed-off-by: Eric Ward <ezeward4@gmail.com >
2025-05-03 20:44:55 -07:00
Gold856
2f0990e9d2
[commands] Remove control commands and subsystems ( #7921 )
2025-04-25 22:06:26 -07:00
Peter Johnson
98f933eca5
Merge branch 'main' into 2027
2025-02-20 00:26:23 -08:00
Joseph Eng
72541c10e6
[wpilib, commands] Improve HID direction documentation (NFC) ( #7672 )
2025-01-19 20:34:07 -08:00
Peter Johnson
d9f8fded09
Merge branch 'main' into 2027
2025-01-16 23:17:59 -08:00
Jade
638d265b33
[commands] Add a warning to schedule docs (NFC) ( #7073 )
...
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
2025-01-09 23:31:40 -08:00
Jade
9ebc4b32ae
[commands] Undeprecate deferredProxy ( #7417 )
...
This changes the way deferred proxy is implemented to not use the
deprecated ProxyCommand constructor.
This function serves a good purpose that should be kept IMO. The
constructor was confusing but this is just good syntactic sugar over
`defer(() -> supplier.get().asProxy())`.
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
2025-01-01 15:11:39 -08:00
Peter Johnson
529bab6ca1
Merge branch 'main' into 2027
2024-12-19 20:40:37 -08:00
Jade
f8720a628c
[commands] Fix proxy command deprecation docs ( #7396 )
...
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com >
2024-12-18 21:57:11 -08:00
Joseph Eng
70f36cce7e
[commands] Extract common trigger binding logic ( #7550 )
...
This makes the logic clearer in the actual binding methods and will hopefully make it less annoying to make changes such as allowing control over initial edges.
Also changes Java to use previous and current to match C++.
2024-12-14 23:13:41 -08:00
Peter Johnson
945d416d07
Merge branch 'main' into 2027
2024-12-14 10:45:32 -08:00
Daniel Chen
68285dae77
[commands] Add withDeadline modifier ( #7299 )
...
Co-authored-by: Ryan Blue <ryanzblue@gmail.com >
2024-12-13 18:30:02 -07:00
Tyler Veness
220f4e1ba4
[wpimath] Remove RamseteController and RamseteCommand ( #7522 )
2024-12-07 23:38:35 -08:00
Ryan Blue
af652817d9
[commands] Revert "WrappedCommand: Call wrapped command initSendable ( #6471 )" ( #7353 )
...
This reverts commit 7bc0380694 .
Calling initSendable on the wrapped command is fundamentally flawed as the wrapper is the command being sent.
2024-11-06 16:10:37 -07:00
Jade
043c155087
Fix a few clangd warnings ( #7335 )
2024-11-05 09:47:54 -07:00
Ryan Blue
5f3cf517d3
[commands] C++: Allow CommandPtrs to be owned by the scheduler ( #7310 )
...
Previously users would have to keep track of dynamically created CommandPtrs. This adds an ownership-taking version of schedule which places the command in a temporary store in the scheduler. The command will be freed when the command's lifecycle ends.
2024-10-31 22:03:12 -07:00
Tyler Veness
fad06ae1e7
Merge .inc files into headers ( #7215 )
2024-10-15 23:42:57 -07:00
Gold856
22a04bf470
[commands] Deprecate control commands and subsystems ( #7143 )
2024-10-11 19:48:47 -07:00
Nicholas Armstrong
968bdf0d06
[commands] Add deadband trigger methods to CommandGenericHID ( #7085 )
...
Co-authored-by: Joseph Eng <91924258+KangarooKoala@users.noreply.github.com >
2024-10-10 22:03:01 -07:00
Jade
a9ce3290b5
Fix Doxygen warnings for C++ code ( #6608 )
2024-08-21 07:55:03 -07:00
Tyler Veness
8e0d9ac805
Clean up unit UDL usage ( #6961 )
2024-08-14 10:44:00 -07:00
Gold856
a2060feadc
[commands] Fix and deprecate TrapezoidProfileCommand ( #6722 )
2024-08-13 21:01:17 -07:00
Jade
19c28c2a76
[commands] Make requirements private ( #6769 )
2024-07-12 07:51:21 -06:00
Jade
f0f4bac680
[commands] Add setRumble and isConnected to CommandGenericHID ( #6768 )
2024-07-05 17:47:31 -07:00
Jade
8ba9a55759
[commands] Remove deprecated C++ method TransferOwnership ( #6780 )
2024-06-29 05:37:29 -07:00
Gold856
65c6306047
[wpilib,commands] Use Jinja to generate HID classes ( #6274 )
2024-06-08 09:59:07 -07:00
Joseph Eng
eb3635e622
[commands] Make CommandGenericHID a public base class of CommandXboxController ( #6658 )
2024-05-25 11:44:41 -07:00
Jade
f1e072fc98
[commands] GenericHIDController: use composition in C++ ( #6296 )
2024-05-24 16:36:05 -07:00
Joseph Eng
5c5e5af0c6
[commands] Add missing C++ decorators ( #6599 )
2024-05-24 13:14:15 -07:00
Kaya
408980462f
[commands] CommandScheduler: Provide function to print watchdog epochs ( #6582 )
2024-05-06 15:53:14 -07:00
Tim Winters
bad56bcbe8
[commands] Add StartRun command factory ( #6572 )
2024-05-03 12:40:13 -07:00
Drew Williams
0afc35f336
[commands] Fix C++ SysIdRoutine crashing when passed nullptr or {} ( #6508 )
...
Flattens parameter from a `std::optional<std::function<...>>` to just a `std::function<...>`. This is a breaking change but a trivial one for teams to fix.
2024-05-01 09:09:15 -07:00
Tyler Veness
5359112b15
[wpimath] Deprecate RamseteController ( #6494 )
...
LTVUnicycleController is a drop-in replacement with better tuning knobs.
The RamseteCommand examples were removed instead of retrofitted with
LTVUnicycleController because we're planning on removing the command
controller classes anyway, so it would be wasted effort. The
SimpleDifferentialDriveSimulation example shows direct
LTVUnicycleController usage.
2024-04-29 22:01:42 -07:00
DeltaDizzy
a9cfd0d0f9
[commands] Deprecate proxy supplier constructor ( #6553 )
2024-04-29 21:11:29 -07:00
Isaac Turner
0f8aa8aedf
[commands] Remove CommandBase ( #6545 )
2024-04-28 12:04:51 -07:00
Isaac Turner
67fe11f9cd
[commands] Rename deadlineWith to deadlineFor ( #6544 )
...
Deprecate deadlineWith for backwards compatibility.
2024-04-28 12:02:29 -07:00
DeltaDizzy
1e4a647918
[commands] Disambiguate ProxyCommand and DeferredCommand ( #6324 )
2024-04-27 22:41:04 -07:00
Isaac Turner
5edc652c05
[commands] Fix multiple C++ warnings ( #6546 )
2024-04-27 21:07:50 -07:00
Isaac Turner
d9eb3691d8
[commands] Remove deprecated TrapzoidProfileCommand api ( #6547 )
2024-04-27 21:07:23 -07:00
Jacob Hotz
dc4c63568a
[commands] Add Trigger.onChange() ( #6390 )
2024-04-21 22:37:15 -07:00
DeltaDizzy
7bc0380694
[commands] WrappedCommand: Call wrapped command initSendable ( #6471 )
2024-04-21 20:30:43 -07:00
Tyler Veness
5370f249a1
[build] Upgrade to wpiformat 2024.33 ( #6449 )
...
This upgrades to clang-format and clang-tidy 18.1.1. This has the
constructor attribute formatting fix, so we can remove our
WPI_DEPRECATED macro.
2024-03-18 23:11:20 -07:00
Ryan Blue
6cc7e52de7
[commands] TrapezoidProfileSubsystem: Fix incorrect ordering of parameters ( #6338 )
2024-02-01 20:24:43 -08:00
Isaac Turner
47652d7a3c
[commands] Remove unused headers ( #6300 )
2024-01-23 21:27:24 -08:00
Asa Paparo
19c1556472
[commands] Fix SysIdRoutine naming ( #6277 )
...
Previously, this used mechanism.m_subsystem.getName(), instead of mechanism.m_name, meaning differently named SysId routines from the same subsystem would clobber each other when logged.
2024-01-20 22:10:19 -08:00