Ryan Blue
1c00a52b67
[hal] Expose CAN timestamp base clock ( #5357 )
2023-06-07 09:54:03 -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
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
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
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
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
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
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
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
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
Thad House
b632b288a3
Fix usages of std::min and std::max to be windows safe ( #4887 )
2022-12-31 12:00:45 -08:00
Dustin Spicuzza
c11bd2720f
[wpilibc] Add internal function to reset Shuffleboard instance ( #4884 )
...
Needed for RobotPy test framework.
2022-12-31 10:43:48 -08:00
Ryan Blue
2ac41f3edc
[hal, wpilib] Add RobotController.getComments() ( #4463 )
2022-12-26 11:39:51 -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
bf7068ac27
[wpilibc] Add missing PPS implementation for C++ ( #4821 )
2022-12-15 09:28:42 -08:00
Thad House
518916ba02
[wpilib] Fix DS mode thread event being manual reset accidentally ( #4818 )
...
These need to be automatic reset.
2022-12-14 10:17:13 -08:00
Sriman Achanta
c569d8e523
[wpilib] Joystick.getMagnitude(): use hypot() function ( #4816 )
2022-12-13 22:29:09 -08:00
Peter Johnson
a865f48e96
[ntcore] Pass pub/sub options as a unified PubSubOptions struct ( #4794 )
...
In Java, PubSubOption is still used for passing options, but this
simplifies C++ use substantially, as it allows aggregate construction.
2022-12-12 19:28:15 -08:00
Ryan Blue
944dd7265d
[wpilibc] Add C++ Notifier error handling, update java notifier error message ( #4795 )
2022-12-11 22:42:22 -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
Thad House
69a66ec5ec
[wpilib] Fix multiple motor safety issues ( #4784 )
...
Java was missing the motor safety thread entirely
C++ accidentally used a manual reset event, causing the motor safety thread to spin.
C++ PWMMotorController would not feed the watch kitty.
Both languages would call feed() from the StopMotor call, causing some ping ponging.
2022-12-08 19:47:47 -08:00
Peter Johnson
b9772214d9
[wpilib] Sendable: Don't call setter for getter changes
2022-12-07 21:29:51 -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
Ryan Blue
6789869663
[wpilib] Call set(0) rather than disable for stopMotor ( #4763 )
...
For PWM motor controllers, this is going to be the fastest way to stop the motor,
as disabling the PWM output will have a small delay due to the motor controller
needing to detect the missing signal.
Note Set(0) is not a safe approach for CAN motor controllers, which may have closed
loop operation, non-% output set() calls, etc.
2022-12-05 13:33:54 -08:00
Starlight220
1f1461e254
[wpilib] Add method to enable/disable LiveWindow in test mode ( #4678 )
2022-12-01 13:28:06 -08:00
Starlight220
cb38bacfe8
[commands] Revert to original Trigger implementation ( #4673 )
...
Trigger was refactored to use BooleanEvent when it was introduced in #4104 .
This reverts to the original implementation until edge-based BooleanEvents can be fixed.
2022-11-28 13:48:48 -08:00
Starlight220
e4ac09077c
[wpilib] Add link to MotorSafety article ( #4720 )
2022-11-27 16:23:06 -08:00
Peter Johnson
34ec89c041
[wpilibc] Shuffleboard SimpleWidget: Return pointer instead of reference ( #4703 )
...
Based on beta test feedback, returning a pointer is more intuitive, as
typically the return value is late bound to an instance variable.
2022-11-24 09:05:37 -08:00
Peter Johnson
cf8faa9e67
[wpilib] Update values on controllable sendables ( #4667 )
2022-11-18 23:50:41 -08:00
PJ Reiniger
53904e7cf4
[apriltag] Split AprilTag functionality to a separate library ( #4578 )
...
Add AprilTagFieldLayout JSON file and move class to edu.wpi.first.apriltag.
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2022-11-17 14:29:29 -08:00
PJ Reiniger
5be5869b2f
[apriltags] Use map as internal data model ( #4577 )
...
This leaves the file format as a list, but internally will transform the collection of tags into a map on de/serialization. The serialization will probably happen once on startup, but the tag lookup can happen 100s of times a second. This honestly probably doesn't make too much of a performance hit since N is small, but this is a simple O(n) -> O(1) change for lookups.
2022-11-07 10:09:06 -08:00
amquake
2c20fd0d09
[wpilib] SingleJointedArmSim: Check angle equals limit on wouldHit ( #4567 )
2022-11-04 17:14:46 -07:00
Brennen Puth
b2b473b24a
[wpilib] Add AprilTag and AprilTagFieldLayout ( #4421 )
...
This is an API for looking up a Pose3d from a tag id, and includes functionality to load that map from a JSON file.
This also adds JSON support to Pose3d, Rotation3d. Translation3d, and Quaternion.
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
Co-authored-by: AMereBagatelle <themerebagatelle@gmail.com >
2022-11-04 09:56:22 -07:00