Jade
19c28c2a76
[commands] Make requirements private ( #6769 )
2024-07-12 07:51:21 -06:00
Jade
8ba9a55759
[commands] Remove deprecated C++ method TransferOwnership ( #6780 )
2024-06-29 05:37:29 -07:00
Joseph Eng
5c5e5af0c6
[commands] Add missing C++ decorators ( #6599 )
2024-05-24 13:14:15 -07:00
DeltaDizzy
1e4a647918
[commands] Disambiguate ProxyCommand and DeferredCommand ( #6324 )
2024-04-27 22:41:04 -07:00
Tyler Veness
f29a7d2e50
[docs] Add missing JavaDocs ( #6146 )
2024-01-04 08:38:06 -08:00
Joseph Eng
7aa9ad44b8
[commands] Deprecate C++ TransferOwnership() ( #6095 )
...
It has been completely replaced with ToPtr().
2023-12-26 15:14:34 -06:00
Starlight220
a770110438
[commands] CommandCompositionError: Include stacktrace of original composition ( #5984 )
2023-12-09 09:45:02 -08:00
Ryan Blue
1144115da0
[commands] Add GetName to Subsystem, use in Scheduler tracer epochs ( #5836 )
2023-11-30 23:10:53 -08:00
shueja-personal
8a3a268ae6
[commands] Add finallyDo with zero-arg lambda ( #5862 )
2023-11-03 15:21:21 -07:00
Ryan Blue
fef03a3ff5
[commands] Clean up C++ includes after Requirements was added ( #5719 )
2023-10-04 22:09:28 -07:00
Joseph Eng
633c5a8a22
[commands] Add C++ Requirements struct ( #5504 )
2023-09-17 20:48:39 -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
Joseph Eng
fe32127ea8
[command] Clean up Command doc comments (NFC) ( #5321 )
2023-06-22 19:43:51 -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
5fac18ff4a
Update formatting to clang-format 16 ( #5370 )
2023-05-31 22:10:53 -07:00
Joseph Eng
ee3b4621e5
[commands] Add onlyWhile and onlyIf ( #5291 )
2023-04-30 14:09:02 -07:00
Sriman Achanta
92149efa11
Spelling and grammar cleanups ( #4849 )
2022-12-26 11:32:13 -08:00
Starlight220
fbabd0ef15
[commands] Enhance Command Sendable implementations ( #4822 )
2022-12-15 18:28:52 -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
Starlight220
70080457d5
[commands] Refactor ProxyScheduleCommand, SelectCommand into ProxyCommand ( #4534 )
2022-11-28 14:43:10 -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
0bee875aff
[commands] Change C++ CommandPtr to use CommandBase ( #4677 )
2022-11-21 09:45:50 -08:00
Starlight220
dc037f8d41
[commands] Remove EndlessCommand ( #4483 )
2022-10-20 17:24:54 -07:00
Tyler Veness
fbdc810887
Upgrade to C++20 ( #4239 )
...
* Use explicit this capture required by C++20
* Use C++20 span
* Replace wpi::numbers with std::numbers
* Fix C++20 clang-tidy warning false positive in fmt
* Remove ciso646 include since C++20 removed that header
* Fix global-buffer-overflow asan warnings in ntcore tests
* Add DIOSetProxy constructor to HAL
* Upgrade MSVC compiler to 2022
* Bump native-utils to 2023.2.7 (changes to std=c++20)
Co-authored-by: Peter Johnson <johnson.peter@gmail.com >
2022-10-15 16:33:14 -07:00
Starlight220
89a3d00297
[commands] Add FinallyDo and HandleInterrupt decorators ( #4412 )
2022-10-11 09:53:27 -07:00
Starlight220
60e29627c0
[commands] C++ unique_ptr migration ( #4319 )
...
Add a CommandPtr with an internal unique_ptr to enable not needing to move the underlying classes, which is error-prone due to the potential for lambda captures.
2022-10-05 17:19:28 -05:00
Starlight220
cb33bd71df
[commands] deprecate withInterrupt decorator ( #4407 )
...
until() was recently added as a more intuitive alias for this. At this point, keeping this decorator will just cause confusion, given the functionally-equivalent until() alias and the similarly-named getInterruptionBehavior/withInterruptBehavior
2022-09-11 10:37:55 -07:00
Starlight220
d9b4e7b8bf
[commands] Revert "Change grouping decorator impl to flatten nested group structures ( #3335 )" ( #4402 )
...
This reverts commit ef4ea84cb5 .
2022-09-07 09:04:21 -07:00
Starlight220
c3a93fb995
[commands] Revamp Interruptible ( #4192 )
2022-08-29 21:53:47 -07:00
OmegaMetor
f2a8d38d2a
[commands] Rename Command.repeat to repeatedly ( #4379 )
2022-08-29 15:20:17 -07:00
Starlight220
fe3c24b1ee
[command] Add ignoringDisable decorator ( #4305 )
2022-06-24 10:52:53 -07:00
ohowe
b193b318c1
[commands] Add unless() decorator ( #4244 )
2022-05-24 09:22:19 -07:00
Tyler Veness
ee03a7ad3b
Remove most 2022 deprecations ( #4205 )
...
Excludes "old" commands and SimDevice functions.
2022-05-04 20:37:27 -07:00
Starlight220
f7ca72fb41
[command] Rename PerpetualCommand to EndlessCommand ( #4177 )
2022-04-28 09:38:38 -07:00
Excalibur FRC | 6738
1b26e2d5da
[commands] Add RepeatCommand ( #4009 )
...
Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com >
2022-04-07 22:02:08 -07:00
Oblarg
6a6366b0d6
[commands] Add until() as alias for withInterrupt() ( #3981 )
...
This is a clearer description for the functionality.
Will deprecate withInterrupt next year.
2022-02-03 22:14:52 -08:00
sciencewhiz
8ac45f20bb
[commands] Update Command documentation (NFC) ( #3881 )
...
Add reference to which VendorDep the class is included in.
Add missing OldCommands C++ Documentation (copied from Java).
2022-01-08 11:11:34 -08:00
Tyler Veness
4647d09b50
[docs] Fix Doxygen warnings, add CI docs lint job ( #3639 )
...
The CI docs lint build is configured to fail on Doxygen warnings.
2021-10-14 18:09:38 -07:00
Starlight220
ef4ea84cb5
[commands] Change grouping decorator impl to flatten nested group structures ( #3335 )
2021-06-13 16:05:14 -07:00
Tyler Veness
4d9ff76433
Fix documentation warnings generated by JavaDoc (NFC) ( #3428 )
...
Some C++ Doxygen comments were updated to reflect any wording changes.
See `rg "(@return|@param \w+) TODO" | less` for list of incomplete docs.
2021-06-10 20:46:47 -07:00
Peter Johnson
64f5413253
Use wpi::span instead of wpi::ArrayRef across all libraries ( #3414 )
...
- Remove ArrayRef.h
- Add SpanExtras.h for a couple of convenience functions
2021-06-06 19:51:14 -07:00
Tyler Veness
7e1b27554c
[wpilibc] Use default copies and moves when possible ( #3381 )
...
The removal of ErrorBase allowed the defaults to be used in more places.
2021-05-25 20:54:39 -07:00
Peter Johnson
8d961dfd25
[wpilibc] Remove ErrorBase ( #3306 )
...
Replace with new exception-based error reporting, consistent with Java.
This also builds stacktraces into the reporting/exceptions.
2021-04-18 20:35:29 -07:00
Peter Johnson
d11a3a6380
clang-tidy: modernize-use-override (NFC)
...
Add NOLINT to CommandTestBase due to gmock not adding "override" keyword,
which causes warnings on clang.
2020-12-29 14:26:19 -08:00
Peter Johnson
8f1f64ffb6
Remove year from file copyright message (NFC) ( #2972 )
...
Also update copyright to include "and other WPILib contributors" and clarify
license referral language to not be restricted to FIRST teams.
2020-12-26 14:12:05 -08:00
Tyler Veness
d30d1088da
[wpiutil] Split units.h into separate headers for each unit ( #2551 )
...
Closes #2508 .
Co-authored-by: Prateek Machiraju <prateek.machiraju@gmail.com >
2020-06-29 22:25:09 -07:00
Peter Johnson
32c62449be
Add ArrayRef overloads to new command classes ( #2216 )
...
Also default requirements to {} in all cases for consistency.
2020-01-01 20:09:17 -08:00
Tyler Veness
9a8067465c
Fix incomplete .styleguide ( #2113 )
...
Also clean up other .styleguides.
Fixes #2111 .
2019-11-20 22:44:18 -08:00
Oblarg
00228678d4
Add requirements param to more Command APIs ( #2059 )
...
Assorted improvements to the ergonomics of declaring requirements in the new
command framework. C++ requirements list parameters have been defaulted
to an empty list, some missing C++ requirements list parameters have been
added, and both C++ and Java have been given requirements list params in
various InstantCommand wrapper methods (#2049 ), whose value is
forwarded to the command.
2019-11-08 18:30:30 -08:00