Tyler Veness
77c2124fc5
[wpimath] Remove Eigen's custom STL types ( #4945 )
...
In C++20, overaligned types are handled properly, so Eigen's STL types
with custom allocators are no longer needed.
2023-05-12 21:32:58 -07:00
Peter Johnson
27fb47ab10
[glass] Field2D: Embed standard field images ( #5159 )
2023-05-12 21:31:38 -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
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
91392823ff
[build] Update to gradle 8.1 ( #5303 )
2023-05-12 21:27:31 -07:00
sciencewhiz
258b7cc48b
[wpilibj] Filesystem.getDeployDirectory(): Strip JNI path from user.dir ( #5317 )
...
Fixes
https://www.chiefdelphi.com/t/filesystem-getdeploydirectory-returning-wrong-location-how-to-fix/427292
when unit tests are run with VS Code's java test runner due to VS Code
extension setting working directory which changes user.dir.
2023-05-12 21:26:52 -07:00
Ryan Blue
26cc43bee1
[wpilib] Add documentation to SPI mode enum (NFC) ( #5324 )
2023-05-12 21:26:10 -07:00
sciencewhiz
ac4da9b1cb
[hal] Add HAL docs for Addressable LED (NFC) ( #5304 )
2023-05-07 22:56:40 -07:00
Tyler Veness
21d4244cf7
[wpimath] Fix DCMotor docs (NFC) ( #5309 )
2023-05-07 22:56:05 -07:00
sciencewhiz
1dff81bea7
[hal] Miscellaneous HAL doc fixes (NFC) ( #5306 )
2023-05-07 22:55:48 -07:00
Tyler Veness
7ce75574bf
[wpimath] Upgrade to Drake v1.15.0 ( #5310 )
2023-05-07 22:54:58 -07:00
sciencewhiz
576bd646ae
[hal] Add CANManufacturer for Redux Robotics ( #5305 )
...
Matches wpilibsuite/frc-docs#2225
2023-05-07 22:53:57 -07:00
Joseph Eng
ee3b4621e5
[commands] Add onlyWhile and onlyIf ( #5291 )
2023-04-30 14:09:02 -07:00
Joseph Eng
40ca094686
[commands] Fix RepeatCommand calling end() twice ( #5261 )
2023-04-28 20:57:33 -07:00
Cory
9cbeb841f5
[rtns] Match imaging tool capitalization ( #5265 )
2023-04-28 20:57:12 -07:00
Josiah Hamm
a63d06ff77
[examples] Add constants to java gearsbot example ( #5248 )
2023-04-28 20:56:14 -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
Tyler Veness
90fabe9651
[wpilibj] Use method references in drive class initSendable() ( #5251 )
2023-04-28 20:53:42 -07:00
Gold856
24828afd11
[wpimath] Fix desaturateWheelSpeeds to account for negative speeds ( #5269 )
2023-04-28 20:53:20 -07:00
Tyler Veness
e099948a77
[wpimath] Clean up rank notation in docs (NFC) ( #5274 )
2023-04-28 20:52:29 -07:00
Tyler Veness
fd2d8cb9c1
[hal] Use std::log2() for base-2 logarithm ( #5278 )
2023-04-28 20:52:03 -07:00
Sriman Achanta
ba8c64bcff
[wpimath] Fix misspelled Javadoc parameters in pose estimators (NFC) ( #5292 )
2023-04-28 20:51:47 -07:00
Tyler Veness
f53c6813d5
[wpimath] Patch Eigen warnings ( #5290 )
2023-04-28 20:51:22 -07:00
Thad House
663703d370
[gitattributes] Mark json files as lf text files ( #5256 )
...
* Mark json files as lf text files
Otherwise spotless complains
* Formatting
2023-04-06 18:46:18 -07:00
Starlight220
aa34aacf6e
[wpilib] Shuffleboard: Keep duplicates on SelectTab() ( #5198 )
v2023.4.3
2023-03-26 20:12:55 -07:00
Tyler Veness
63512bbbb8
[wpimath] Fix potential divide-by-zero in RKDP ( #5242 )
...
If f(x, u) has no dynamics, the truncation error can be zero.
2023-03-26 17:00:09 -07:00
Peter Johnson
9227b2166e
[wpilibj] DriverStation: Fix joystick data logs ( #5240 )
...
Was logging relative to cached value rather than previously logged value.
Was also logging cached value instead of current loop value.
C++ implementation is correct.
2023-03-26 16:17:13 -07:00
Peter Johnson
fbf92e9190
[wpinet] ParallelTcpConnector: don't connect to duplicate addresses ( #5169 )
...
There can be duplicate addresses coming out of name resolution; if we
already started connecting to an address, don't start another connection
attempt.
2023-03-25 16:28:39 -07:00
Peter Johnson
2108a61362
[ntcore] NT4 client: close timed-out connections ( #5175 )
...
Pings are sent every 3 seconds. If we don't see a response to the last
ping before it's time to send the next one, close the connection.
2023-03-25 16:27:40 -07:00
Peter Johnson
0a66479693
[ntcore] Optimize scan of outgoing messages ( #5227 )
...
The algorithm being used for scanning outgoing messages was O(n^2)
because it did a full linear search and then appended. This scan is
performed for each client. If there is a burst of outgoing changes, the
outgoing queue can get quite deep all at once and this scan can be very
slow. Replacing with a map fixes this.
2023-03-25 15:20:22 -07:00
Ryan Blue
b510c17ef6
[hal] Fix RobotController.getComments() mishandling quotes inside the comments string ( #5197 )
...
Previously, the comment would end at any quote, escaped or unescaped. This allows UnescapeCString to handle the unescaping of quotes and properly end the string.
2023-03-20 13:50:25 -07:00
Starlight220
e7a7eb2e93
[commands] WaitCommand: Remove subclass doc note (NFC) ( #5200 )
2023-03-20 13:46:26 -07:00
Starlight220
a465f2d8f0
[examples] Shuffleboard: Correct parameter order ( #5204 )
2023-03-20 13:45:34 -07:00
Mansour Quddus
a3364422fa
LICENSE.md: Bump year to 2023 ( #5195 )
2023-03-18 07:12:08 -07:00
Tyler Veness
df3242a40a
[wpimath] Fix NaN in C++ MakeCostMatrix() that takes an array ( #5194 )
...
Java's makeCostMatrix() and the C++ MakeCostMatrix() overload that takes
a parameter pack already do the right thing.
2023-03-17 07:05:28 -07:00
Peter Johnson
00abb8c1e0
[commands] RamseteCommand: default-initialize m_prevSpeeds ( #5188 )
2023-03-13 23:12:17 -07:00
Ryan Blue
c886273fd7
[wpilibj] DutyCycleEncoder.setDistancePerRotation(): fix simulation ( #5147 )
2023-03-13 21:28:55 -07:00
Peter Johnson
53b5fd2ace
[ntcore] Use int64 for datalog type string ( #5186 )
...
There's a spec difference between NT4 and datalog for integers; NT4 uses
"int", datalog uses "int64". We were using "int" for datalog as well.
Also add backwards compatibility support to datalogtool for treating
"int" as "int64".
2023-03-13 21:28:07 -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
nt
08f298e4cd
[wpimath] Fix Pose3d log returning Twist3d NaN for theta between 1E-8 and 1E-7 ( #5168 )
2023-03-13 21:27:32 -07:00
Jeffrey Morris
6d0c5b19db
[commands] CommandScheduler.isComposed: Remove incorrect throws clause (NFC) ( #5183 )
2023-03-13 21:27:08 -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
Dustin Spicuzza
e5c4c6b1a7
[wpimath] Fix invalid iterator access in TimeInterpolatableBuffer ( #5138 )
2023-02-26 16:42:24 -08:00
nt
099d048d9e
[wpimath] Fix Pose3d log returning Twist3d NaN for theta between 1E-9 and 1E-8 ( #5143 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-02-26 16:41:36 -08:00
sciencewhiz
4af84a1c12
Fix Typos (NFC) ( #5137 )
2023-02-26 15:06:37 -08:00
Tyler Veness
ce3686b80d
[wpimath] Check LTV controller max velocity precondition ( #5142 )
2023-02-26 15:05:41 -08:00