Thad House
fe28fa1ded
[wpilibj] Fix ADIS16470 Gyro ( #7434 )
2024-11-25 17:23:32 -08:00
Tyler Veness
b7eb9fb8f9
[upstream_utils] Add std::is_debugger_present() shim ( #7423 )
2024-11-22 09:17:23 -08:00
oh-yes-0-fps
1d58c5025e
[wpilibj] Add procedural struct generator for enums and records ( #7149 )
2024-11-21 20:48:11 -08:00
Thad House
b4a8d33486
[ntcoreffi] Use static runtime for ntcoreffi ( #7422 )
...
This avoids requiring users of this library to keep up to date with the latest MSVC runtimes.
2024-11-21 16:14:12 -07:00
sciencewhiz
0a3ccf93c6
[wpimath] Add BangBangController Usage Reporting ( #7411 )
v2025.1.1-beta-2
2024-11-20 17:00:54 -08:00
Matt
d92f17b014
[apriltag] Fix AprilTagDetector cols/stride mixup ( #7415 )
2024-11-20 17:00:08 -08:00
Gold856
4c225ef2c1
[wpimath] Add proto files back to JAR ( #7414 )
...
PhotonVision depends on these being in the JAR to generate quickbuf classes.
2024-11-20 07:59:37 -08:00
Thad House
561078ce29
[hal] Cache sim TCP data to update during HAL_RefreshDSData ( #7360 )
2024-11-18 20:56:32 -08:00
sciencewhiz
d312bccfeb
[hal] Add Swerve Instances for RobotDrive usage reporting ( #7410 )
2024-11-18 20:51:50 -08:00
David Vo
9826539198
[hal] Add MagicBot framework to usage reporting ( #7330 )
...
Co-authored-by: sciencewhiz <sciencewhiz@users.noreply.github.com >
2024-11-18 20:51:16 -08:00
sciencewhiz
33f7067216
[hal] Add usage reporting for Rust ( #7409 )
...
Co-authored-by: itsmeft24 <57544858+itsmeft24@users.noreply.github.com >
2024-11-18 20:25:33 -08:00
Vignesh Balasubramaniam
ac1836ec44
[wpiunits] Add absolute value and copy sign functionality ( #7358 )
2024-11-18 17:46:15 -08:00
sciencewhiz
57e10755fd
[wpilib] Add usage reporting for dashboards as instances ( #7294 )
...
Detects dashboards based on network tables client identity.
2024-11-18 10:16:29 -07:00
Tyler Veness
8ec22b7d5c
[wpiutil] Remove unfinished ct_map class ( #7406 )
2024-11-17 21:31:25 -08:00
Tyler Veness
a04c40f589
Replace std::make_pair with std::pair CTAD ( #7405 )
2024-11-17 20:29:23 -08:00
Jade
b4bec566f0
[github] Fix templates not labelling ( #7400 )
2024-11-17 20:28:39 -08:00
sciencewhiz
d76827db48
[build] Update to Gradle 8.11 ( #7402 )
2024-11-17 20:28:12 -08:00
Tyler Veness
602c4caa02
[upstream_utils] Check patch files are up to date ( #7401 )
2024-11-17 20:27:53 -08:00
Peter Johnson
661c321fe2
[upstream_utils] Restore Eigen intellisense fix ( #7404 )
...
This reverts commit d1de7663d3 .
Intellisense is still broken on Windows Athena target with the error
`incomplete type "Eigen::Matrix<double, 3, 3, 0, 3, 3>" is not allowed`.
2024-11-17 19:11:25 -08:00
Tyler Veness
d1de7663d3
[upstream_utils] Remove Eigen intellisense fix ( #7397 )
...
FRC Code intellisense continued to work in developerRobot with a QR
decomposition.
2024-11-16 22:16:11 -08:00
Peter Johnson
b040059108
[ntcore] Properly clean up time sync listeners ( #7398 )
2024-11-16 22:15:40 -08:00
sciencewhiz
0798ac53d0
[build] Generate NI Style UsageReporting header ( #7331 )
...
based on wplibsuite/ni-libraries src/include/FRC_NetworkCommunication/UsageReporting.h
2024-11-16 07:58:25 -08:00
Sam Carlberg
ded7c87d63
[wpimath] Remove units from trapezoid profile classes ( #7276 )
2024-11-16 07:57:38 -08:00
Joseph Eng
2acf111f56
[wpimath] Add 3D odometry and pose estimation ( #7119 )
2024-11-16 07:56:14 -08:00
Tyler Veness
aa7dd258c4
[wpimath] Replace constexpr coeff() and coeffRef() with operator() ( #7391 )
2024-11-16 07:44:20 -08:00
Jonah Bonner
ca51197486
[wpilib] Add timestamp getters with configurable time base ( #7378 )
2024-11-16 07:43:38 -08:00
Gold856
91142ba5fe
[build] Remove Windows constexpr mutex define ( #7375 )
...
Since we ship a newer runtime, and we also have checks to ensure a valid runtime, we can remove this again.
2024-11-16 07:27:46 -08:00
Thad House
969664ceaa
[wpiutil] Faster nanopb submessage encode ( #7374 )
...
Due to how submessages are encoded (with a length prefix), nanopb currently does the encoding twice. It encodes once to get the length to write, then writes the length, then reencodes the entire message a 2nd time.
This results in a requirement that each encode always encodes the same. Generally, this is fine, but it'd be nice to not make this a requirement.
The double encode also requires going through the entire set of fields again, which has the possibility to be slow.
Instead of doing this, write to a temporary SmallVector. Then we can just encode the length of that buffer, and do a memcpy into primary stream. Theoretically in most cases, this should be much faster.
2024-11-16 07:26:10 -08:00
Kavin Muralikrishnan
1e545c38a8
[romi] Update Romi for parity with XRP ( #7389 )
2024-11-16 07:24:58 -08:00
Kavin Muralikrishnan
6eb652e10e
[xrp] Copy XRPReference docs from Java to C++ (NFC) ( #7388 )
2024-11-16 07:24:21 -08:00
Thad House
fff73ee6e1
[ci] Add basic Android build to CI ( #7390 )
2024-11-16 07:23:32 -08:00
Tim Winters
bade0a8716
[wpiunits] Use div instead of divide for kotlin compatibility ( #7387 )
2024-11-15 11:49:40 -07:00
Thad House
453335e354
[build] Remove java requirement from cmake ( #7395 )
...
It was leftover from the failed protoc stuff
2024-11-15 07:45:20 -07:00
Thad House
c289562a06
Allow compilation on android ( #7386 )
2024-11-12 16:39:41 -08:00
Kavin Muralikrishnan
07345712dc
[wpimath] Document default tolerances of PIDController ( #7377 )
2024-11-12 18:19:55 -05:00
Joseph Eng
425bf83036
[wpimath] Add 2D to 3D geometry constructors ( #7380 )
2024-11-12 18:18:37 -05:00
David Vo
6adad7bad7
[wpiutil] Replace StringBuffer usage with StringBuilder ( #7376 )
...
This is a local variable that doesn't escape the method, so there's certainly no reason to have synchronization here.
2024-11-10 07:43:43 -08:00
Kavin Muralikrishnan
280d2c7e32
[examples] Update C++ XRP Code to use SI Units ( #7366 )
2024-11-08 20:24:13 -08:00
Thad House
edc3963955
[wpinet] Fix resolver thread on newer versions of macOS ( #7372 )
...
Implicit capture of this is deprecated.
2024-11-08 20:23:17 -08:00
Tyler Veness
c58be2580d
[ntcore] Suppress warning false positive ( #7370 )
...
```
In copy constructor ‘std::function<_Res(_ArgTypes ...)>::function(const std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {unsigned int}]’,
inlined from ‘nt::server::ServerClient4Base::ServerClient4Base(std::string_view, std::string_view, bool, nt::server::SetPeriodicFunc, nt::server::ServerStorage&, int, wpi::Logger&)’ at /home/tav/frc/wpilib/allwpilib/ntcore/src/main/native/cpp/server/ServerClient4Base.h:24:77,
inlined from ‘nt::server::ServerClientLocal::ServerClientLocal(nt::server::ServerStorage&, int, wpi::Logger&)’ at /home/tav/frc/wpilib/allwpilib/ntcore/src/main/native/cpp/server/ServerClientLocal.cpp:18:75:
/usr/include/c++/14.2.1/bits/std_function.h:391:17: error: ‘<anonymous>’ may be used uninitialized [-Werror=maybe-uninitialized]
391 | __x._M_manager(_M_functor, __x._M_functor, __clone_functor);
| ~~~~^~~~~~~~~~
/usr/include/c++/14.2.1/bits/std_function.h: In constructor ‘nt::server::ServerClientLocal::ServerClientLocal(nt::server::ServerStorage&, int, wpi::Logger&)’:
/usr/include/c++/14.2.1/bits/std_function.h:267:7: note: by argument 2 of type ‘const std::_Any_data&’ to ‘static bool std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_manager(std::_Any_data&, const std::_Any_data&, std::_Manager_operation) [with _Res = void; _Functor = nt::server::ServerClientLocal::ServerClientLocal(nt::server::ServerStorage&, int, wpi::Logger&)::<lambda(uint32_t)>; _ArgTypes = {unsigned int}]’ declared here
267 | _M_manager(_Any_data& __dest, const _Any_data& __source,
| ^~~~~~~~~~
/home/tav/frc/wpilib/allwpilib/ntcore/src/main/native/cpp/server/ServerClientLocal.cpp:18:75: note: ‘<anonymous>’ declared here
18 | : ServerClient4Base{"", "", true, [](uint32_t) {}, storage, id, logger} {
| ^
```
2024-11-08 20:22:47 -08:00
Peter Johnson
f40bd3593d
[wpilib,wpimath] Don't use mutable units for return values ( #7369 )
...
It only saves a single allocation and can cause confusing behavior on the
caller (user) side.
2024-11-08 18:29:51 -08:00
Thad House
3cc541f261
Remove generated google protobuf support ( #7371 )
...
It's not used anymore, and cleans up the build.
2024-11-08 18:29:30 -08:00
Tyler Veness
811b130968
[docs] Link to Bazel build docs from main readme ( #7367 )
...
I had a really hard to finding them because the main readme didn't call
it out.
2024-11-08 14:05:50 -08:00
Thad House
d39dfd64ea
[build] Fix cmake build with WITH_PROTOBUF off ( #7368 )
...
Protobuf.cpp only uses nanopb, which is fine to have even with WITH_PROTOBUF off.
2024-11-08 14:05:29 -08:00
Tyler Veness
661bae568f
[wpimath] Add time-varying RKDP ( #7362 )
...
This makes the ground truth for the Taylor series AQ discretization more
accurate.
2024-11-07 23:46:52 -08:00
Peter Johnson
01f85abcfe
[ntcore] Use Endian.h in WireEncoder3
2024-11-08 00:46:27 -07:00
Peter Johnson
396f8203ac
[ntcore] HandleMap: Use concepts for T
2024-11-08 00:46:27 -07:00
Peter Johnson
4a43ddbacf
[ntcore] Split LocalStorage implementation into separate files
2024-11-08 00:46:27 -07:00
Peter Johnson
0921054a28
[ntcore] Split ServerImpl implementation into separate files
2024-11-08 00:46:27 -07:00
Peter Johnson
f738fc92f0
[ntcore] Move ServerImpl to nt::server namespace
2024-11-08 00:46:27 -07:00