Sriman Achanta
335e7dd89d
[wpilib] Simulation: Add ctor parameter to set starting state of mechanism sims ( #5288 )
...
- Add a constructor parameter to configure the initial angle of the arm
- Also reorganizes cascading constructors for Java
2023-07-18 13:00:27 -07:00
Tyler Veness
14f30752ab
[wpilib] Deprecate Accelerometer and Gyro interfaces ( #5445 )
...
Accelerometer is hyper-specific to ADXL accelerometers, and Gyro is
less useful now that 3D IMUs are prevalent, and if those IMUs want to
support the Gyro interface, they also need to provide a way to set the
axis used for the Gyro interface, which is confusing. Higher-order
functions (e.g., lambdas) are a more flexible interface boundary than
interfaces, but they didn't exist when these interfaces were
created.
2023-07-18 12:52:43 -07:00
Gold856
70b60e3a74
[commands] Trigger: Fix method names in requireNonNullParam ( #5454 )
2023-07-18 08:12:50 -07:00
Joseph Eng
593767c8c7
[wpimath] Improve Euler angle calculations in gimbal lock ( #5437 )
2023-07-17 17:19:42 -07:00
Joseph Eng
daf022d3da
[build] Make devImplementation inherit from implementation ( #5450 )
...
Remove manually adding dependencies to devImplementation.
Fix wpilibNewCommands devMain package.
2023-07-17 17:19:03 -07:00
Jason
9b8d90b852
[examples] Convert the unitless joystick inputs to actual physical units ( #5451 )
...
Taking the joystick inputs from -1 to 1, multiply them by the max speed (as defined in Constants.java) to get the target speed, rather than using the unitless raw joystick inputs.
2023-07-17 17:18:34 -07:00
Gold856
1f6428ab63
[ntcore] Fix undefined comparison behavior when array is empty ( #5448 )
...
If both arrays are empty, it returns true, avoiding UB with memcmp potentially getting a nullptr.
2023-07-17 17:16:54 -07:00
sciencewhiz
17eb9161cd
Update code owners for removal of old commands ( #5447 )
2023-07-14 21:18:38 -07:00
Tyler Veness
3c4b58ae1e
[wpinet] Upgrade to libuv 1.46.0 ( #5446 )
2023-07-14 18:55: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
Peter Johnson
7ac932996a
[ci] Use PAT for workflow dispatch ( #5442 )
2023-07-12 23:53:21 -07:00
Peter Johnson
efe1987e8b
[ci] Trigger pages repo workflow ( #5441 )
2023-07-12 23:29:56 -07:00
Tyler Veness
828bc5276f
[wpiutil] Upgrade to LLVM 16.0.6 ( #5435 )
...
Fixes #5332 .
2023-07-12 22:50:13 -07:00
Peter Johnson
701df9eb87
[ci] Change documentation publish to single-commit ( #5440 )
...
Push to different branches for beta/release/development.
The pages repo workflow will do the combine for publishing.
2023-07-12 22:20:22 -07:00
Thad House
e5452e3f69
[wpiutil] Add WPICleaner and an example how to use it ( #4850 )
2023-07-10 09:59:36 -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
Thad House
b250a03944
[wpilib] Add function to wait for DS Connection ( #5230 )
2023-07-10 09:53:16 -07:00
autoantwort
a6463ed761
[wpiutil] Fix unused variable warning in release build ( #5430 )
2023-07-10 09:48:51 -07:00
Peter Johnson
f031513470
[ntcore] NetworkTable::GetSubTables(): Remove duplicates ( #5076 )
...
In Java, a set is used. Use a two-stage approach in C++ to achieve the
same result.
2023-07-09 21:31:58 -07:00
sciencewhiz
f8e74e2f7c
[hal] Unify PWM simulation Speed, Position, and Raw ( #5277 )
...
Setting one will set the others, like it does in real hardware.
Add tests for boundary conditions and conversions.
Update PWM sendable implementation to include all forms.
Fixes #5264
Fixes #3606
2023-07-09 21:28:50 -07:00
Tyler Veness
fd5699b240
Remove references to Drake ( #5427 )
...
Fixes #5426 .
2023-07-09 21:25:14 -07:00
autoantwort
e2d385d80a
[build] cmake: Respect USE_SYSTEM_FMTLIB ( #5429 )
2023-07-09 21:24:46 -07:00
Ryan Blue
d37f990ce3
[hal] Fix HAL Relay/Main doc module (NFC) ( #5422 )
2023-07-05 21:21:59 -07:00
Ryan Blue
a7a8b874ac
[docs] Expand HAL_ENUM in doxygen docs ( #5421 )
2023-07-05 21:20:21 -07:00
Peter Johnson
3a61deedde
[wpimath] Rotation2d: Only use gcem::hypot when constexpr evaluated ( #5419 )
2023-07-04 12:05:55 -06:00
Peter Johnson
96145de7db
[examples] Fix formatting (NFC) ( #5420 )
2023-07-04 07:14:06 -07:00
Starlight220
fffe6a7b9a
[examples] Improve Pneumatics example coverage in Solenoid and RapidReactCmdBot examples ( #4998 )
2023-07-03 21:23:18 -07:00
Vasista Vovveti
6b5817836d
[wpimath] Add tolerance for some tests ( #5416 )
2023-06-27 14:22:46 -07:00
Vasista Vovveti
3233883f3e
[cscore] Fix warnings on macos arm ( #5415 )
2023-06-27 14:22:19 -07:00
Starlight220
c4fc21838f
[commands] Add ConditionalCommand getInterruptionBehavior ( #5161 )
2023-06-23 08:21:05 -07:00
Starlight220
89fc51f0d4
Add tests for SendableChooser and Command Sendable functionality ( #5179 )
2023-06-23 08:18:38 -07:00
Ryan Blue
663bf25aaf
[docs] Generate docs for symbols in __cplusplus ( #5412 )
2023-06-22 20:58:38 -07:00
Joseph Eng
fe32127ea8
[command] Clean up Command doc comments (NFC) ( #5321 )
2023-06-22 19:43:51 -07:00
Thad House
c1a01569b4
[wpilib][hal] PWM Raw using microseconds ( #5283 )
...
Co-authored-by: Joe <sciencewhiz@users.noreply.github.com >
2023-06-22 19:43:16 -07:00
Ryan Blue
1fca519fb4
[wpiutil] Remove remnants of ghc fs and tcb_span libraries ( #5411 )
2023-06-22 19:42:44 -07:00
sciencewhiz
90602cc135
[github] Update issue template to collect more project info ( #5090 )
2023-06-22 15:26:22 -07:00
sciencewhiz
34412ac57e
[build] Exclude files in bin from Spotless ( #5410 )
...
Was causing failures in fieldImages.
2023-06-22 15:25:01 -07:00
Thad House
61aa60f0e3
[wpilib] Add robot callback that is called when the DS is initially connected ( #5231 )
2023-06-21 14:53:34 -07:00
Ryan Blue
ebae341a91
[commands] Add test for subsystem registration and periodic ( #5408 )
2023-06-20 20:29:59 -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
3a0e484691
[wpimath] Fix clang-tidy warnings ( #5403 )
2023-06-20 11:35:15 -07:00
Tyler Veness
eb3810c765
[wpiutil] Fix clang-tidy warnings ( #5406 )
2023-06-20 10:55:05 -07:00
Zhiquan Yeo
c4dc697192
[hal] WS Simulation: Add message filtering capability ( #5395 )
2023-06-20 08:26:03 -07:00
Tyler Veness
0eccc3f247
[ntcore] Fix clang-tidy warnings ( #5405 )
2023-06-20 08:21:44 -07:00
sciencewhiz
f4dda4bac0
[hal] Add javadocs for JNI (NFC) ( #5298 )
...
Docs are copied from the HAL and add references to the HAL files/methods
to aid discoverability.
2023-06-19 23:36:56 -07:00
Tyler Veness
1c20c69793
[cscore] Fix clang-tidy warnings ( #5404 )
2023-06-19 23:35:13 -07:00
Tyler Veness
1501607e48
[commands] Fix clang-tidy warnings ( #5402 )
2023-06-19 23:01:46 -07:00
Gold856
991f4b0f62
[wpimath] PIDController: Add IZone ( #5315 )
...
Co-authored-by: Ryan Blue <ryanzblue@gmail.com >
2023-06-19 23:01:01 -07:00
Gold856
f5b0d1484b
[wpimath] Add isNear method to MathUtil ( #5353 )
...
This method is used to check if the given value matches an expected value within a certain tolerance.
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
Co-authored-by: Ryan Blue <ryanzblue@gmail.com >
2023-06-19 23:00:07 -07:00
Tyler Veness
2ce248f66c
[hal] Fix clang-tidy warnings ( #5401 )
2023-06-19 22:59:07 -07:00