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
Starlight220
f4c5c0f5b5
[command] Add withName inline decorator to Java ( #2420 )
...
This is an inline decorator for setting the name of a command
(equivalent to calling setName()).
It's not possible to implement this for C++, as it would slice the derived
class to return it by value.
2020-04-05 16:11:23 -07:00
Daniel Z
6e6f28d1ac
Add watchdog and epoch reporting to CommandScheduler ( #2319 )
2020-03-28 09:29:15 -07:00
Starlight220
d14978e549
New commands: add docs to end() ( #2450 )
...
Added documentation to prevent looping end() by scheduling commands.
2020-03-28 09:18:06 -07:00
Oblarg
f0a18f31e7
Timer: add hasElapsed, advanceIfElapsed ( #2322 )
...
The current hasPeriodPassed() function is confusing. In preparation for deprecating it,
add new advanceIfElapsed() function with same functionality and hasElapsed() function
which only checks that the time period has elapsed and does not advance the timer.
Also fix a couple of incorrect usages of hasPeriodPassed().
2020-02-08 10:23:29 -08:00
Chris Russell
a61fcbd68d
Make Button class concrete ( #2244 )
2020-01-15 18:59:51 -08:00
Thad House
cb66bcca3c
Add callback handlers for LiveWindow ( #2053 )
...
Fixes #2223
2020-01-12 22:37:24 -08:00
Peter Johnson
ab9647ff5b
CommandScheduler: Don't store NetworkTableEntry
2020-01-10 23:42:18 -08:00
Peter Johnson
bf7012fa2d
Fix new CommandScheduler.cancelAll() ( #2251 )
...
When called outside the run loop, it would result in a CME in Java.
2020-01-10 16:10:16 -08:00
Tyler Veness
6190fcb237
Run wpiformat ( #2218 )
2020-01-01 20:04:56 -08:00
Matt
222669dc2c
Fix trapezoidal profile PID controller setpoint bug ( #2210 )
...
Co-Authored-By: Austin Shalit <austinshalit@gmail.com >
2020-01-01 15:23:25 -08:00
Peter Johnson
9abce8eb06
Fix subsystem LiveWindow usage ( #2202 )
2019-12-29 21:28:38 -06:00
Peter Johnson
7b952d599d
Add usage reporting for many new things ( #2184 )
...
- new CommandScheduler
- kinematics and odometry classes
- new PIDController
- ProfiledPIDController
- TrapezoidProfile (reported in Constraints class)
Also update instances.txt to match latest NI version.
One side effect is that a couple of classes are no longer constexpr.
2019-12-25 00:42:14 -06:00
Oblarg
67b59f2b31
Minor improvements/fixes to new command framework ( #2186 )
2019-12-23 01:09:25 -06:00
Prateek Machiraju
57c5523d67
Fix documentation in RamseteCommand ( #2149 )
2019-12-01 21:27:02 -08:00
Oblarg
6dcd2b0e2c
Improve various subsystem APIs ( #2130 )
...
Improves the APIs for various prebuilt subsystems (PIDSubsystem, TrapezoidProfileSubsystem, ProfiledPIDSubsystem). Addresses #2128 , and also changes the rather cumbersome getSetpoint API to a more intuitive setSetpoint one. Updates examples to match.
2019-11-25 21:46:47 -08:00
CTT
a58dbec8aa
Add holonomic follower examples ( #2052 )
2019-11-21 19:52:56 -08:00
Austin Shalit
4ebae17123
Enforce leading/trailing zeros in Java numeric constants ( #2105 )
...
Enforce that integer literals must not have leading zeros and that floating point literals must have leading or trailing zeros in Java.
2019-11-20 20:13:15 -08:00
Oblarg
8c4d9f5415
Add TrapezoidProfileSubsystem ( #2077 )
...
Adds a subsystem that continually runs a TrapezoidProfile, for composition with offboard PID controllers.
2019-11-19 12:38:42 -08:00
Prateek Machiraju
5891628112
Use DifferentialDriveWheelSpeeds in RamseteCommand ctor ( #2091 )
2019-11-18 22:11:05 -08:00
Oblarg
0e83c65d27
Fix small logic error in ParallelDeadlineGroup ( #2095 )
2019-11-18 15:33:45 -08:00
Oblarg
7dc7c71b58
Add feedforward components ( #2045 )
...
Add helper classes for computing feedforwards with parameters supplied by the characterization tool.
2019-11-09 20:16:42 -08:00
Oblarg
5f33d6af12
Fix ProfiledPIDSubsystem parameter name ( #2017 )
...
Change from goal to setpoint (these are two different things).
2019-11-09 09:16:50 -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
Thad House
509819d83f
Split the two command implementations into separate libraries ( #2012 )
...
This will allow us at the user code side to determine to include old commands, new commands or both.
2019-11-01 21:58:54 -07:00