Skip to content

Commit cc43549

Browse files
committed
Merge branch 'main' into fix-trapezoid-profile
2 parents 1f074fb + c173fff commit cc43549

723 files changed

Lines changed: 12717 additions & 31660 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/pregen/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ runs:
2323
run: ./ntcore/generate_topics.py
2424
shell: bash
2525

26-
- name: Regenerate mrccomm
27-
run: ./hal/generate_nanopb.py
28-
shell: bash
29-
3026
- name: Regenerate imgui
3127
run: |
3228
./thirdparty/imgui_suite/generate_fonts.sh

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- os: windows-2022
2828
name: Windows
2929
container: ""
30-
flags: '--preset with-sccache -DCMAKE_BUILD_TYPE=Release -DWPILIB_WITH_EXAMPLES=ON -DWPILIB_USE_SYSTEM_FMTLIB=ON -DWPILIB_USE_SYSTEM_LIBUV=ON -DWPILIB_USE_SYSTEM_EIGEN=OFF -DCMAKE_TOOLCHAIN_FILE="$Env:RUNNER_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_INSTALL_OPTIONS=--clean-after-build -DVCPKG_TARGET_TRIPLET=x64-windows-release -DVCPKG_HOST_TRIPLET=x64-windows-release'
30+
flags: '--preset with-sccache -DCMAKE_BUILD_TYPE=Release -DWPILIB_WITH_EXAMPLES=ON -DWPILIB_USE_SYSTEM_LIBUV=ON -DWPILIB_USE_SYSTEM_EIGEN=OFF -DCMAKE_TOOLCHAIN_FILE="$Env:RUNNER_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_INSTALL_OPTIONS=--clean-after-build -DVCPKG_TARGET_TRIPLET=x64-windows-release -DVCPKG_HOST_TRIPLET=x64-windows-release'
3131

3232
name: "Build - ${{ matrix.name }}"
3333
runs-on: ${{ matrix.os }}

.github/workflows/upstream-utils.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ jobs:
6161
./eigen.py clone
6262
./eigen.py copy-src
6363
./eigen.py format-patch
64-
- name: Run fmt.py
65-
run: |
66-
cd upstream_utils
67-
./fmt.py clone
68-
./fmt.py copy-src
69-
./fmt.py format-patch
7064
- name: Run gcem.py
7165
run: |
7266
cd upstream_utils

BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ java_binary(
7070
write_source_files(
7171
name = "write_pregenerated_files",
7272
additional_update_targets = [
73-
"//hal:write_hal",
7473
"//ntcore:write_ntcore",
7574
"//wpilibc:write_wpilibc",
7675
"//wpilibcExamples:write_example_project_list",

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ option(WPILIB_WITH_BENCHMARK "Build the benchmark project" ON)
8585

8686
# Options for using a package manager (e.g., vcpkg) for certain dependencies.
8787
option(WPILIB_USE_SYSTEM_EIGEN "Use system Eigen" OFF)
88-
option(WPILIB_USE_SYSTEM_FMTLIB "Use system fmtlib" OFF)
8988
option(WPILIB_USE_SYSTEM_LIBUV "Use system libuv" OFF)
9089
option(WPILIB_USE_SYSTEM_SLEIPNIR "Use system Sleipnir" OFF)
9190
option(WPILIB_USE_LINKED_AVAHI "Use directly linked Avahi instead of loading at runtime" OFF)

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
6060
maven.install(
6161
name = "maven",
6262
artifacts = [
63-
"org.ejml:ejml-simple:0.44.0",
63+
"org.ejml:ejml-java9module:0.46.0",
6464
"io.avaje:avaje-jsonb:3.14",
6565
"io.avaje:avaje-jsonb-generator:3.14",
6666
"us.hebi.quickbuf:quickbuf-runtime:1.4",

ThirdPartyNotices.txt

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ LLVM wpiutil/src/main/native/thirdparty/llvm
2121
wpiutil/src/test/native/cpp/llvm/
2222
JSON for Classic C++ wpiutil/src/main/native/thirdparty/json
2323
libuv wpinet/src/main/native/thirdparty/libuv/
24-
fmtlib wpiutil/src/main/native/thirdparty/fmtlib/
2524
sigslot wpiutil/src/main/native/thirdparty/sigslot
2625
tcpsockets wpinet/src/main/native/thirdparty/tcpsockets
2726
MPack wpiutil/src/main/native/thirdparty/mpack
@@ -922,37 +921,6 @@ and/or modify it under the terms of the Do What the **** You Want
922921
to Public License, Version 2, as published by the WTFPL Task Force.
923922
See http://www.wtfpl.net/ for more details.
924923

925-
======
926-
fmtlib
927-
======
928-
Copyright (c) 2012 - present, Victor Zverovich and {fmt} contributors
929-
930-
Permission is hereby granted, free of charge, to any person obtaining
931-
a copy of this software and associated documentation files (the
932-
"Software"), to deal in the Software without restriction, including
933-
without limitation the rights to use, copy, modify, merge, publish,
934-
distribute, sublicense, and/or sell copies of the Software, and to
935-
permit persons to whom the Software is furnished to do so, subject to
936-
the following conditions:
937-
938-
The above copyright notice and this permission notice shall be
939-
included in all copies or substantial portions of the Software.
940-
941-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
942-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
943-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
944-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
945-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
946-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
947-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
948-
949-
--- Optional exception to the license ---
950-
951-
As an exception, if, as a result of your compiling your source code, portions
952-
of this Software are embedded into a machine-executable object form of such
953-
source code, you may redistribute such embedded portions in such object form
954-
without including the above copyright and permission notices.
955-
956924
==================
957925
V8 export-template
958926
==================

apriltag/robotpy_pybind_build_info.bzl

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apriltag/src/main/native/cpp/AprilTagFieldLayout.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "wpi/apriltag/AprilTagFieldLayout.hpp"
66

7+
#include <format>
78
#include <system_error>
89
#include <utility>
910
#include <vector>
@@ -19,7 +20,7 @@ using namespace wpi::apriltag;
1920
AprilTagFieldLayout::AprilTagFieldLayout(std::string_view path) {
2021
auto fileBuffer = wpi::util::MemoryBuffer::GetFile(path);
2122
if (!fileBuffer) {
22-
throw std::runtime_error(fmt::format("Cannot open file: {}", path));
23+
throw std::runtime_error(std::format("Cannot open file: {}", path));
2324
}
2425

2526
auto buf = fileBuffer.value()->GetCharBuffer();
@@ -97,7 +98,7 @@ void AprilTagFieldLayout::Serialize(std::string_view path) {
9798

9899
wpi::util::raw_fd_ostream output{path, error_code};
99100
if (error_code) {
100-
throw std::runtime_error(fmt::format("Cannot open file: {}", path));
101+
throw std::runtime_error(std::format("Cannot open file: {}", path));
101102
}
102103

103104
wpi::util::json json = *this;

apriltag/src/main/python/pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
build-backend = "hatchling.build"
33
requires = [
4-
"semiwrap~=0.3.0",
4+
"semiwrap~=0.6.0",
55
"hatch-meson~=0.1.2",
66
"hatch-robotpy~=0.2.1",
77
"hatchling",
@@ -58,6 +58,11 @@ scan_headers_ignore = [
5858
"tag36h11.h",
5959
]
6060

61+
[tool.semiwrap.name_transform]
62+
default = "snake_case"
63+
enum_value = "CAPS_CASE"
64+
known_words = ["3V3", "5V", "CAN", "CPU", "DS", "FMS", "FPGA", "HAL", "HTTP", "I2C", "IMU", "JNI", "JSON", "mDNS", "NT", "OpMode", "PCM", "PDH", "PDP", "PID", "POVs", "PWM", "RIO", "SPI", "URI", "URL", "USB", "VIn"]
65+
6166
[tool.semiwrap.extension_modules."robotpy_apriltag._apriltag"]
6267
name = "apriltag"
6368
wraps = ["robotpy-native-apriltag"]

0 commit comments

Comments
 (0)