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
4254438d8d
[commands] Mark command group lifecycle methods as final ( #4385 )
...
This prevents accidental footguns due to overriding of command group lifecycle methods.
2022-08-31 09:15:28 -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
Starlight220
9ac9b69aa2
[command] Reorder Scheduler operations ( #4261 )
...
Fixes several cases where calling scheduler operations from a command callback could result in NPEs or other issues.
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2022-06-15 23:32:16 -07:00
Starlight220
fd884581e4
[wpilib] Add BooleanEvent/Trigger factories on HID classes ( #4247 )
2022-06-13 22:48:16 -07:00
Starlight220
45b7fc445b
[wpilib] Add EventLoop ( #4104 )
...
This is a generic expansion of the command-based Trigger framework.
2022-06-08 22:16:51 -07:00
Tyler Veness
d651a1fcec
Fix internal deprecation warnings ( #4257 )
...
This allows us to error out on deprecation warnings for thirdparty
libraries and standard library features.
Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com >
2022-05-24 13:56:48 -07:00
ohowe
b193b318c1
[commands] Add unless() decorator ( #4244 )
2022-05-24 09:22:19 -07:00
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
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
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
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
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
Noam Zaks
791770cf6e
[wpimath] Move controller from wpilibj to wpimath ( #3439 )
2021-06-16 07:45:51 -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
Noam Zaks
c8ff626fe2
[wpimath] Move Java classes to edu.wpi.first.math ( #3316 )
2021-05-01 08:53:30 -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
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
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
Prateek Machiraju
f7f9087fb5
[command] Fix timing issue in RamseteCommand ( #2871 )
...
This issue only existed on the initial iteration. When timing is paused and stepped,
initialize() and execute() get called with the same timestamp the first time, which
would result in a divide by zero. All subsequent steps advance timing and only
call execute() so the time deltas are all set correctly.
2020-11-21 10:03:01 -08:00
Austin Shalit
6e7c7374fd
[build] Globally Exclude PMD.TooManyMethods ( #2793 )
...
This was not a useful check, as every time we hit it, we simply excluded it.
2020-10-22 20:53:48 -07:00
sciencewhiz
7fc48b75dd
[command] Add PIDSubsystem PIDController as child ( #2784 )
...
Previously, the PIDSubsystem's PID Controller would show as ungrouped in
LiveWindow.
Fixes wpilibsuite/RobotBuilder#260
2020-10-19 20:04:18 -07:00
sciencewhiz
3e41d92c18
[wpilib] Use misspell to fix spelling errors (NFC) ( #2674 )
2020-08-31 00:33:11 -07:00
Prateek Machiraju
aba035eb3d
[command] Modify swerve and mecanum commands to use new controller
2020-08-02 00:03:21 -07:00
Matt
a175f6e862
[command] Add simulationPeriodic method to Subsystem ( #2577 )
...
This method is run periodically during simulation, after periodic().
2020-07-06 23:32:18 -07:00
Tyler Veness
2a0f79b90f
[wpilib] Add X and Y component getters to Pose2d and Transform2d ( #2563 )
...
pose.Translation().X() and pose.Translation.Y() are common operations,
so shortening them to pose.X() and pose.Y() would be convenient.
Java uses the getX() convention so that is used instead of X() for Java.
2020-07-02 18:09:36 -07:00
sciencewhiz
27566abb06
[command] PIDSubsystem: Add GetSetpoint ( #2534 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2020-06-20 16:30:21 -07:00
Starlight220
92380485c8
[command] Make cancel safe to call from initialize ( #2440 )
...
Fixes #2388 .
2020-05-20 21:00:34 -07:00
Austin Shalit
e504b3ecbd
[command] Add NetworkButton ( #2373 )
...
Closes #2371
2020-04-05 23:07:17 -07:00