Thad House
9ed0631ec9
[cscore] Add BGRA support ( #6365 )
2024-02-12 23:42:17 -08:00
Thad House
fb947fe998
[cscore] Use Raw for CvSink and CvSource ( #6364 )
...
Eventually we want to get to a point where we can remove OpenCV from the internals of cscore. The start to doing that is converting the existing CvSource and CvSink methods to RawFrame.
For CvSource, this is 100% a free operation. We can do everything the existing code could have done (with one small exception we can fairly easily fix).
For CvSink, by defaut this change would incur one extra copy, but no extra allocations. A set of direct methods were added to CvSink to add a method to avoid this extra copy.
2024-02-12 22:33:03 -08:00
Joe Wildfong
6b6a55b72e
[build] Fix tcpsockets header publishing ( #6367 )
2024-02-12 19:44:31 -08:00
fodfodfod
1e168f363e
[wpimath] Feed forwards: Use correct 'k' value in error message ( #6360 )
2024-02-11 10:42:04 -08:00
DeltaDizzy
da3abade83
[examples] Add angular subsystem to SysIdRoutine example ( #6297 )
...
Co-authored-by: Tim Winters <twinters@wpi.edu >
2024-02-10 10:44:57 -08:00
Asa Paparo
62cba9a4d3
[wpimath] Add vector projection and geometry vector conversions ( #6343 )
2024-02-10 10:43:58 -08:00
N0tACyb0rg
3207795d0d
[wpimath] Add lastValue() method to filters ( #6351 )
2024-02-10 10:43:23 -08:00
Joseph Eng
e506e09a06
[wpilibc] Const-qualify SendableChooser::GetSelected() ( #6356 )
2024-02-10 10:42:53 -08:00
Joseph Eng
163f7ee704
[wpilibc] SendableChooser: Remove unusable std::unique_ptr case ( #6357 )
2024-02-10 10:41:57 -08:00
Thad House
e9c744c456
[wpimath] Quaternion::Log(): Remove duplicate calls to norm() ( #6358 )
2024-02-10 10:41:19 -08:00
Kython89
300419c151
[wpilibc] SysIdRoutineLog: Initialize m_stateInitialized ( #6359 )
...
This caused non-deterministic behavior as to if the `sysid-test-state-` will appear in the log.
2024-02-10 10:40:38 -08:00
Tyler Veness
1db3936965
[wpimath] Remove unused include from RamseteController.cpp ( #6346 )
2024-02-05 22:43:50 -08:00
Tyler Veness
4f9d73783b
[wpimath] Make units math functions constexpr ( #6345 )
2024-02-05 22:43:12 -08:00
Tyler Veness
3b2a2381b6
[ci] Upgrade to new macOS runner ( #6328 )
2024-02-04 10:38:23 -08:00
Ryan Blue
6cc7e52de7
[commands] TrapezoidProfileSubsystem: Fix incorrect ordering of parameters ( #6338 )
2024-02-01 20:24:43 -08:00
Sam Carlberg
d4533a8900
[wpilibj] AddressableLEDBuffer: Add methods for reading individual RGB values ( #6333 )
...
This avoids the allocation/GC overhead of returning a Color8 value.
Also add an indexed iterator forEach to loop over the entire buffer.
2024-02-01 14:01:53 -08:00
vichik
90bb6cfffa
[wpiunits] Fix measure isNear function ( #6313 )
...
Now the function allows comparison between negative numbers, positive numbers or both.
2024-01-31 13:18:47 -08:00
Ryan Blue
cb094e4ff6
[examples] Don't reset encoders when resetting odometry ( #6329 )
2024-01-31 13:18:07 -08:00
Isaac Turner
60c6ed9812
[ci] Bump python, java and react script versions ( #6325 )
2024-01-31 13:17:41 -08:00
Tim Winters
ee15cc172a
[commands] Reset timer in quasistatic SysIdRoutine test ( #6322 )
2024-01-27 23:51:00 -08:00
Joseph Eng
1016e95242
[examples] Fix memory leak in C++ controller command examples ( #6306 )
2024-01-27 23:49:41 -08:00
Sam Carlberg
19f1903959
[wpiunits] Add singularized aliases for built in units ( #6323 )
2024-01-27 23:47:59 -08:00
DeltaDizzy
53ebb6679e
[examples] Move triggers to subsystem fields ( #6318 )
2024-01-27 23:47:06 -08:00
Tyler Veness
177132fa2a
Replace C++ unit .to<double>() with .value() ( #6317 )
...
The latter is shorter and is what we use everywhere else.
2024-01-27 07:58:25 -08:00
Thad House
bbb230491a
Force cpp files to be LF line endings ( #6319 )
...
Just marking a file as text will cause git to override the local core.autocrlf setting, and assume you want it to be true, which isn't what you want.
2024-01-26 23:20:51 -08:00
Tyler Veness
84ef71ace0
[wpimath] Make Rotation2d implicitly convert from any angle unit ( #6316 )
...
Add unit category concepts to support this.
2024-01-26 12:49:22 -08:00
Tyler Veness
68736d802d
[wpimath] Clean up profile classes ( #6311 )
...
* Reorder functions so they match between languages
* Copy more complete JavaDocs to C++
* Fix incorrect description for time parameter of
TrapezoidProfile.calculate()
2024-01-25 22:22:42 -08:00
Tyler Veness
d895a0c09f
[wpiutil] Add std::expected shim ( #6310 )
...
Its tests use Catch2 instead of GoogleTest, so we can't import them.
2024-01-25 22:21:37 -08:00
sciencewhiz
64a9d413bf
Update contributing for addition of Python (NFC) ( #6307 )
2024-01-25 21:31:57 -08:00
Chris Gerth
a70e83ae2e
[glass] Update field size defaults in Field2D.cpp ( #6298 )
...
Looks like the field length is longer in 2024. Used the onshape model to measure the size.
2024-01-23 21:28:17 -08:00
Isaac Turner
47652d7a3c
[commands] Remove unused headers ( #6300 )
2024-01-23 21:27:24 -08:00
Tyler Veness
be78552db7
[sysid] Fix SSTO calculation ( #6301 )
2024-01-23 21:26:49 -08:00
Peter Johnson
3acae550d6
[ntcore] StructArrayTopic: Publish schema in span-taking setters ( #6303 )
2024-01-23 21:26:06 -08:00
Thad House
9d55941ce5
[build] Fix macOS apps not always being an application ( #6286 )
2024-01-21 20:41:08 -08:00
Peter Johnson
51d92c7027
[build] Fix compilation with musl ( #6289 )
2024-01-21 20:32:56 -08:00
Peter Johnson
9206b47d67
[wpilibc] ADIS16448, ADIS16470: Initialize member pointers ( #6282 )
v2024.2.1
2024-01-21 11:49:32 -08:00
Dustin Spicuzza
6fc16264ce
[ntcore] NetworkTable: Actually use the I parameter for structs ( #6280 )
2024-01-21 10:57:11 -08:00
Peter Johnson
ad18f35477
[ntcore] Map int[] to int64[] for DataLog ( #6279 )
2024-01-21 00:50:27 -08:00
Thad House
0c6bd846bc
[hal] Use 64 bit timestamp in DMA ( #6278 )
2024-01-20 22:34:03 -08:00
Asa Paparo
19c1556472
[commands] Fix SysIdRoutine naming ( #6277 )
...
Previously, this used mechanism.m_subsystem.getName(), instead of mechanism.m_name, meaning differently named SysId routines from the same subsystem would clobber each other when logged.
2024-01-20 22:10:19 -08:00
Peter Johnson
3928ed5647
[sim] Sim GUI DS: Add "Disconnected" state and start in it ( #6218 )
...
The default state for the DS in the simulated HAL is changed to disconnected.
The FMS view is now only editable in DS disconnected state.
This enables more robot and field-like testing of robot code, as the
alliance color and other parameters start in invalid states and are
only set when the DS connects.
2024-01-20 21:10:02 -08:00
Thad House
e408f3ad27
[rtns] Add functionality to enable and disable webserver ( #6270 )
2024-01-20 20:15:30 -08:00
Thad House
7957f4a625
[hal] Don't write a 0 length led string to the FPGA ( #6271 )
...
Due to something weird in the FPGA, calling strobeLoad() with a string length of 0 causes both CPUs to spin at 100%, basically shutting down everything else on the robot.
If a 0 length string happens to be passed, just bail out early.
2024-01-20 09:32:16 -08:00
Peter Johnson
1241dfdf68
[outlineviewer] Reduce NT log level
2024-01-20 07:24:16 -08:00
Peter Johnson
4d109309c9
[glass] Reduce NT log level
2024-01-20 07:24:16 -08:00
Peter Johnson
7560d18e09
[ntcore] Enable uv/WS debugging
2024-01-20 07:24:16 -08:00
Peter Johnson
f518e143d0
[wpinet] WebSocket: Utilize uv::Handle logging
2024-01-20 07:24:16 -08:00
Peter Johnson
6fab87fa4c
[wpinet] uv::Stream: Add logging for Write and TryWrite
2024-01-20 07:24:16 -08:00
Peter Johnson
42c41785ac
[wpinet] uv::Handle: Add wpi::Logger support
...
This allows the uv wrappers and any related classes to log directly to
a wpi::Logger.
2024-01-20 07:24:16 -08:00
Peter Johnson
1a7eeb6282
[ntcore] Enhance WebSocketConnection debug logging
2024-01-20 07:24:16 -08:00