Peter Johnson
9a5366bb83
[wpiutil] WebSocket: Add GetLastReceivedTime
...
This allows getting the timestamp that any data has been received.
2024-01-19 23:45:01 -08:00
Tyler Veness
77c09b9ce2
[docs] Build with JavaDoc 17 and add missing docs ( #6220 )
...
Co-authored-by: Sam Carlberg <sam.carlberg@gmail.com >
2024-01-19 23:42:09 -08:00
Peter Johnson
9ec27c1202
[ntcore] Don't disconnect with 1005 error code ( #6265 )
2024-01-19 23:34:25 -08:00
Peter Johnson
d653408873
[ntcore] Fix large text message splitting ( #6263 )
...
The written amount wasn't being tracked in the common case, so bulk
announcements after a subscribe would result in a very large WebSocket
frame.
2024-01-19 23:15:25 -08:00
Peter Johnson
24a24c9051
[wpinet] WebSocket: Improve disconnect reason reporting ( #6262 )
...
Add "remote close:" to messages coming from the remote end.
Previously it was impossible to tell if the error was on the local side
or communicated by the remote side.
2024-01-19 23:13:38 -08:00
Thad House
0e5eb3f35c
[wpiutil] Fix DynamicStruct string handling ( #6253 )
...
Dynamic structs had a few major issues.
In C++, if the string was the last definition in the schema, attempting to set a string would trigger an assertion. This has been fixed
Setting a string value could truncate the string actually stored in the struct, if the definition was shorter than the string to set.
There was no way to detect if this case occurred. The set string function now returns a bool if the string was fully written or not.
Reading a string that had a value shorter than the schema definition would result in embedded trailing nulls in the string. This would make comparing string equality basically impossible, as those embedded nulls count for the length of the string.
The above truncating didn't take into account UTF8 code points. This means a truncation could happen in the middle of a unicode character. Depending on the language this had different behavior, but unpaired code points are problematic to detect in any case. On the decoding side, detect if a split UTF8 code point has occurred by the writer, and if so just ignore it and treat it as not part of the string. Doing this on the receive side means a newer receive side is all that is needed to fix this, which is generally a better option then requiring all senders to update.
Actual DynamicStruct instances have 0 units tests for them. Added a bunch of unit tests around strings to ensure things work properly.
2024-01-19 22:24:54 -08:00
Tyler Veness
4b15c73f64
[sysid] Rename motion threshold to velocity threshold to match GUI field name ( #6240 )
2024-01-19 22:23:51 -08:00
David Vo
a274e297cd
Fix trivial errorprone warnings (NFC) ( #6135 )
2024-01-19 20:46:38 -08:00
David Vo
d198605562
[wpilibc] SysIdRoutineLog: Fix state log entry name typo ( #6261 )
...
The Java version has a hyphen between test-state and the mechanism name.
2024-01-19 20:42:57 -08:00
Thad House
dfaad7ca22
[ntcore] Add typed C GetEntryValue and ReadQueueValue functions ( #6256 )
2024-01-19 20:38:01 -08:00
Tyler Veness
2df82ec957
[sysid] Document using AdvantageScope for troubleshooting ( #6247 )
2024-01-19 20:37:27 -08:00
Thad House
3661f485af
[wpilibj] Don't automatically pull in cscore for all robot projects ( #6245 )
2024-01-19 20:37:02 -08:00
Thad House
7f9389f101
[wpiutil] DataLog: Remove extra entry parameter from C AddSchema functions ( #6246 )
2024-01-19 20:35:44 -08:00
Tyler Veness
ca35bcd827
[wpimath] Use tolerance in rotation interpolation tests ( #6237 )
2024-01-19 20:35:13 -08:00
Tyler Veness
9227d09960
[wpilib] Fix outdated DifferentialDrive docs ( #6249 )
...
They accidentally got reverted when undeprecating MotorController in the
review process for #6053 .
2024-01-19 20:34:58 -08:00
swirl
370126db38
[build] cmake: add wpinet dependency to cscore-config.cmake ( #6242 )
...
Attempting to build with cscore results in the project being unable to find wpinet unless explicitly found with `find_package` earlier.
2024-01-19 20:34:36 -08:00
HarryXChen
1330235918
[sysid] Show warning tooltips next to bad feedforward gains instead of throwing ( #6251 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2024-01-19 20:33:56 -08:00
Jonah
d392570659
[wpilib] SysIdRoutineLog: Defer creation of state log entry ( #6259 )
2024-01-19 17:43:18 -08:00
Thad House
a2d45dbca4
[wpiutil] DataLog: Add AddSchema functions to C API ( #6232 )
2024-01-15 23:34:18 -08:00
Isaac Turner
30965b20cf
[wpilibc] Use std::atomic in ADIS classes ( #6217 )
2024-01-15 22:42:19 -08:00
Thad House
5bc942f532
[wpiutil] StructArrayLogEntry: Use the same lock everywhere ( #6231 )
2024-01-15 22:41:31 -08:00
Tyler Veness
97828bd325
[sysid] Remove unused "gains to encoder counts" checkbox ( #6234 )
2024-01-15 22:40:45 -08:00
sciencewhiz
6da21c4943
[examples] Fix typo in AprilTag example (NFC) ( #6230 )
2024-01-14 20:51:52 -08:00
Peter Johnson
ecf1755e3e
[glass] Default to 2024 field image ( #6225 )
...
Also relax field scale check a bit so 2024 field image passes.
2024-01-14 14:47:54 -08:00
sciencewhiz
154d920e67
[examples] Limit error bit correction in April Tag examples ( #6224 )
...
Values >3 are not supported. 64be6ab26a/apriltag.c (L261-L266)
2024-01-13 23:03:58 -08:00
sciencewhiz
d2ee423749
[fieldImages] Use Miklast high resolution field render ( #6185 )
...
Image from https://www.chiefdelphi.com/t/2024-crescendo-top-down-field-renders/447764
Imaged cropped to use less space.
2024-01-13 22:28:58 -08:00
Peter Johnson
7e3678b0a4
[glass] Fix Field2d position and scaling ( #6222 )
...
Also adds some border padding for the non-image case.
2024-01-13 21:09:02 -08:00
Tyler Veness
4a55d830e4
[wpilibcExamples] Remove redundant initializer ( #6212 )
2024-01-13 14:09:26 -08:00
Ben Goldberg
420020c0d5
[wpimath] Remove unused include in Quaternion.cpp ( #6219 )
2024-01-13 08:48:43 -08:00
Eli Barnett
077c8f4092
[sysid] Fix test duration slider responsiveness ( #6216 )
2024-01-12 23:05:46 -08:00
HarryXChen
84e3a22baa
[sysid] Fix peak acceleration filtering behavior in dynamic velocity test ( #6207 )
2024-01-12 17:05:50 -08:00
Tyler Veness
b482321c0d
[commands] Replace SysId hash map with if statements ( #6209 )
...
This is much more efficient.
2024-01-12 12:36:59 -08:00
Isaac Turner
d181e353a0
[wpilib] ADIS16470: Add no-param GetAngle and GetRate ( #6184 )
...
This helps with backwards compatibility.
2024-01-12 11:00:42 -08:00
Peter Johnson
2386e44f3a
[sysid] Filter valid test names ( #6200 )
...
Currently the analysis portion only supports quasistatic and dynamic,
forward and reverse. Check for anything not matching and remove it,
along with providing diagnostics of what is being loaded.
2024-01-12 10:58:57 -08:00
Isaac Turner
fa5b604f16
[wpilibc] Remove unused includes ( #6208 )
2024-01-12 10:58:35 -08:00
Tyler Veness
67e8306819
gitattributes: Mark C++ source files as text ( #6210 )
...
Some C++ files had been checked in with CRLF line endings.
This fixes those and also fixes future commits.
2024-01-12 10:53:56 -08:00
Thad House
1981b8debd
Fix multiple Java warnings ( #6201 )
2024-01-12 08:46:21 -08:00
Tyler Veness
ba9c21cf38
[wpilib] Fix SysId log key for acceleration ( #6196 )
...
Also add to docs that logging acceleration and current is optional.
2024-01-10 20:48:23 -08:00
Tyler Veness
211c2a375c
[build] Run formatter on generate_usage_reporting.py ( #6197 )
2024-01-10 20:47:54 -08:00
Peter Johnson
75b2fa1cc3
[sysid] Data selector: use timestamps instead of ranges ( #6193 )
...
This is somewhat slower, but handles data files that are organized
differently (e.g. entries grouped instead of purely sorted by time).
2024-01-10 20:13:19 -08:00
Chris Gerth
84b089b209
[ntcore] Update alloy-model.adoc (NFC) ( #6191 )
...
URL changed
2024-01-10 11:11:35 -08:00
Peter Johnson
ce550705d7
[ntcore] Fix client "received unknown id -1" ( #6186 )
...
This was caused by not swallowing id=-1 messages after processing the
first one.
2024-01-09 14:13:05 -08:00
Peter Johnson
3989617bde
[ntcore] NetworkTable::GetStruct: Add I template param ( #6183 )
2024-01-09 12:39:47 -08:00
sciencewhiz
f1836e1321
[fieldImages] Fix 2024 field json ( #6179 )
...
Field corners and field size were identical to 2023.
2024-01-08 19:27:55 -08:00
David Vo
d05f179a9a
[build] Fix running apriltagsvision Java example ( #6173 )
2024-01-07 22:51:55 -08:00
sciencewhiz
b1b03bed85
[wpilib] Update MotorControllerGroup deprecation message ( #6171 )
...
The current message could be read as encouraging the use of CAN motor
controllers. This tries to make it more clear.
2024-01-07 17:06:26 -08:00
Michael Leong
fa63fbf446
LICENSE.md: Bump year to 2024 ( #6169 )
2024-01-07 07:17:41 -08:00
Tyler Veness
4809f3d0fc
[apriltag] Add 2024 AprilTag locations ( #6168 )
v2024.1.1
2024-01-06 12:50:27 -08:00
Peter Johnson
dd90965362
[wpiutil] Fix RawFrame.setInfo() NPE ( #6167 )
2024-01-06 12:50:11 -08:00
sciencewhiz
8659372d08
[fieldImages] Add 2024 field image ( #6166 )
2024-01-06 12:06:15 -08:00