narmstro2020
ddc8db6c26
[wpimath] Add feedforward constant constructor to ElevatorSim ( #5823 )
...
Adds a subclass of ElevatorSim that uses kG, kV, and kA from sysId to simulate an Elevator.
2023-11-02 09:10:57 -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
sciencewhiz
abe1cec90c
[wpilib] Update Usage Reporting ResourceType from NI Libraries ( #5842 )
...
Disable PS4 controller reporting until added by NI
2023-10-27 20:21:46 -07:00
Ryan Blue
366b715942
[wpilib] Fix SendableChooser test ( #5835 )
...
Using unique NT keys for each test seems to resolve the failure on Linux. Changed Java as well, for completeness.
2023-10-26 20:47:04 -07:00
sciencewhiz
f4cbcbc984
Fix typos (NFC) ( #5804 )
2023-10-23 09:15:58 -07:00
Ryan Blue
abb2857e03
[wpilib] Counter: Fix default distance per pulse, add distance and rate to C++ ( #5796 )
...
- Default distance per pulse in java was 0; 1 is a more reasonable default
- C++ was missing this functionality
2023-10-19 23:42:53 -07:00
Peter Johnson
4ce4d63efc
[wpilibj] Fix RobotBase.isSimulation() ( #5783 )
...
#3534 changed it from returning !isReal() to checking against a numeric value, but #3565 (merged earlier) had changed the value to an enum.
2023-10-18 14:15:35 -07:00
Tyler Veness
3f3a169149
[wpilib] Make physics sim setState() functions public ( #5779 )
2023-10-17 19:52:02 -07:00
Tyler Veness
7501e4ac88
[wpilib] Close sim device in ADIS IMUs ( #5776 )
...
Fixes #5775 .
2023-10-17 19:51:35 -07:00
Gold856
58141d6eb5
[wpilib] Make BooleanEvent more consistent ( #5436 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
Co-authored-by: Joseph Eng <91924258+KangarooKoala@users.noreply.github.com >
2023-10-04 21:22:57 -07:00
Gold856
6576d9b474
[wpilib] SendableChooser: implement Sendable instead of NTSendable ( #5718 )
2023-10-04 21:15:34 -07:00
Starlight220
3eb372c25a
[wpiutil] SendableBuilder: Add PublishConst methods ( #5158 )
2023-10-02 08:23:11 -07:00
Peter Johnson
c92bad52cb
[wpilib] DataLogManager: Use system time valid function ( #5697 )
2023-09-30 09:24:06 -07:00
Peter Johnson
d404af5f24
[wpilib] RobotController: Add isSystemTimeValid() ( #5696 )
...
This returns true when the system date/time (wall clock) is valid.
2023-09-30 09:22:51 -07:00
Ryan Blue
94f58cc536
[wpilib] Remove Compressor.Enabled() ( #5649 )
...
Deprecated in #4147
2023-09-16 22:04:46 -07:00
Tyler Veness
575348b81c
[wpilib] Use IsSimulation() consistently ( #3534 )
2023-09-15 20:05:16 -07:00
Tyler Veness
12e2043b77
[wpilib] Clean up Notifier ( #5630 )
...
The user-facing docs were simplified, SetHandler() was renamed to
SetCallback(), and the internal documentation was synchronized.
2023-09-15 19:59:03 -07:00
Ryan Blue
339ef1ea39
[wpilib] DataLogManager: Warn user if logging to RoboRIO 1 internal storage ( #5617 )
2023-09-11 15:47:31 -07:00
Gold856
298f8a6e33
[wpilib] Add Mechanism2d tests and make Java impl match C++ ( #5527 )
2023-09-10 22:01:33 -07:00
Ryan Blue
ac23f92451
[hal] Add GetTeamNumber ( #5596 )
2023-09-01 23:34:18 -07:00
Ryan Blue
b2dd59450b
[hal] Fix unfinished/incorrect GetCPUTemp functions ( #5598 )
2023-08-31 11:51:57 -07:00
Tyler Veness
89add5d05b
Disable flaky tests ( #5591 )
2023-08-29 17:46:50 -07:00
Tyler Veness
96f7fa662e
Upgrade Maven dependencies ( #5553 )
...
The following source code changes were required:
* Whitespace changes from spotless
* PMD warning suppressions for utility class tests
* PMD warning rename from "BeanMembersShouldSerialize" to
"NonSerializableClass"
* Declared more class members as final
2023-08-18 19:18:33 -07:00
Ryan Blue
a4b7fde767
[wpilib] Add mechanism specific SetState overloads to physics sims ( #5534 )
2023-08-12 15:21:07 -07:00
Ryan Blue
e2d17a24a6
[hal] Expose power rail disable and cpu temp functionality ( #5477 )
2023-08-03 23:48:29 -07:00
Thad House
d83a6edc20
[wpilib] Update GetMatchTime docs and units ( #5232 )
2023-08-03 21:45:26 -07:00
Tyler Veness
6aa469ae45
[wpilib] Document how to create LinearSystem object for physics sim classes (NFC) ( #5488 )
...
Fixes #4372 .
2023-07-31 19:18:17 -07:00
Gold856
99b88be4f3
[wpilib] Reduce usage of NTSendable ( #5434 )
2023-07-23 21:34:49 -07:00
Carl Hauser
c3fab7f1f2
[ntcore] Don't update timestamp when value is unchanged ( #5356 )
...
This fixes an issue with commands run/cancel.
2023-07-23 17:36:26 -07:00
Gold856
5ec7f18bdc
[wpilib] EventLoop docs: Remove BooleanEvent references (NFC) ( #5463 )
2023-07-23 14:22:04 -07:00
Thad House
fc56f8049a
[wpilib] DriverStation: Change alliance station to use optional ( #5229 )
...
Many teams have issues trying to read the DS too early. By switching to an optional, we cause teams to check 2 things. Either 1) they explicitly check, and their code is correct, or 2) they just read .value() and their code reboots in a loop. However, because the DS will eventually connect, this 2nd case is ok, and should theoretically be undetectable on the field.
2023-07-22 15:19:28 -07:00
Gold856
72a4543493
[wpilib] DutyCycleEncoderSim: Expand API ( #5443 )
2023-07-19 17:24:09 -07:00
Gold856
0b91ca6d5a
[wpilib] SendableChooser: Add onChange listener ( #5458 )
2023-07-18 16:33:45 -07:00
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
Thad House
b250a03944
[wpilib] Add function to wait for DS Connection ( #5230 )
2023-07-10 09:53:16 -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
Starlight220
89fc51f0d4
Add tests for SendableChooser and Command Sendable functionality ( #5179 )
2023-06-23 08:18:38 -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
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
sciencewhiz
5c2addda0f
[doc] Add missing pneumatics docs (NFC) ( #5389 )
...
Add missing HAL docs for PCM and PH
Fix references to PCM
Document different one shot durations for PCM and PH
2023-06-15 08:14:35 -07:00
Gold856
9d53231b01
[wpilib] DataLogManager: Add warning for low storage space ( #5364 )
2023-06-08 20:02:21 -07:00
Ryan Blue
1c00a52b67
[hal] Expose CAN timestamp base clock ( #5357 )
2023-06-07 09:54:03 -07:00
Ryan Blue
d3c9316a97
extend shuffleboard test timeout ( #5377 )
2023-06-03 06:47:08 -07:00
sciencewhiz
102e4f2566
[wpilib] Remove deprecated and broken SPI methods ( #5249 )
2023-05-12 21:30:53 -07:00
Ryan Blue
463a90f1df
[wpilib, hal] Add function to read the RSL state ( #5312 )
2023-05-12 21:30:19 -07:00
Ryan Blue
7a90475eec
[wpilib] Update RobotBase documentation (NFC) ( #5320 )
2023-05-12 21:29:39 -07:00
Ryan Blue
218cfea16b
[wpilib] DutyCycleEncoder: Fix reset behavior ( #5287 )
...
reset should set the offset to the properly scaled position provided by getAbsolutePosition, not the raw duty cycle.
2023-05-12 21:28:32 -07:00
sciencewhiz
258b7cc48b
[wpilibj] Filesystem.getDeployDirectory(): Strip JNI path from user.dir ( #5317 )
...
Fixes
https://www.chiefdelphi.com/t/filesystem-getdeploydirectory-returning-wrong-location-how-to-fix/427292
when unit tests are run with VS Code's java test runner due to VS Code
extension setting working directory which changes user.dir.
2023-05-12 21:26:52 -07:00
Ryan Blue
26cc43bee1
[wpilib] Add documentation to SPI mode enum (NFC) ( #5324 )
2023-05-12 21:26:10 -07:00