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
Eli Barnett
a2e4d0b15d
[docs] Fix docs for SysID routine ( #6164 )
2024-01-05 22:05:09 -08:00
Tyler Veness
f94e3d81b9
[docs] Fix SysId routine JavaDoc warnings ( #6159 )
2024-01-05 16:03:52 -08:00
Tyler Veness
6bed82a18e
[wpilibc] Clean up C++ SysId routine ( #6160 )
2024-01-05 15:22:52 -08:00
Eli Barnett
707cb06105
[wpilib] Add SysIdRoutine logging utility and command factory ( #6033 )
...
Co-authored-by: Drew Williams <williams.r.drew@gmail.com >
Co-authored-by: Peter Johnson <johnson.peter@gmail.com >
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2024-01-05 11:50:23 -08:00
Tyler Veness
f29a7d2e50
[docs] Add missing JavaDocs ( #6146 )
2024-01-04 08:38:06 -08:00
Tyler Veness
ad0859a8c9
[docs] Add missing JavaDocs ( #6125 )
2024-01-01 22:56:23 -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
Ryan Blue
ef1cb3f41e
[commands] Fix compose-while-scheduled issue and test all compositions ( #5581 )
2023-12-23 12:12:13 -08:00
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
Starlight220
a770110438
[commands] CommandCompositionError: Include stacktrace of original composition ( #5984 )
2023-12-09 09:45:02 -08:00
Starlight220
5172ab8fd0
[commands] C++ CommandPtr: Prevent null initialization ( #5991 )
2023-12-02 16:45:04 -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
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
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
Ryan Blue
fef03a3ff5
[commands] Clean up C++ includes after Requirements was added ( #5719 )
2023-10-04 22:09:28 -07:00
Ryan Blue
9fe258427a
[commands] Add proxy factory to Commands ( #5603 )
2023-09-17 20:49:02 -07:00
Joseph Eng
633c5a8a22
[commands] Add C++ Requirements struct ( #5504 )
2023-09-17 20:48:39 -07:00
Joseph Eng
b265a68eea
[commands] Add interruptor parameter to onCommandInterrupt callbacks ( #5461 )
2023-09-17 20:47:37 -07:00
Tyler Veness
4bac4dd0f4
[wpimath] Move PIDController from frc2 to frc namespace ( #5640 )
...
The old PIDController class in the frc namespace was removed for the
2023 season.
2023-09-15 19:57:31 -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
Ryan Blue
39a73b5b58
[commands] C++: Add CommandPtr supplier constructor to ProxyCommand ( #5572 )
...
Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com >
2023-08-29 13:23:00 -07:00
Ryan Blue
36d514eae7
[commands] Refactor C++ ScheduleCommand to use SmallSet ( #5568 )
...
Remove SetUtilities.h
2023-08-29 13:16:15 -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
Tyler Veness
1af224c21b
Add missing <functional> includes ( #5459 )
2023-07-18 21:18:32 -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
Tyler Veness
5d3a133f9f
Remove spaces in NOLINT comments ( #5407 )
...
clang-tidy ignores the category filter if there's a space. wpiformat now
ignores categories it doesn't understand, so we can remove the spaces.
2023-06-20 20:29:23 -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