Peter Johnson
14dcd0d26f
Use char instead of uint8_t for json::parse ( #5877 )
...
The uint8_t usage causes warnings on newer clang versions.
Add GetCharBuffer() to MemoryBuffer classes to make this easy.
2023-11-04 22:18:42 -07:00
Thad House
ec1d261984
[hal] Fix garbage data for match info before DS connection ( #5879 )
...
NetComm writes garbage data before the DS connects. Make sure this doesn't make it up to the user.
2023-11-04 22:15:24 -07:00
Peter Johnson
63dbf5c614
[wpiutil] MemoryBuffer: Fix normal read and file type check ( #5875 )
2023-11-04 18:41:39 -07:00
Peter Johnson
b2e7be9250
[ntcore] Only datalog meta-topics if specifically requested ( #5873 )
2023-11-04 18:40:52 -07:00
Tyler Veness
201a42a3cd
[wpimath] Reorder TrapezoidProfile.calculate() arguments ( #5874 )
...
ProfiledPIDController and ExponentialProfile use current, then goal.
This isn't a breaking change because this overload of calculate() is
new for 2024.
2023-11-04 16:28:55 -07:00
Drew Williams
04a781b4d7
[apriltag] Add GetTags to C++ version of AprilTagFieldLayout ( #5872 )
2023-11-04 10:26:07 -07:00
Ryan Blue
87a8a1ced4
[docs] Exclude eigen and protobuf from doxygen ( #5871 )
...
They take up a significant portion of the generated output (protobuf ~55MB, eigen ~119MB).
2023-11-04 07:54:48 -07:00
Peter Johnson
f1a82828fe
[wpiutil] Add DataLog and DataLogManager Stop() ( #5860 )
...
Restarting a stopped log results in creating a new log file with fresh copies of the same start records and schema data records.
Also check to see if the file has been deleted or if the log file exceeds 1.8 GB, and start a new one.
v2024.1.1-beta-3
2023-11-03 20:34:43 -07:00
Ryan Blue
2a04e12c6f
[apriltag] AprilTagFieldLayout: Add accessors for origin and field dimensions ( #5869 )
2023-11-03 20:24:23 -07:00
Ryan Blue
33e0089afb
Cleanup usages of std::function<void(void)> ( #5864 )
2023-11-03 18:22:47 -07:00
Ryan Blue
d06fa633d5
[build] Fix protobuf generation when building with make ( #5867 )
2023-11-03 18:22:34 -07:00
Ryan Blue
049732afb8
[cscore] Make camera connection logging clearer ( #5866 )
2023-11-03 16:03:23 -07:00
Bryce Roethel
87f7c19f90
[wpimath] Make InterpolatingDoubleTreeMap constructor public ( #5865 )
2023-11-03 15:34:14 -07:00
Tyler Veness
6b53ef47cf
[wpimath] Don't recreate TrapezoidProfile in ProfiledPIDController calculate() ( #5863 )
2023-11-03 15:21:58 -07:00
shueja-personal
8a3a268ae6
[commands] Add finallyDo with zero-arg lambda ( #5862 )
2023-11-03 15:21:21 -07:00
Tyler Veness
1c35d42cd0
[wpilib] Pop diagnostic for deprecated function use ( #5859 )
2023-11-03 08:34:08 -07:00
narmstro2020
ddc8db6c26
[wpimath] Add feedforward constant constructor to ElevatorSim ( #5823 )
...
Adds a subclass of ElevatorSim that uses kG, kV, and kA from sysId to simulate an Elevator.
2023-11-02 09:10:57 -07:00
Tyler Veness
c6aff2c431
[upstream_utils] Update to LLVM 17.0.4 ( #5855 )
2023-11-01 16:45:32 -07:00
Peter Johnson
a9c5b18a39
[build] Update OpenCV to 2024-4.8.0-2 ( #5854 )
...
This fixes rpath on cross-build targets to properly include $ORIGIN.
2023-11-01 09:45:40 -07:00
Kevin-OConnor
9540b6922d
[hal] Add CAN IDs for AndyMark and Vivid Hosting ( #5852 )
2023-10-31 15:59:42 -07:00
Peter Johnson
83a7d33c47
[glass] Improve display of protobuf/struct type strings ( #5850 )
2023-10-30 20:29:29 -07:00
Ryan Blue
a4a8ad9c75
[commands] Make Java SelectCommand generic ( #5849 )
...
This allows users to use any type of map and selector without needing to explicitly match
Map<Object, Command>
2023-10-30 11:09:14 -07:00
Gold856
9eecf2a456
[build] Add CMake option to build Java sources jars ( #5768 )
2023-10-30 09:57:28 -07:00
David Baucum
9536a311cb
[wpilib] Add support for the PS5 DualSense controller ( #5257 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-10-30 08:25:16 -07:00
Dustin Spicuzza
8d5e6737fc
[wpilibc] SolenoidSim: Add virtual destructor ( #5848 )
2023-10-30 08:24:11 -07:00
Peter Johnson
07e13d60a2
[ntcore] Fix write_impl ( #5847 )
...
The previous fix didn't handle all cases correctly. Instead, add a new
function to raw_ostream (SetNumBytesInBuffer) to allow always using the
full buffer size, and revamp write_impl to more cleanly handle all
cases.
2023-10-30 08:23:33 -07:00
Peter Johnson
1713386869
[wpiutil] ProtobufMessageDatabase: Fix out-of-order Add() rebuild ( #5845 )
2023-10-29 16:50:01 -07:00
Peter Johnson
35472f5fc9
[ntcore] Fix a use-after-free in client close ( #5844 )
2023-10-29 16:49:45 -07:00
Peter Johnson
ed168b522c
[ntcore] Disable buf pool when asan is enabled ( #5843 )
...
This helps asan catch more errors.
2023-10-29 16:49:31 -07:00
Peter Johnson
3e7ba2cc6f
[wpinet] WebSocket: Fix write behavior ( #5841 )
...
On Windows, TryWrite will always return 0 if there is a Write in progress. The previous behavior for SendFrames and SendControl just used a normal Write, which caused issues with code that combined these with TrySendFrames. Instead, have SendFrames and SendControl also use TryWrite under the hood if possible, and create write requests if not. The implementation preserves the priority of SendControl against an existing write request with multiple frames.
2023-10-29 16:48:25 -07:00
Gold856
80c47da237
[sim] Disable the robot program when DS disconnects ( #5818 )
2023-10-28 10:10:23 -07:00
sciencewhiz
abe1cec90c
[wpilib] Update Usage Reporting ResourceType from NI Libraries ( #5842 )
...
Disable PS4 controller reporting until added by NI
2023-10-27 20:21:46 -07:00
Oliver
cdf981abba
[glass] Fix position of data type in NT view ( #5840 )
2023-10-27 17:41:42 -07:00
Thad House
04dcd80adb
[build] Publish unit tests for examples ( #5838 )
2023-10-27 16:57:38 -07:00
Jordan McMichael
49920234ac
[build] Fix checkstyle rules to allow Windows paths ( #5839 )
2023-10-27 16:56:58 -07:00
Ryan Blue
366b715942
[wpilib] Fix SendableChooser test ( #5835 )
...
Using unique NT keys for each test seems to resolve the failure on Linux. Changed Java as well, for completeness.
2023-10-26 20:47:04 -07:00
Ryan Blue
3ba501f947
[commands] Java: Fix CommandXboxController.leftTrigger() parameter order ( #5831 )
2023-10-26 19:18:36 -07:00
Tyler Veness
ec569a58ef
[wpimath] Make KalmanTypeFilter interface public ( #5830 )
2023-10-26 19:18:02 -07:00
Peter Johnson
b91317fd36
[wpiutil] DataLog.addSchema(): Don't add into a set view ( #5829 )
2023-10-26 19:17:47 -07:00
Peter Johnson
2ab4fcbc24
[wpiutil] ProtobufMessageDatabase: Clear messages first ( #5827 )
...
The message destructor appears to call something on the descriptor.
2023-10-26 19:17:29 -07:00
Tyler Veness
98c14f1692
[wpimath] Add EKF/UKF u-y-R correct overload ( #5832 )
...
Also clean up comments on other overloads and fix a typo.
2023-10-26 19:17:15 -07:00
Ryan Blue
60bcdeded9
[ci] Disable java in sanitizer builds ( #5833 )
2023-10-26 19:16:58 -07:00
Ryan Blue
c87f8fd538
[commands] Add DeferredCommand ( #5566 )
...
Allows commands to be constructed at runtime without proxying.
2023-10-26 19:16:33 -07:00
Ryan Blue
ad80eb3a0b
[ci] Update actions for comment-command ( #5824 )
2023-10-25 14:33:22 -07:00
Peter Johnson
c7d6ad5a0b
[ntcore] WebSocketConnection: Use weak capture ( #5822 )
...
Fixes a potential use-after-free on connection close.
2023-10-25 10:22:43 -07:00
Zhiquan Yeo
8a8e220792
[simgui] Add 'Invalid' option for AllianceStation ( #5820 )
2023-10-24 11:51:39 -07:00
Gold856
cfc6a47f76
[sim] DS plugin: Fix off-by-one error when setting alliance station ( #5819 )
2023-10-24 09:15:40 -07:00
Peter Johnson
8efa586ace
[ntcore] Don't check type string on publishing an entry ( #5816 )
...
Only check the raw type value.
2023-10-24 00:12:02 -07:00
Peter Johnson
23ea188e60
[glass] Add protobuf decode error log message ( #5812 )
2023-10-23 23:36:23 -07:00
Ryan Blue
928e87b4f4
[build] Add combined test meta-task ( #5813 )
2023-10-23 23:35:44 -07:00