Ryan Blue
eda2fa8a17
[build] Update Spotless ( #4840 )
...
Removes JVM args workaround needed for old version of spotless to run on JDK 17.
2 files had formatting updates.
2022-12-21 08:54:41 -06:00
sciencewhiz
d20594db0d
Fix typos ( #4839 )
2022-12-21 08:53:00 -06:00
Ryan Blue
dd8ecfdd54
[commands] Fix typo in waitUntil docs (NFC) ( #4841 )
2022-12-21 08:24:25 -06:00
Thad House
17ceebfff4
[apriltag] Clean up apriltag JNI ( #4823 )
2022-12-19 21:06:36 -08:00
Ryan Blue
8b74ab389d
[examples] RapidReactCommandBot: Fix array indices ( #4833 )
2022-12-18 16:54:37 -06:00
David Vo
1aad3489c2
[sim] Implement PD total current and power ( #4830 )
2022-12-18 08:00:31 -06:00
Ashray._.g
2744991771
[wpimath] Fix docs in SwerveModulePosition ( #4825 )
...
Changed m/s and speeds to m and distance.
2022-12-16 05:48:20 -08:00
Peter Johnson
ffbf6a1fa2
[commands] Disable regularly failing unit test ( #4824 )
v2023.1.1-beta-7
2022-12-15 21:53:08 -08:00
Starlight220
fbabd0ef15
[commands] Enhance Command Sendable implementations ( #4822 )
2022-12-15 18:28:52 -08:00
Thad House
7713f68772
[hal] Use atomic rather then mutex for DS Data updates ( #4787 )
...
Using an atomic here means we are never going against a lock that is touchable from user code. That should make reading the DS data from the DS callback even safer.
2022-12-15 18:27:52 -08:00
Starlight220
701995d6cc
[examples] Update Command-based starter project ( #4778 )
2022-12-15 09:40:14 -08:00
Thad House
bf7068ac27
[wpilibc] Add missing PPS implementation for C++ ( #4821 )
2022-12-15 09:28:42 -08:00
Peter Johnson
aae0f52ca6
[ntcore] NetworkTable: fix visibility of get/set value ( #4820 )
2022-12-14 19:43:53 -08:00
Thad House
ee02fb7ba7
[hal] Add support for Pulse-Per-Second signal ( #4819 )
2022-12-14 18:15:34 -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
Thad House
3997c6635b
[hal] Update to new image, use new TCP notify callback and new duty cycle API ( #4774 )
2022-12-13 22:37:42 -08:00
Michael Leong
cc8675a4e5
[examples] Add comment on how to view elevator sim (NFC) ( #4482 )
2022-12-13 22:34:00 -08:00
Peter Johnson
fb2c170b6e
[ntcore] Simplify local startup ( #4803 )
...
The current approach was slightly more efficient but didn't correctly
handle meta-topic publishing for topics published before the server was
started.
2022-12-13 22:31:44 -08:00
shueja-personal
7ba8a9ee1f
[wpimath] ProfiledPIDController: Add to SendableRegistry ( #4656 )
...
Co-authored-by: Ryan Blue <ryanzblue@gmail.com >
2022-12-13 22:31:06 -08:00
Sriman Achanta
c569d8e523
[wpilib] Joystick.getMagnitude(): use hypot() function ( #4816 )
2022-12-13 22:29:09 -08:00
bovlb
2a5e89fa97
[apriltag] Improve description of pose coordinates (NFC) ( #4810 )
...
The "bottom-left" language appears to be based on [a 2-D diagram on another page](https://docs.wpilib.org/en/stable/docs/software/advanced-controls/geometry/coordinate-systems.html ) and doesn't seem very helpful here.
2022-12-13 22:27:43 -08:00
Drew Williams
cc003c6c38
[apriltag] Fix AprilTagFieldLayout JSON name ( #4814 )
2022-12-13 22:27:08 -08:00
Sriman Achanta
5522916123
[commands] CommandXBoxController bumper documentation fix (NFC) ( #4815 )
2022-12-13 22:26:35 -08:00
Peter Johnson
967b30de3a
[glass] Fix NT view UpdateClients() bug ( #4808 )
...
If UpdateClients() was called in the same update batch as an entry
removal, it could crash in GetEntry() due to a null entry caused by
deletion before a removal erase pass was made.
2022-12-12 23:38:36 -08:00
Tyler Veness
3270d4fc86
[wpimath] Rewrite pose estimator docs ( #4807 )
2022-12-12 20:30:52 -08:00
Thad House
be39678447
[apriltag] Add test to ensure apriltagjni loads ( #4805 )
2022-12-12 20:30:25 -08:00
Starlight220
61c75deb2a
[commands] Test no-op behavior of scheduling a scheduled command ( #4806 )
2022-12-12 20:29:47 -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
f66a667321
[commands] Fix incorrect Trigger docs (NFC) ( #4792 )
2022-12-12 15:38:29 -08:00
Peter Johnson
f8d4e9866e
[ntcore] Clean up ntcore_test.h ( #4804 )
...
The RPC functions are no longer implemented.
Also make header C-safe.
2022-12-12 15:36:54 -08:00
Tyler Veness
7e84ea891f
[wpimath] Fix ComputerVisionUtil transform example in parameter docs (NFC) ( #4800 )
2022-12-11 22:44:08 -08:00
Charlie
da3ec1be10
[wpimath] Change terminology for ArmFeedforward gravity gain (NFC) ( #4791 )
2022-12-11 22:43:44 -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
6948cea67a
[wpiutil] Fix MemoryBuffer initialization ( #4797 )
...
Dereferencing an end iterator is undefined behavior and causes a failed assertion when running in Windows debug.
2022-12-11 07:39:04 -08:00
Ryan Blue
a31459bce6
[wpiutil] Fix UnescapeCString overflow when inputSize < 2 ( #4796 )
...
Add tests for empty, small, and string without escapes.
2022-12-11 07:36:38 -08:00
ohowe
4a0ad6b48c
[wpimath] Rotation2d: Add reference to angleModulus in docs (NFC) ( #4786 )
2022-12-09 23:35:15 -08:00
Peter Johnson
e6552d272e
[ntcore] Remove table multi-subscriber ( #4789 )
...
This wasn't well thought out, and leaks horribly in Java.
Reverts part of #4640 .
v2023.1.1-beta-6
2022-12-09 21:25:29 -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 )
v2023.1.1-beta-5
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
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
Peter Johnson
0f5b08ec69
[wpigui] Update imgui to 1.89.1+ ( #4780 )
2022-12-08 00:24:27 -08:00
Starlight220
fba191099c
[examples] AddressableLED: Add unit test ( #4779 )
2022-12-07 21:47:47 -08:00
Peter Johnson
b390cad095
[wpilibj] Consistently use ErrorMessages.requireNonNullParam ( #4776 )
...
Also remove wpilibj version of ErrorMessages and consistently use static import.
2022-12-07 21:46:26 -08:00
Peter Johnson
b9772214d9
[wpilib] Sendable: Don't call setter for getter changes
2022-12-07 21:29:51 -08:00
Peter Johnson
342c375a71
[ntcore] Add subscriber option to exclude single publisher
...
This enables limited self-exclusion for entries seeing their own changes
or similarly with a pub/sub pair.
2022-12-07 21:29:51 -08:00
Peter Johnson
b0e4053087
[ntcore] Use int for options instead of double
...
Periodic time is stored in milliseconds.
2022-12-07 21:29:51 -08:00
Peter Johnson
f3e666b7bb
[cscore] Convert YUYV and UYVY directly to grayscale ( #4777 )
...
This is significantly more efficient than converting by way of BGR.
2022-12-07 10:36:40 -08:00
William Toth
b300518bd1
[hal] Add CAN Stream API to Java through JNI bindings ( #4193 )
...
The CAN Stream API allows defining an buffer to receive an
arbitrary set of CAN messages, based on an ID and a mask. Messages
are added to this queue separate of other CAN APIs. This means the
messages can be receive without impacting other APIs such as
vendor APIs.
This enables things like detection of what devices are on the
bus, or custom decoding, without using vendor APIs.
Co-authored-by: Thad House <thadhouse1@gmail.com >
2022-12-06 21:58:09 -08:00
Peter Johnson
be27171236
[wpilibj] Shuffleboard: Check for null sendable ( #4772 )
...
Adding a null sendable to a container could result in a delayed NullPointerException.
2022-12-06 21:14:09 -08:00