Peter Johnson
5e295dfbda
[wpiutil] DataLog: Limit total buffer allocation ( #5700 )
...
Pause logging if more than 1 MB of outgoing buffers are allocated.
Limit free buffer list to 256 KB.
2023-09-30 20:19:28 -07:00
Peter Johnson
c7c7e05d9d
[ci] Unbreak combiner ( #5698 )
2023-09-30 10:19:32 -07:00
Peter Johnson
c92bad52cb
[wpilib] DataLogManager: Use system time valid function ( #5697 )
2023-09-30 09:24:06 -07:00
Peter Johnson
d404af5f24
[wpilib] RobotController: Add isSystemTimeValid() ( #5696 )
...
This returns true when the system date/time (wall clock) is valid.
2023-09-30 09:22:51 -07:00
Tyler Veness
e56f1a3632
[ci] Run combine but skip all steps ( #5695 )
...
This makes it show up as passed instead of skipped so the result
aggregator collapses.
2023-09-29 23:38:16 -07:00
Peter Johnson
8f5bcad244
[ci] Use sccache for cmake builds ( #5692 )
2023-09-29 23:38:01 -07:00
Tyler Veness
703dedc4a6
[ci] Upgrade get-cmake action to fix node12 deprecation warning ( #5694 )
2023-09-29 21:20:27 -07:00
Tyler Veness
c69a0d7504
[ci] Don't run example unit test that segfaults ( #5693 )
2023-09-29 17:26:03 -07:00
Tyler Veness
66358d103e
Add menu items for online docs to GUI tools ( #5689 )
2023-09-29 17:25:28 -07:00
Tyler Veness
4be8384a76
[ci] Disable combine on PR builds ( #5691 )
...
It takes 30 minutes, and the artifacts aren't used. The combine step
changes so infrequently that it's unlikely to break in PRs, so it's a
net benefit to speed up PR builds.
2023-09-29 09:59:09 -07:00
Peter Johnson
90288f06a6
[ci] Fix Gradle disk space issues ( #5688 )
...
- Free up disk space on Linux by deleting unused packages
- Move build to C drive on Windows
2023-09-29 00:50:15 -07:00
Tyler Veness
9e9583412e
[wpigui] Make wpi::gui::OpenURL() fork the process first ( #5687 )
...
execlp() replaces the current process image, which isn't desirable.
2023-09-28 13:01:56 -07:00
Peter Johnson
d4fcd80b7b
[ci] Gradle: Use container only for build step ( #5684 )
2023-09-27 23:56:20 -07:00
Tyler Veness
7b70e66772
[outlineviewer] Fix thirdparty library include sorting ( #5683 )
2023-09-27 21:45:46 -07:00
Tyler Veness
5f651df5d5
[build] Clean up Gradle configs ( #5685 )
...
Putting an early exit if statement at the top instead of wrapping the
whole file contents unbreaks unit test configs, as was discovered for
SysId. It reduces nesting as well.
Unused plugins were removed from the beginnings of files as well.
2023-09-27 21:45:25 -07:00
Ryan Blue
65b26738d5
Add CMakeSettings.json to gitignore ( #5682 )
2023-09-26 20:57:44 -07:00
Tyler Veness
d0305951ad
Fix GitHub inline warnings ( #5681 )
2023-09-23 19:57:18 -07:00
Ryan Blue
e8d4a20331
[build][cmake] Fix windows tests and re-enable CI tests ( #5674 )
2023-09-22 15:39:35 -07:00
Zhiquan Yeo
2b58bbde0b
[xrp] Add Reflectance sensor and rangefinder classes ( #5673 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2023-09-22 13:03:43 -07:00
PJ Reiniger
dd5612fbee
[json] Add forward definition header ( #5676 )
2023-09-22 13:01:27 -07:00
Tyler Veness
eab44534c3
[wpimath] Remove unused SmallString include ( #5677 )
2023-09-22 08:01:01 -07:00
Tyler Veness
5ab54ff760
Replace wpi::raw_istream with wpi::MemoryBuffer ( #5675 )
...
Instances of wpi::raw_istream were left that are reading incrementally
from file descriptors like USB devices.
2023-09-21 23:20:09 -07:00
Tyler Veness
1b6ec5a95d
[wpiutil] Upgrade to LLVM 17.0.1 ( #5482 )
2023-09-21 19:54:33 -07:00
Tyler Veness
07a0d22fe6
[build] Build examples in CMake CI ( #5667 )
2023-09-20 21:03:55 -07:00
Tyler Veness
97021f074a
[build] Upgrade imgui and implot ( #5668 )
...
Upgrade implot to fix deprecation warning for sprintf(), and upgrade
imgui docking branch to match.
2023-09-19 23:38:17 -07:00
Gold856
87ce1e3761
[build] Fix wpilibNewCommands CMake install ( #5671 )
2023-09-19 21:19:35 -07:00
Colin Finn
6ef94de9b5
[wpimath] Add tests for ArmFeedforward and ElevatorFeedforward ( #5663 )
2023-09-18 22:25:08 -07:00
Peter Johnson
c395b29fb4
[wpinet] Add WebSocket::TrySendFrames() ( #5607 )
...
This takes advantage of the underlying byte-level TryWrite() functionality to minimize blocking behavior and enable higher layers to do things smartly when the network blocks.
Also:
- Fix handling of control packets in middle of fragmented
- Clean up debugging features
2023-09-18 19:49:54 -07:00
Zhiquan Yeo
c4643ba047
[romi/xrp] Fix version typo in vendordep json ( #5664 )
2023-09-18 19:42:27 -07:00
Zhiquan Yeo
51dcb8b55a
[examples] Make Romi/XRP Examples use appropriate vendordeps ( #5665 )
2023-09-18 19:42:10 -07:00
Starlight220
daf7702007
[build] Test each example in a new environment ( #5662 )
...
In C++ each example is a separate source set, but in Java they were one source set and tested as one with the test task. Example-specific test tasks exist for Java, but they weren't used.
This modifies the test task to exclude the example tests, instead depending on each example's test task. The advantage of this is that each example is tested in a separate environment, so leftover state from one example isn't carried over.
2023-09-18 11:03:39 -07:00
Starlight220
e67df8c180
[wpilib] Const-qualify EncoderSim getters ( #5660 )
2023-09-18 08:18:18 -07:00
Peter Johnson
7be290147c
[wpiutil] Refactor SpanMatcher and TestPrinters from ntcore ( #5658 )
2023-09-18 00:11:36 -07:00
Ryan Blue
9fe258427a
[commands] Add proxy factory to Commands ( #5603 )
2023-09-17 20:49:02 -07:00
Joseph Eng
633c5a8a22
[commands] Add C++ Requirements struct ( #5504 )
2023-09-17 20:48:39 -07:00
Joseph Eng
b265a68eea
[commands] Add interruptor parameter to onCommandInterrupt callbacks ( #5461 )
2023-09-17 20:47:37 -07:00
Peter Johnson
e93c233d60
[ntcore] Compute Value memory size when creating value ( #5657 )
...
This avoids a later switch-based computation in NetworkLoopQueue.
2023-09-17 20:01:57 -07:00
Peter Johnson
5383589f99
[wpinet] uv::Request: Return shared_ptr from Release() ( #5656 )
...
Use this in Stream to allow the finish() callback to reuse the request.
2023-09-17 20:01:43 -07:00
Peter Johnson
40b552be4a
[wpinet] uv::Stream: Return error from TryWrite() ( #5655 )
2023-09-17 20:01:24 -07:00
Peter Johnson
202a75fe08
[wpinet] RequestImpl: Avoid infinite loop in shared_from_this() ( #5654 )
2023-09-17 20:01:10 -07:00
Peter Johnson
8896515eb7
[wpinet] uv::Buffer: Add bytes() accessor ( #5653 )
...
Also add uint8_t constructors.
2023-09-17 20:00:56 -07:00
Peter Johnson
ae59a2fba2
[wpinet] uv::Error: Change default error to 0 ( #5652 )
...
Was previously UV_UNKNOWN, which meant a default-constructed uv::Error
was actually an error.
2023-09-17 20:00:44 -07:00
Peter Johnson
3b51ecc35b
[wpiutil] SpanExtras: Add take_back and take_front ( #5651 )
...
Also allow sized spans as input (return is always dynamic size).
2023-09-17 20:00:31 -07:00
Tyler Veness
17f1062885
Replace std::snprintf() with wpi::format_to_n_c_str() ( #5645 )
...
fmtlib uses consteval format string processing, which makes it more
efficient than std::snprintf().
snprintf()s in libuv, mpack, processstarter, and wpigui were left alone.
processstarter uses stdlib only, and wpigui only depends on imgui.
fmt::format_to_n() is analogous to std::format_to_n()
(https://en.cppreference.com/w/cpp/utility/format/format_to_n )
wpi::format_to_n_c_str() is a wrapper which adds the trailing NUL.
2023-09-17 20:00:16 -07:00
Zhiquan Yeo
bb39900353
[romi/xrp] Add Romi and XRP Vendordeps ( #5644 )
2023-09-17 16:20:06 -07:00
autoantwort
cb99517838
[build] cmake: Use default install location on windows for dlls ( #5580 )
2023-09-17 16:17:32 -07:00
autoantwort
25b0622d4c
[build] Add Windows CMake CI ( #5516 )
2023-09-17 16:16:52 -07:00
Ryan Blue
34e7849605
Add warning to development builds instructions (NFC) ( #5646 )
...
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com >
2023-09-16 22:08:47 -07:00
Ryan Blue
e9e611c9d8
[cameraserver] Remove CameraServer.SetSize() ( #5650 )
2023-09-16 22:05:02 -07:00
Ryan Blue
94f58cc536
[wpilib] Remove Compressor.Enabled() ( #5649 )
...
Deprecated in #4147
2023-09-16 22:04:46 -07:00