NC GEARS FRC 1918
c1178d5add
[wpilib] Add StadiaController and command wrapper ( #6083 )
2023-12-23 08:15:05 -08:00
Eli Barnett
a004c9e05f
[commands] SubsystemBase: allow setting name in constructor ( #6052 )
2023-12-16 11:05:53 -08:00
Tyler Veness
192a28af47
Fix JDK 21 warnings ( #6028 )
2023-12-09 21:45:02 -08:00
Starlight220
a770110438
[commands] CommandCompositionError: Include stacktrace of original composition ( #5984 )
2023-12-09 09:45:02 -08:00
Tyler Veness
2bb1409b82
Clean up Java style ( #5990 )
...
Also make equivalent changes in C++ where applicable.
Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com >
2023-12-03 16:21:32 -08:00
Ryan Blue
1144115da0
[commands] Add GetName to Subsystem, use in Scheduler tracer epochs ( #5836 )
2023-11-30 23:10:53 -08:00
DeltaDizzy
09f3ed6a5f
[commands] Add static Trigger factories for robot mode changes ( #5902 )
2023-11-14 15:54:43 -08:00
Tyler Veness
201a42a3cd
[wpimath] Reorder TrapezoidProfile.calculate() arguments ( #5874 )
...
ProfiledPIDController and ExponentialProfile use current, then goal.
This isn't a breaking change because this overload of calculate() is
new for 2024.
2023-11-04 16:28:55 -07:00
shueja-personal
8a3a268ae6
[commands] Add finallyDo with zero-arg lambda ( #5862 )
2023-11-03 15:21:21 -07:00
Ryan Blue
a4a8ad9c75
[commands] Make Java SelectCommand generic ( #5849 )
...
This allows users to use any type of map and selector without needing to explicitly match
Map<Object, Command>
2023-10-30 11:09:14 -07:00
David Baucum
9536a311cb
[wpilib] Add support for the PS5 DualSense controller ( #5257 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-10-30 08:25:16 -07:00
Ryan Blue
3ba501f947
[commands] Java: Fix CommandXboxController.leftTrigger() parameter order ( #5831 )
2023-10-26 19:18:36 -07:00
Ryan Blue
c87f8fd538
[commands] Add DeferredCommand ( #5566 )
...
Allows commands to be constructed at runtime without proxying.
2023-10-26 19:16:33 -07:00
Ryan Blue
579007ceb3
[commands] Add requirements parameter to Commands.idle() ( #5774 )
2023-10-17 19:52:48 -07:00
Gold856
ff1849052e
[commands] Make command scheduling order consistent ( #5470 )
2023-10-09 23:52:26 -07:00
Ryan Blue
9fe258427a
[commands] Add proxy factory to Commands ( #5603 )
2023-09-17 20:49:02 -07:00
Joseph Eng
b265a68eea
[commands] Add interruptor parameter to onCommandInterrupt callbacks ( #5461 )
2023-09-17 20:47:37 -07:00
Ryan Blue
3b79cb6ed3
[commands] Revert SubsystemBase deprecation/removal ( #5634 )
2023-09-14 20:56:48 -07:00
Ryan Blue
cf19102c4a
[commands] SelectCommand: Fix leakage and multiple composition bug ( #5571 )
2023-08-30 13:21:17 -07:00
Shai Grossman
52297ffe29
[commands] Add idle command ( #5555 )
2023-08-29 13:00:40 -07:00
Ryan Blue
a0c029a35b
[commands] Fix dangling SelectCommand documentation (NFC) ( #5567 )
2023-08-25 09:41:25 -07:00
Gold856
99b88be4f3
[wpilib] Reduce usage of NTSendable ( #5434 )
2023-07-23 21:34:49 -07:00
Gold856
86e91e6724
[wpimath] Refactor TrapezoidProfile API ( #5457 )
2023-07-19 17:25:10 -07:00
Gold856
70b60e3a74
[commands] Trigger: Fix method names in requireNonNullParam ( #5454 )
2023-07-18 08:12:50 -07:00
Ryan Blue
aaea85ff16
[commands] Merge CommandBase into Command and SubsystemBase into Subsystem ( #5392 )
...
Moves all CommandBase functionality into Command and deprecates CommandBase for removal.
Moves all SubsystemBase functionality into Subsystem and deprecates SubsystemBase for removal.
Adds a function to CommandScheduler to remove all registered Subsystems.
2023-07-13 22:12:01 -07:00
Ryan Blue
7a099cb02a
[commands] Remove deprecated classes and functions ( #5409 )
...
Removes:
- PerpetualCommand
- Command.perpetually()
- CommandGroupBase
- Command.IsGrouped() (C++ only)
- Command.SetGrouped() (C++ only)
- Command.withInterrupt()
- ProxyScheduleCommand
- Button
- InternalButton, JoystickButton, NetworkButton and POVButton now subclass Trigger
- Old style Trigger functions:
- Trigger.whenActive
- Trigger.whileActiveOnce
- Trigger.whileActiveContinuous
- Trigger.whenInactive
- Trigger.toggleWhenActive
- Trigger.cancelWhenActive
- CommandScheduler.clearButtons()
- CommandScheduler.addButtons() (Java only)
- Command supplier constructor of SelectCommand
2023-07-10 09:56:18 -07:00
Starlight220
c4fc21838f
[commands] Add ConditionalCommand getInterruptionBehavior ( #5161 )
2023-06-23 08:21:05 -07:00
Joseph Eng
fe32127ea8
[command] Clean up Command doc comments (NFC) ( #5321 )
2023-06-22 19:43:51 -07:00
Joseph Eng
ee3b4621e5
[commands] Add onlyWhile and onlyIf ( #5291 )
2023-04-30 14:09:02 -07:00
Joseph Eng
40ca094686
[commands] Fix RepeatCommand calling end() twice ( #5261 )
2023-04-28 20:57:33 -07:00
Starlight220
e7a7eb2e93
[commands] WaitCommand: Remove subclass doc note (NFC) ( #5200 )
2023-03-20 13:46:26 -07:00
Peter Johnson
00abb8c1e0
[commands] RamseteCommand: default-initialize m_prevSpeeds ( #5188 )
2023-03-13 23:12:17 -07:00
Jeffrey Morris
6d0c5b19db
[commands] CommandScheduler.isComposed: Remove incorrect throws clause (NFC) ( #5183 )
2023-03-13 21:27:08 -07:00
Colin Wong
4b0eecaee0
[commands] Subsystem: Add default command removal method ( #5064 )
2023-02-24 19:58:53 -08:00
bovlb
fd18577ba0
[commands] Improve documentation of addRequirements (NFC) ( #5103 )
2023-02-16 22:08:46 -08:00
Sriman Achanta
f75acd11ce
[commands] Use Timer.restart() ( #5023 )
2023-01-29 07:21:07 -08:00
DeltaDizzy
92aecab2ef
[commands] Command controllers are not subclasses (NFC) ( #5000 )
2023-01-25 15:20:29 -08:00
Brady Schindler
b2b25bf09f
[commands] Fix docs inconsistency for toggleOnFalse(Command) (NFC) ( #4978 )
2023-01-20 23:47:37 -08:00
superpenguin612
34519de60a
[commands] Fix spacing in command composition exception ( #4924 )
2023-01-11 11:46:33 -08:00
Sriman Achanta
26bdbf3d41
Java optimization and formatting fixes ( #4857 )
2022-12-26 11:37:53 -08:00
Sriman Achanta
92149efa11
Spelling and grammar cleanups ( #4849 )
2022-12-26 11:32:13 -08:00
Ryan Blue
176fddeb4c
[commands] Add functions to HID classes to allow use of axes as BooleanEvents/Triggers ( #4762 )
2022-12-26 11:29:14 -08:00
Ryan Blue
6efb9ee405
[commands] Add constructor for SwerveControllerCommand that takes a HolonomicDriveController ( #4785 )
...
Also adds copy and move constructors to HolonomicDriveController.
2022-12-25 18:48:27 -08:00
Ryan Blue
dd8ecfdd54
[commands] Fix typo in waitUntil docs (NFC) ( #4841 )
2022-12-21 08:24:25 -06:00
Starlight220
fbabd0ef15
[commands] Enhance Command Sendable implementations ( #4822 )
2022-12-15 18:28:52 -08:00
Sriman Achanta
5522916123
[commands] CommandXBoxController bumper documentation fix (NFC) ( #4815 )
2022-12-13 22:26:35 -08:00
Starlight220
61c75deb2a
[commands] Test no-op behavior of scheduling a scheduled command ( #4806 )
2022-12-12 20:29:47 -08:00
Ryan Blue
f66a667321
[commands] Fix incorrect Trigger docs (NFC) ( #4792 )
2022-12-12 15:38:29 -08:00
Peter Johnson
b390cad095
[wpilibj] Consistently use ErrorMessages.requireNonNullParam ( #4776 )
...
Also remove wpilibj version of ErrorMessages and consistently use static import.
2022-12-07 21:46:26 -08:00
Starlight220
4bbdbdfb48
[commands] Move GroupedCommands to CommandScheduler ( #4728 )
...
Move the command group checking functionality from CommandGroupBase into CommandScheduler.
Update references to grouping as composition for clarity (because explicitly grouping isn't the only way to do it).
Deprecate the static factory methods parallel, race, and deadline in CommandGroupBase in favor of the identical ones in Commands.
2022-12-06 21:13:31 -08:00