bovlb
ef3714223b
[commands] Remove docs reference to obsolete interrupted() method (NFC) ( #4262 )
2022-05-24 09:19:38 -07:00
Tyler Veness
99343d40ba
[command] Remove old command-based framework ( #4211 )
2022-05-04 22:02:53 -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
ohowe
b3aee28388
[commands] Allow BooleanSupplier for Trigger operations ( #4103 )
2022-04-24 07:20:46 -07:00
ohowe
f27a1f9bfb
[commands] Fix JoystickButton.getAsBoolean ( #4131 )
...
This previously always returned false; the get method it inherited was not used in the getAsBoolean defined in the Trigger class. The fix is to swap get() and getAsBoolean() implementations in the Trigger class.
2022-04-08 21:20:23 -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
Jonah Snider
4d96bc72e0
[wpilibj] Fix typos in error messages for non-null assertions ( #4014 )
2022-02-11 18:11:15 -08: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
Tyler Veness
3b76de83eb
[commands] Fix ProfiledPIDCommand use-after-free ( #3904 )
...
Fixes #3903 .
2022-01-14 23:56:48 -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
Oblarg
b8d019cdb4
[wpilib] Rename NormalizeWheelSpeeds to DesaturateWheelSpeeds ( #3791 )
2021-12-30 18:30:08 -08:00
Oblarg
eee29daaf9
[newCommands] Trigger: Allow override of debounce type ( #3845 )
...
Previously Trigger could only be debounced on rising edges.
This change preserves the default behavior but adds the capability to override it.
2021-12-29 16:10:43 -08:00
Oblarg
aa9dfabde2
[wpimath] Move debouncer to filters ( #3838 )
2021-12-28 09:49:41 -08:00
Starlight220
b5fd29774f
[wpilibj] Trigger: implement BooleanSupplier interface ( #3811 )
2021-12-21 11:33:16 -08:00
sciencewhiz
9f8f330e96
[wpilib] Fix Mecanum and SwerveControllerCommand when desired rotation passed ( #3808 )
2021-12-19 20:08:28 -08:00
sciencewhiz
d41d051f1b
[wpilibc] Fix Mecanum & Swerve ControllerCommand lambda capture ( #3795 )
...
Fixes #3765
Also fixes SwerveControllerCommand example calling command twice.
2021-12-18 11:30:57 -08:00
Tyler Veness
7269a170fb
Upgrade maven deps to latest versions and fix new linter errors ( #3772 )
...
This also makes the Gradle build work with JDK 17.
The extra JVM args in gradle.properties works around a bug with spotless
and JDK 17: https://github.com/diffplug/spotless/issues/834
PMD.CloseResource was ignored because it's almost always a false
positive, and there are many of them.
2021-12-09 12:20:08 -08:00
Tyler Veness
181723e573
Replace .to<double>() and .template to<double>() with .value() ( #3667 )
...
It's a less verbose way to do the same thing.
2021-10-25 08:58:12 -07:00
sciencewhiz
6bc1db44bc
[commands] Add pointer overload of AddRequirements (artf6003) ( #3669 )
...
Also update documentation in CommandBase.
2021-10-25 08:57:22 -07: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
Tyler Veness
1ca383b23b
Add Debouncer ( #3590 )
...
Supersedes #2358 with updates and cleanups.
Closes #2482 and closes #2487 because we shouldn't support both
time-based and count-based debouncing approaches.
Co-authored-by: oblarg <emichaelbarnett@gmail.com >
2021-09-19 19:58:16 -07:00
Tyler Veness
9d68d95825
Remove extra newlines after open curly braces (NFC) ( #3471 )
2021-07-08 23:41:30 -05:00
Tyler Veness
7aae2b72dc
Replace std::to_string() with fmt::format() ( #3451 )
2021-06-19 09:30:01 -07:00
Noam Zaks
791770cf6e
[wpimath] Move controller from wpilibj to wpimath ( #3439 )
2021-06-16 07:45:51 -07:00
Peter Johnson
362066a9b7
[wpilib] Deprecate getInstance() in favor of static functions ( #3440 )
...
Co-authored-by: Noam Zaks <imnoamzaks@gmail.com >
2021-06-15 23:06:03 -07:00
Peter Johnson
85144e47ff
[commands] Unbreak build ( #3438 )
2021-06-14 07:35:21 -07:00
Peter Johnson
b417d961ec
Split Sendable into NT and non-NT portions ( #3432 )
...
The non-NT portion has been moved to wpiutil.
The NT portion has been moved to ntcore (as NTSendable).
SendableBuilder similarly split and moved.
SendableRegistry moved to wpiutil.
In C++, SendableHelper also moved to wpiutil.
This enables use of Sendable from wpimath and also enables
moving several classes from wpilib to wpimath.
2021-06-13 16:38:05 -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
Tyler Veness
c1e128bd5a
Disable frivolous PMD warnings and enable PMD in ntcore ( #3419 )
...
Some valid warnings like throwing NullPointerException or using a for
loop instead of System.arraycopy() were fixed.
Abstract classes marked with PMD.AbstractClassWithoutAbstractMethod were
made concrete because they already had protected constructors.
Fixes #1697 .
2021-06-09 07:01:00 -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
Peter Johnson
b2c3b2dd8e
Use std::string_view and fmtlib across all libraries ( #3402 )
...
- Twine, StringRef, Format, and NativeFormatting have been removed
- Logging now uses fmtlib style formatting
- Nearly all uses of wpi::outs/errs have been replaced with fmt::print() or
std::puts()/std::fputs() (for unformatted strings).
- A wpi/fmt/raw_ostream.h header has been added to enable
fmt::print() with wpi::raw_ostream
2021-06-06 16:13:58 -07:00
Tyler Veness
e09293a15e
[wpilibc] Transition C++ classes to units::second_t ( #3396 )
...
A lot of these are breaking changes. frc::Timer was replaced with the
contents of frc2::Timer. The others were in-place argument changes or
removing deprecated non-unit overloads.
2021-05-28 22:06:59 -07:00
Peter Johnson
4e2c3051be
[wpilibc] Use std::string_view instead of Twine ( #3380 )
...
Use fmtlib where needed for string formatting into std::string_view.
2021-05-26 17:44:18 -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
831c10bdfc
[wpilibc] Errors: Use fmtlib
2021-05-25 10:04:32 -07:00
Peter Johnson
3fe8fc75aa
[wpilibc] Revert "Return reference from GetInstance" ( #3342 )
...
This reverts commit a79faace1b .
This change will be superseded in a non-breaking way by changing to static functions and deprecating GetInstance() entirely.
2021-05-09 18:16:07 -07:00
Noam Zaks
c8ff626fe2
[wpimath] Move Java classes to edu.wpi.first.math ( #3316 )
2021-05-01 08:53:30 -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
a79faace1b
[wpilibc] Return reference from GetInstance ( #3247 )
...
Improves consistency across all classes.
Affects Preferences, LiveWindow, and CameraServer.
Old commands Scheduler::GetInstance() was not updated as this is already
deprecated.
2021-03-21 11:13:49 -07:00
Peter Johnson
8afa596fdf
[wpilib] Remove deprecated Sendable functions and SendableBase ( #3210 )
2021-03-19 13:41:11 -07:00
Prateek Machiraju
d6f6ceaba5
[build] Run Spotless formatter (NFC) ( #3221 )
...
The original PR (#2934 ) was created before we moved to Spotless so the
formatting check was never run.
2021-03-04 08:24:05 -08:00
Blake Bourque
0922f8af59
[commands] CommandScheduler.requiring(): Note return can be null (NFC) ( #2934 )
2021-03-03 23:56:57 -08:00
Matt Soucy
1a2680b9e5
[wpilibj] Change CommandBase.withName() to return CommandBase ( #3209 )
...
Doing this retains the Sendable portion of the type.
2021-03-03 23:35:37 -08:00
Starlight220
435bbb6a8c
[command] RamseteCommand: Output 0 if interrupted ( #3216 )
2021-02-28 22:06:34 -08:00
Thad House
99b5ad9ebb
[wpilibj] Fix warnings that are not unused variables or deprecation ( #3161 )
...
Fix all warnings given by intellisense that are not unused variables or deprecation.
2021-02-12 22:22:11 -08:00
Prateek Machiraju
749c7adb13
[command] Fix use-after-free in CommandScheduler ( #3024 )
2020-12-31 20:35:17 -08:00
Peter Johnson
b7e46c558f
Include .h from .inc/.inl files (NFC) ( #3017 )
...
This helps both IDEs and linting tools.
Also add some missing braces.
2020-12-31 11:26:53 -08:00
Peter Johnson
a751fa22d2
[build] Apply spotless for java formatting ( #1768 )
...
Update checkstyle config to be compatible with spotless.
Co-authored-by: Austin Shalit <austinshalit@gmail.com >
2020-12-29 22:45:16 -08:00