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
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
Tyler Veness
1af224c21b
Add missing <functional> includes ( #5459 )
2023-07-18 21:18:32 -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
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
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
Tyler Veness
5fac18ff4a
Update formatting to clang-format 16 ( #5370 )
2023-05-31 22:10:53 -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
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
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
David Vo
490ca4a68a
[wpilibc] Fix XboxController::GetBackButton doc (NFC) ( #5131 )
2023-02-23 20:11:10 -08:00
Ryan Blue
de65a135c3
[wpilib] DutyCycleEncoderSim: Add channel number constructor ( #5118 )
2023-02-19 23:12:48 -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
sciencewhiz
7867bbde0e
[wpilib] Clarify DS functions provided by FMS (NFC) ( #5043 )
2023-02-03 15:21:12 -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
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
Ryan Blue
dc4355c031
[hal] Add handle constructor and name getters for sim devices ( #4925 )
2023-01-11 11:45:15 -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
Ryan Blue
fe1b62647f
[hal,wpilib] Update documentation for getComments (NFC) ( #4879 )
2022-12-30 04:15:37 -08:00
Ryan Blue
2ac41f3edc
[hal, wpilib] Add RobotController.getComments() ( #4463 )
2022-12-26 11:39:51 -08:00
Sriman Achanta
92149efa11
Spelling and grammar cleanups ( #4849 )
2022-12-26 11:32:13 -08:00
Ryan Blue
176fddeb4c
[commands] Add functions to HID classes to allow use of axes as BooleanEvents/Triggers ( #4762 )
2022-12-26 11:29:14 -08:00
Sriman Achanta
e84dbfede0
[wpilib] GenericHID: Add rumble both option ( #4843 )
2022-12-24 11:28:52 -08:00
sciencewhiz
d20594db0d
Fix typos ( #4839 )
2022-12-21 08:53:00 -06:00
Thad House
ee02fb7ba7
[hal] Add support for Pulse-Per-Second signal ( #4819 )
2022-12-14 18:15:34 -08:00
Ryan Blue
bde383f763
[hal] Replace const char* with std::string_view in Driver Station sim functions ( #4532 )
2022-12-09 13:10:23 -08:00
Ryan Blue
5a52b51443
[hal] Add RobotController.getSerialNumber() ( #4783 )
2022-12-08 21:58:55 -08:00
sciencewhiz
989c9fb29a
[wpimath] Revert Rotation2D change that limits angles ( #4781 )
...
Reverts "[wpimath] Constrain Rotation2d range to -pi to pi (#4611 )"
This reverts commit d1d458db2b .
This broke multiple teams code in beta. It is also easier to limit the angle externally, then reconstruct a larger angle that got limited. This additionally adds comments to clarify the behavior and retains tests that were added in the reverted commit, and fixes a javadoc comment angle reference.
2022-12-08 18:10:44 -08:00
Jordan McMichael
8618dd4160
[glass, wpilib] Replace remaining references to Speed Controller with Motor Controller ( #4769 )
2022-12-05 20:06:43 -08:00
Starlight220
1f1461e254
[wpilib] Add method to enable/disable LiveWindow in test mode ( #4678 )
2022-12-01 13:28:06 -08:00