Joseph Eng
316cd2a453
[commands] Notify DriverStationSim in CommandTestBaseWithParam ( #5400 )
2023-06-19 22:56:56 -07:00
Tyler Veness
652d1c44e3
[wpiutil] Upgrade to macOS 12 to remove concept shims ( #5379 )
...
The macOS deployment target has been upgraded from 10.15 to 11. Also, a
deprecation warning for sprintf() in libuv was suppressed.
2023-06-08 19:59:54 -07:00
Tyler Veness
59905ea721
Replace WPI_DEPRECATED() macro with [[deprecated]] attribute ( #5373 )
...
Continue to use WPI_DEPRECATED macro for constructors until clang-format is fixed.
2023-06-08 00:01:06 -07:00
Tyler Veness
91cbcea841
Replace SFINAE with concepts ( #5361 )
...
Concepts are cleaner to use and result in much better error messages for incorrect template use.
2023-06-07 09:50:09 -07:00
Tyler Veness
5fac18ff4a
Update formatting to clang-format 16 ( #5370 )
2023-05-31 22:10:53 -07:00
Tyler Veness
51066a5a8a
[wpimath] Move unit formatters into units library ( #5358 )
2023-05-26 01:05:27 -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
Starlight220
4054893669
[commands] Fix C++ Select() factory ( #5024 )
...
Update example to use it.
2023-01-29 07:23:12 -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
Thad House
fb101925a7
[build] Include wpimathjni in commands binaries ( #4981 )
2023-01-19 22:05:32 -08:00
Starlight220
bd6479dc29
[build] Add Spotless for JSON ( #4956 )
2023-01-16 08:26:46 -08:00
Starlight220
befd12911c
[commands] Delete UB-causing rvalue variants of CommandPtr methods ( #4923 )
...
Co-authored-by: Ryan Blue <ryanzblue@gmail.com >
2023-01-11 22:53:04 -08:00
superpenguin612
34519de60a
[commands] Fix spacing in command composition exception ( #4924 )
2023-01-11 11:46:33 -08:00
Starlight220
0d105ab771
[commands] Deduplicate command test utils ( #4897 )
2023-01-08 07:44:53 -08:00
Dustin Spicuzza
9872e676d8
[commands] Make Subsystem destructor virtual ( #4892 )
...
C++ best practice if there are other functions that are virtual.
2023-01-02 07:59:12 -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
Griffin Della Grotte
1cbebaa2f7
[commands] Remove final semicolon from test macro definition ( #4859 )
2022-12-26 00:14:59 -06: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
Peter Johnson
ffbf6a1fa2
[commands] Disable regularly failing unit test ( #4824 )
2022-12-15 21:53:08 -08: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
Ryan Blue
eab0d929e6
[commands] CommandGenericHID POV methods: Fix docs (NFC) ( #4760 )
2022-12-05 13:46:46 -08:00
sciencewhiz
8f402645f5
[commands] Fix PIDSubsystem setSetpoint behavior ( #4759 )
...
No longer stores a temporary setpoint in PIDSubsystem, instead
immediately sending to PIDController. This fixes an issue where the
setpoint didn't take effect until the Subsystem Periodic method ran, and
could cause commands to finish early if they were scheduled after the
subsystem periodic method ran because it used the old setpoint.
2022-12-03 11:32:46 -08:00
Ryan Blue
21003e34eb
[commands] Update Subsystem factories and example to return CommandBase ( #4729 )
...
Also update rapidreactcommandbot example factories to fit this convention (as in #4655 ).
C++ does not need an update as CommandPtr already uses CommandBase (#4677 ).
2022-11-28 19:47:18 -08:00
Starlight220
70080457d5
[commands] Refactor ProxyScheduleCommand, SelectCommand into ProxyCommand ( #4534 )
2022-11-28 14:43:10 -08:00
Colin Wong
ec124bb662
[commands] Allow unsetting a subsystem's default command ( #4621 )
2022-11-28 14:03:14 -08:00
Starlight220
cb38bacfe8
[commands] Revert to original Trigger implementation ( #4673 )
...
Trigger was refactored to use BooleanEvent when it was introduced in #4104 .
This reverts to the original implementation until edge-based BooleanEvents can be fixed.
2022-11-28 13:48:48 -08:00
Starlight220
15561338d5
[commands] Remove one more default command isFinished check ( #4727 )
2022-11-28 13:44:37 -08:00
Eli Barnett
1a59737f40
[commands] Add convenience factories ( #4460 )
...
Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com >
2022-11-28 07:41:25 -08:00
Starlight220
8958b2a4da
[commands] Add property tests for command compositions ( #4715 )
2022-11-27 16:23:56 -08:00
Starlight220
f40de0c120
[commands] Add C++ factory templates ( #4686 )
2022-11-27 11:27:44 -08:00
Starlight220
58ed112b51
[commands] RepeatCommand: restart on following iteration ( #4706 )
...
This fixes InstantCommand.repeatedly().
2022-11-25 23:50:42 -08:00
Starlight220
52d2c53888
[commands] Rename Java factory wait() to waitSeconds() ( #4684 )
...
This is needed to avoid a conflict with Object.wait() when using static imports.
C++ doesn't have this issue, and has units, so Wait() still makes sense there.
2022-11-22 10:16:27 -08:00
Starlight220
0bee875aff
[commands] Change C++ CommandPtr to use CommandBase ( #4677 )
2022-11-21 09:45:50 -08:00
Starlight220
e6392a1570
[cmd] Change factories return type to CommandBase ( #4655 )
2022-11-17 15:44:16 -08:00