From 49b765a3f354e18806955c1f7a151282608fc748 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Mon, 19 Feb 2024 00:52:14 -0500 Subject: [PATCH] allwpilib 2024.3.1 updates --- subprojects/pyntcore/gen/ntcore_cpp.yml | 12 ++++++++++-- .../robotpy-wpimath/gen/filter/LinearFilter.yml | 1 + .../robotpy-wpimath/gen/filter/MedianFilter.yml | 1 + .../robotpy-wpimath/gen/filter/SlewRateLimiter.yml | 1 + .../robotpy-wpimath/gen/geometry/Rotation2d.yml | 12 +++++++++--- .../robotpy-wpimath/gen/geometry/Translation2d.yml | 2 ++ .../robotpy-wpimath/gen/geometry/Translation3d.yml | 2 ++ 7 files changed, 26 insertions(+), 5 deletions(-) diff --git a/subprojects/pyntcore/gen/ntcore_cpp.yml b/subprojects/pyntcore/gen/ntcore_cpp.yml index d3e2e7f6..fe41a82b 100644 --- a/subprojects/pyntcore/gen/ntcore_cpp.yml +++ b/subprojects/pyntcore/gen/ntcore_cpp.yml @@ -216,6 +216,7 @@ classes: disableRemote: disableLocal: excludeSelf: + hidden: inline_code: | // autogenerated by gen-pubsub.py .def(py::init([]( @@ -228,7 +229,8 @@ classes: bool prefixMatch, bool disableRemote, bool disableLocal, - bool excludeSelf + bool excludeSelf, + bool hidden ) -> nt::PubSubOptions { return nt::PubSubOptions{ .pollStorage = pollStorage, @@ -240,7 +242,8 @@ classes: .prefixMatch = prefixMatch, .disableRemote = disableRemote, .disableLocal = disableLocal, - .excludeSelf = excludeSelf + .excludeSelf = excludeSelf, + .hidden = hidden }; }), py::kw_only(), @@ -254,6 +257,7 @@ classes: py::arg("disableRemote") = false, py::arg("disableLocal") = false, py::arg("excludeSelf") = false, + py::arg("hidden") = false, R"( @@ -279,6 +283,10 @@ classes: ReadQueue(). See also disableRemote. :param excludeSelf: For entries, don't queue (for ReadQueue) value updates for the entry's internal publisher. + :param hidden: For subscriptions, don't share the existence of the subscription with the + network. Note this means updates will not be received from the network + unless another subscription overlaps with this one, and the subscription + will not appear in metatopics. )" ) SubscriberOptions: diff --git a/subprojects/robotpy-wpimath/gen/filter/LinearFilter.yml b/subprojects/robotpy-wpimath/gen/filter/LinearFilter.yml index 880ac04b..7e4972e8 100644 --- a/subprojects/robotpy-wpimath/gen/filter/LinearFilter.yml +++ b/subprojects/robotpy-wpimath/gen/filter/LinearFilter.yml @@ -16,6 +16,7 @@ classes: MovingAverage: Reset: Calculate: + LastValue: BackwardFiniteDifference: ignore: true # TODO: template_impls FiniteDifference: diff --git a/subprojects/robotpy-wpimath/gen/filter/MedianFilter.yml b/subprojects/robotpy-wpimath/gen/filter/MedianFilter.yml index 812467a3..995d0fa3 100644 --- a/subprojects/robotpy-wpimath/gen/filter/MedianFilter.yml +++ b/subprojects/robotpy-wpimath/gen/filter/MedianFilter.yml @@ -8,6 +8,7 @@ classes: methods: MedianFilter: Calculate: + LastValue: Reset: templates: diff --git a/subprojects/robotpy-wpimath/gen/filter/SlewRateLimiter.yml b/subprojects/robotpy-wpimath/gen/filter/SlewRateLimiter.yml index 480d340a..0e1c5510 100644 --- a/subprojects/robotpy-wpimath/gen/filter/SlewRateLimiter.yml +++ b/subprojects/robotpy-wpimath/gen/filter/SlewRateLimiter.yml @@ -14,6 +14,7 @@ classes: Rate_t: Rate_t, Unit_t: Calculate: + LastValue: Reset: templates: diff --git a/subprojects/robotpy-wpimath/gen/geometry/Rotation2d.yml b/subprojects/robotpy-wpimath/gen/geometry/Rotation2d.yml index cfab9a4b..4b3be2fc 100644 --- a/subprojects/robotpy-wpimath/gen/geometry/Rotation2d.yml +++ b/subprojects/robotpy-wpimath/gen/geometry/Rotation2d.yml @@ -15,9 +15,15 @@ classes: Rotation2d: overloads: '[constexpr]': - units::radian_t [constexpr]: - units::degree_t [constexpr]: - ignore: true + auto [constexpr]: + doc: | + Constructs a Rotation2d with the given radian value. + :param value: The value of the angle in radians. + param_override: + value: + x_type: 'units::radian_t' + template_impls: + - ['units::radian_t'] double, double [constexpr]: RotateBy: Radians: diff --git a/subprojects/robotpy-wpimath/gen/geometry/Translation2d.yml b/subprojects/robotpy-wpimath/gen/geometry/Translation2d.yml index 21abb970..a91998db 100644 --- a/subprojects/robotpy-wpimath/gen/geometry/Translation2d.yml +++ b/subprojects/robotpy-wpimath/gen/geometry/Translation2d.yml @@ -2,6 +2,7 @@ extra_includes: - rpy/geometryToString.h - wpystruct.h + - pybind11/eigen.h functions: to_json: @@ -17,6 +18,7 @@ classes: '[constexpr]': units::meter_t, units::meter_t [constexpr]: units::meter_t, const Rotation2d& [constexpr]: + const Eigen::Vector2d&: Distance: X: Y: diff --git a/subprojects/robotpy-wpimath/gen/geometry/Translation3d.yml b/subprojects/robotpy-wpimath/gen/geometry/Translation3d.yml index 52608c0f..5ef0d393 100644 --- a/subprojects/robotpy-wpimath/gen/geometry/Translation3d.yml +++ b/subprojects/robotpy-wpimath/gen/geometry/Translation3d.yml @@ -2,6 +2,7 @@ extra_includes: - rpy/geometryToString.h - wpystruct.h + - pybind11/eigen.h functions: to_json: @@ -17,6 +18,7 @@ classes: '[constexpr]': units::meter_t, units::meter_t, units::meter_t [constexpr]: units::meter_t, const Rotation3d&: + const Eigen::Vector3d&: Distance: X: Y: