Peter Johnson
ecb072724d
[ntcore] Client::Disconnect(): actually close connection ( #5113 )
v2023.4.1
2023-02-17 23:56:49 -08:00
Peter Johnson
0d462a4561
[glass] NT view: Change string/string array to quoted ( #5111 )
2023-02-17 18:01:54 -08:00
Peter Johnson
ba37986561
[ntcore] NetworkClient::Disconnect: Add null check ( #5112 )
2023-02-17 16:48:34 -08:00
Peter Johnson
25ab9cda92
[glass,ov] Provide menu item to create topic from root ( #5110 )
2023-02-17 16:46:02 -08:00
Peter Johnson
2f6251d4a6
[glass] Set default value when publishing new topic ( #5109 )
2023-02-17 16:45:38 -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
Peter Johnson
9cc14bbb43
[ntcore] Add stress test to dev executable ( #5107 )
2023-02-16 22:49:36 -08:00
Peter Johnson
8068369542
[wpinet] uv: Stop creating handles when closing loop ( #5102 )
...
This prevents EventLoopRunner::Stop() from hanging in the case when
new handles are created after the async walk closes all the handles.
2023-02-16 22:49:14 -08:00
Peter Johnson
805c837a42
[ntcore] Fix use-after-free in server ( #5101 )
...
The client name deduplication didn't properly deduplicate. Instead,
always append the client index to guarantee a unique name.
2023-02-16 22:45:50 -08:00
bovlb
fd18577ba0
[commands] Improve documentation of addRequirements (NFC) ( #5103 )
2023-02-16 22:08:46 -08:00
Tyler Veness
74dea9f05e
[wpimath] Fix exception for empty pose buffer in pose estimators ( #5106 )
...
Fixes #5100 .
2023-02-16 22:00:21 -08:00
sciencewhiz
9eef79d638
[wpilib] PneumaticHub: Document range of enableCompressorAnalog (NFC) ( #5099 )
2023-02-15 20:25:12 -08:00
Peter Johnson
843574a810
[ntcore] Use wpi::Now instead of loop time for transmit time
...
As the send function is called after local processing, there can be a
substantial delay between the loop time and the actual send.
2023-02-13 23:00:03 -08:00
Peter Johnson
226ef35212
[wpinet] WebSocket: Reduce server send frame overhead
...
Avoid allocating 4K buffer to send a 10-byte header per frame.
2023-02-13 23:00:03 -08:00
Peter Johnson
b30664d630
[ntcore] Reduce initial connection overhead
...
Mixing the announce and value messages causes significant downstream
inefficiency in both time and space.
2023-02-13 23:00:03 -08:00
sciencewhiz
804e5ce236
[examples] MecanumDrive: Fix axis comment in C++ example (NFC) ( #5096 )
2023-02-13 22:18:23 -08:00
Starlight220
49af88f2bb
[examples] ArmSimulation: Fix flaky test ( #5093 )
2023-02-13 12:59:27 -08:00
Peter Johnson
d56314f866
[wpiutil] Disable mock time on the Rio ( #5092 )
2023-02-12 22:38:34 -08:00
Starlight220
43975ac7cc
[examples] ArmSimulation, ElevatorSimulation: Extract mechanism to class ( #5052 )
2023-02-12 06:50:57 -08:00
Starlight220
5483464158
[examples, templates] Improve descriptions (NFC) ( #5051 )
2023-02-12 06:49:20 -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
Peter Johnson
e57ded8c39
[ntcore] Improve disconnect error reporting ( #5085 )
...
Also fix memory leak in WebSocketConnection destructor.
2023-02-11 22:56:29 -08:00
Peter Johnson
01f0394419
[wpinet] Revert WebSocket: When Close() is called, call closed immediately ( #5084 )
...
This caused crashes in ntcore.
This reverts commit b879a6f8c6 (#5047 ).
2023-02-11 22:56:01 -08:00
Jordan McMichael
59be120982
[wpimath] Fix Pose3d exp()/log() and add rotation vector constructor to Rotation3d ( #5072 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-02-08 21:31:03 -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
Tyler Veness
2f310a748c
[wpimath] Fix DCMotor.getSpeed() ( #5061 )
...
This bug didn't occur in C++ because the units system caught it at
compile time.
v2023.3.2
2023-02-05 13:21:16 -08:00
Nick Hadley
b43ec87f57
[wpilib] ElevatorSim: Fix WouldHitLimit methods ( #5057 )
2023-02-05 11:58:53 -08:00
Peter Johnson
19267bef0c
[ntcore] Output warning on property set on unpublished topic ( #5059 )
...
Previously this was a debug-level message. This can primarily impact
users who call SetPersistent() on an entry before calling SetDefault().
2023-02-05 11:57:29 -08:00
Peter Johnson
84cbd48d84
[ntcore] Handle excludeSelf on SetDefault ( #5058 )
2023-02-05 11:57:09 -08:00
Peter Johnson
1f35750865
[cameraserver] Add GetInstance() to all functions ( #5054 )
...
GetInstance() is required to start the event listener that creates the
network table entries.
This is a C++ only change; Java uses static's and thus doesn't need this.
The right fix is to implement cscore's AddListener() immediate notification,
but that's much too invasive of a change to do this year.
This fixes the common use cases, but doesn't fix all cases, as e.g. creating
a UsbCamera manually before calling any CameraServer functions will still
have the issue, but there's an easy workaround--call
CameraServer::SetSize() prior to creating any cameras.
2023-02-05 11:28: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
Peter Johnson
b879a6f8c6
[wpinet] WebSocket: When Close() is called, call closed immediately ( #5047 )
...
This provides the closed callback with the real reason for the
connection being closed. Keep closed from being called twice by adding
a check in SetClosed().
v2023.3.1
2023-02-03 22:59:19 -08:00
Peter Johnson
49459d3e45
[ntcore] Change wire timeout to fixed 1 second ( #5048 )
...
Previously the timeout was 10 times the update rate, so with low update
rates it could be as small as 50 ms, causing spurious disconnects when
large or many topics were published.
2023-02-03 22:05:41 -08:00
Jordan McMichael
4079eabe9b
[wpimath] Discard stale pose estimates ( #5045 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-02-03 22:04:30 -08:00
Peter Johnson
fe5d226a19
[glass] Fix option for debug-level NT logging ( #5049 )
2023-02-03 22:03:45 -08:00
Peter Johnson
b7535252c2
[ntcore] Don't leak buffers in rare WS shutdown case ( #5046 )
...
If the request called the callback after the WebSocket had been
destroyed, the buffers were leaked.
2023-02-03 21:56:35 -08:00
Peter Johnson
b61ac6db33
[ntcore] Add client disconnect function ( #5022 )
...
As setServer doesn't disconnect, it's useful to have a function that
disconnects without needing to completely stop the client.
2023-02-03 15:28:00 -08:00
Ryan Blue
7b828ce84f
[wpimath] Add nearest to Pose2d and Translation2d ( #4882 )
...
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com >
2023-02-03 15:27:16 -08:00
Michael Leong
08a536291b
[examples] Improvements to Elevator Simulation Example ( #4937 )
...
Co-authored-by: Abhay Shukla <105139789+aboombadev@users.noreply.github.com >
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
Co-authored-by: Ryan Blue <ryanzblue@gmail.com >
2023-02-03 15:23:06 -08:00
Peter Johnson
193a10d020
[wpigui] Limit frame rate to 120 fps by default ( #5030 )
...
Limiting with vsync is apparently unreliable on a number of systems;
this resulted in high CPU/GPU usage.
Also add current actual frame rate to about dialog of GUI tools.
2023-02-03 15:21:52 -08:00
sciencewhiz
7867bbde0e
[wpilib] Clarify DS functions provided by FMS (NFC) ( #5043 )
2023-02-03 15:21:12 -08:00
Peter Johnson
fa7c01b598
[glass] Add option for debug-level NT logging ( #5007 )
2023-02-03 15:20:03 -08:00
truher
2b81610248
[wpiutil] Add msgpack to datalog Python example ( #5032 )
2023-02-03 15:19:44 -08:00
Tyler Veness
a4a369b8da
CONTRIBUTING.md: Add unicodeit CLI to math docs guidelines ( #5031 )
2023-02-03 15:19:01 -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
Peter Johnson
a27a047ae8
[hal] Check for null in getSimDeviceName JNI ( #5038 )
2023-02-01 23:25:55 -08:00
Starlight220
2f96cae31a
[examples] Hatchbots: Add telemetry ( #5011 )
2023-01-31 23:44:18 -08:00
Peter Johnson
83ef8f9658
[simulation] GUI: Fix buffer overflow in joystick axes copy ( #5036 )
...
This was using an incorrect sizeof which would copy excessive data and
overwrite the button data.
2023-01-31 23:40:22 -08:00
Starlight220
4054893669
[commands] Fix C++ Select() factory ( #5024 )
...
Update example to use it.
2023-01-29 07:23:12 -08:00