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
Tyler Veness
652d1c44e3
[wpiutil] Upgrade to macOS 12 to remove concept shims ( #5379 )
...
The macOS deployment target has been upgraded from 10.15 to 11. Also, a
deprecation warning for sprintf() in libuv was suppressed.
2023-06-08 19:59:54 -07:00
Tyler Veness
59905ea721
Replace WPI_DEPRECATED() macro with [[deprecated]] attribute ( #5373 )
...
Continue to use WPI_DEPRECATED macro for constructors until clang-format is fixed.
2023-06-08 00:01:06 -07:00
Ryan Blue
1c00a52b67
[hal] Expose CAN timestamp base clock ( #5357 )
2023-06-07 09:54:03 -07:00
Tyler Veness
91cbcea841
Replace SFINAE with concepts ( #5361 )
...
Concepts are cleaner to use and result in much better error messages for incorrect template use.
2023-06-07 09:50:09 -07:00
Ryan Blue
d3c9316a97
extend shuffleboard test timeout ( #5377 )
2023-06-03 06:47:08 -07:00
Tyler Veness
5fac18ff4a
Update formatting to clang-format 16 ( #5370 )
2023-05-31 22:10:53 -07:00
Tyler Veness
51066a5a8a
[wpimath] Move unit formatters into units library ( #5358 )
2023-05-26 01:05:27 -07:00
Ryan Blue
282c032b60
[wpilibc] Add unit-aware Joystick.GetDirection() ( #5319 )
2023-05-25 21:43:52 -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
Thad House
91392823ff
[build] Update to gradle 8.1 ( #5303 )
2023-05-12 21:27:31 -07:00
Ryan Blue
26cc43bee1
[wpilib] Add documentation to SPI mode enum (NFC) ( #5324 )
2023-05-12 21:26:10 -07:00
wmgrove
b6c43322a3
[wpilibc] XboxController: Add return tag to docs (NFC) ( #5246 )
2023-04-28 20:55:39 -07:00
Thad House
5162d0001c
[hal] Fix and document addressable LED timings ( #5272 )
...
HAL_SetAddressableLEDBitTiming swapped high and low timings for whatever
was written to it. This fixes that bug.
Additionally, the API has been updated to take high time first, and then
low time. This is due to this being the physical data format, so having
the API match is clearer.
Additionally, update the docs with the defaults.
2023-04-28 20:54:58 -07:00
Starlight220
aa34aacf6e
[wpilib] Shuffleboard: Keep duplicates on SelectTab() ( #5198 )
2023-03-26 20:12:55 -07:00
Tyler Veness
63512bbbb8
[wpimath] Fix potential divide-by-zero in RKDP ( #5242 )
...
If f(x, u) has no dynamics, the truncation error can be zero.
2023-03-26 17:00:09 -07:00
Peter Johnson
56b758320f
[wpilib] DataLogManager: increase time for datetime to be valid ( #5185 )
...
There's no signal from NetComm as to when it is valid, and 1 second
seems to be marginal. Increase to 6 seconds for just DS, 5 seconds for
FMS attached.
2023-03-13 21:27:52 -07:00
Ryan Blue
0d22cf5ff7
[wpilib] Fix enableLiveWindowInTest crashing in disabled ( #5173 )
2023-03-10 19:24:40 -08:00
Ryan Blue
32ec5b3f75
[wpilib] Add isTestEnabled and minor docs cleanup ( #5172 )
2023-03-10 19:23:57 -08:00
sciencewhiz
4af84a1c12
Fix Typos (NFC) ( #5137 )
2023-02-26 15:06:37 -08:00
Noah Andrews
edf4ded412
[wpilib] PH: Revert to 5V rail being fixed 5V ( #5122 )
2023-02-24 19:55:50 -08:00
Gabor Szita
4c46b6aff9
[wpilibc] Fix DataLogManager crash on exit in sim ( #5125 )
2023-02-23 20:13:20 -08:00
David Vo
490ca4a68a
[wpilibc] Fix XboxController::GetBackButton doc (NFC) ( #5131 )
2023-02-23 20:11:10 -08:00
sciencewhiz
dbbfe1aed2
[wpilib] Use PH voltage to calc Analog pressure switch threshold ( #5115 )
...
The calculated trigger voltages were calculated with a hard coded 5v.
This introduces error when the 5V provided to the Analog pressure
sensor is not exactly 5v, as the pressure is a ratio of the analog
voltage and provided voltage.
This should improve
https://www.chiefdelphi.com/t/rev-pressure-sensor-enablecompressoranalog-not-reaching-configured-pressure/426868
where the 5v voltage was 4.92 volts, which introduces ~8 PSI of error.
2023-02-19 23:13:22 -08:00
Ryan Blue
de65a135c3
[wpilib] DutyCycleEncoderSim: Add channel number constructor ( #5118 )
2023-02-19 23:12:48 -08:00
Jonah
e9a7bed988
[wpimath] Add timestamp getter to MathShared ( #5091 )
...
This makes it possible to mock the timestamp for wpimath without affecting the rest of the library.
Co-authored-by: Peter Johnson <johnson.peter@gmail.com >
2023-02-17 14:53:17 -08:00
sciencewhiz
9eef79d638
[wpilib] PneumaticHub: Document range of enableCompressorAnalog (NFC) ( #5099 )
2023-02-15 20:25:12 -08:00
Starlight220
785e7dd85c
[wpilibc] SendableChooser: static_assert copy- and default-constructibility ( #5078 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-02-12 06:24:00 -08:00
Tyler Veness
37f065032f
[wpilib] Refactor TimedRobot tests ( #5068 )
2023-02-07 23:00:46 -08:00
Ryan Blue
22a170bee7
[wpilib] Add Notifier test ( #5070 )
2023-02-07 23:00:17 -08:00
Nick Hadley
b43ec87f57
[wpilib] ElevatorSim: Fix WouldHitLimit methods ( #5057 )
2023-02-05 11:58:53 -08:00
Peter Johnson
8230fc631d
[wpilib] Revert throw on nonexistent SimDevice name in SimDeviceSim ( #5053 )
...
This breaks current vendor use of SimDeviceSim.
This reverts commit d991f6e435 (#5041 ).
2023-02-05 11:27:55 -08:00
sciencewhiz
7867bbde0e
[wpilib] Clarify DS functions provided by FMS (NFC) ( #5043 )
2023-02-03 15:21:12 -08:00
Ryan Blue
d991f6e435
[wpilib] Throw on nonexistent SimDevice name in SimDeviceSim constructor ( #5041 )
...
Previously this would just create a object that was otherwise non-functional.
2023-02-03 15:18:31 -08:00
Sriman Achanta
917906530a
[wpilib] Add Timer::Restart() ( #4963 )
2023-01-23 14:50:46 -08:00
Evan
b95d0e060d
[wpilib] XboxController: Fix docs discrepancy (NFC) ( #4993 )
...
Comments for leftTrigger said they attach to the right trigger of the controller.
2023-01-21 22:09:55 -08:00
Thad House
1ea48caa7d
[wpilib] Fix C++ ADXRS450 and Java SPI gyro defs ( #4988 )
2023-01-20 13:25:13 -08:00
Matt
27ba096ea1
[wpilib] Fix MOI calculation error in SingleJointedArmSim ( #4968 )
...
Previous calculation derivation mixed up length and distance to CG.
2023-01-18 20:40:39 -08:00
Starlight220
a7b1ab683d
[wpilibc] Add unit test for fast deconstruction of GenericHID ( #4953 )
2023-01-16 08:28:06 -08:00
Thad House
5cb0340a8c
[hal, wpilib] Load joystick values upon code initialization ( #4950 )
...
During HAL_Initialize, wait up to 100ms for a DS packet to be received. Then in RobotBase, right after calling HAL_Initialize, call each language's RefreshData function to force a high level DS update. If the DS is connected, will get joystick data. If there is no data, nothing different will happen, but in that case there's no joysticks anyway.
2023-01-15 16:36:44 -08:00
Ryan Blue
dc4355c031
[hal] Add handle constructor and name getters for sim devices ( #4925 )
2023-01-11 11:45:15 -08:00
Ryan Blue
53d8d33bca
[hal, wpilibj] Add missing distance per pulse functions to EncoderSim ( #4928 )
...
Also fix C++ and Java EncoderSim.setDistancePerPulse() not propagating value to SimEncoderData.
2023-01-11 11:43:56 -08:00
Starlight220
2cd9be413f
[wpilib, examples] Cleanup PotentiometerPID, Ultrasonic, UltrasonicPID examples ( #4893 )
...
Fix C++ Ultrasonic to return correct units.
2023-01-08 16:33:07 -08:00
Ryan Blue
83f1860047
[wpilib] Add/update documentation to PneumaticBase and subclasses (NFC) ( #4881 )
...
Co-authored-by: Starlight220 <53231611+Starlight220@users.noreply.github.com >
2023-01-02 10:23:59 -08:00
Tyler Veness
f0fa8205ac
Add missing compiler flags and fix warnings ( #4889 )
...
This makes the build fail on warnings. It caught two out-of-bounds reads
and a deprecation warning.
2023-01-01 08:14:19 -08:00
Thad House
b632b288a3
Fix usages of std::min and std::max to be windows safe ( #4887 )
2022-12-31 12:00:45 -08:00