Skip to content

Commit 49b765a

Browse files
committed
allwpilib 2024.3.1 updates
1 parent 95c2640 commit 49b765a

File tree

7 files changed

+26
-5
lines changed

7 files changed

+26
-5
lines changed

subprojects/pyntcore/gen/ntcore_cpp.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ classes:
216216
disableRemote:
217217
disableLocal:
218218
excludeSelf:
219+
hidden:
219220
inline_code: |
220221
// autogenerated by gen-pubsub.py
221222
.def(py::init([](
@@ -228,7 +229,8 @@ classes:
228229
bool prefixMatch,
229230
bool disableRemote,
230231
bool disableLocal,
231-
bool excludeSelf
232+
bool excludeSelf,
233+
bool hidden
232234
) -> nt::PubSubOptions {
233235
return nt::PubSubOptions{
234236
.pollStorage = pollStorage,
@@ -240,7 +242,8 @@ classes:
240242
.prefixMatch = prefixMatch,
241243
.disableRemote = disableRemote,
242244
.disableLocal = disableLocal,
243-
.excludeSelf = excludeSelf
245+
.excludeSelf = excludeSelf,
246+
.hidden = hidden
244247
};
245248
}),
246249
py::kw_only(),
@@ -254,6 +257,7 @@ classes:
254257
py::arg("disableRemote") = false,
255258
py::arg("disableLocal") = false,
256259
py::arg("excludeSelf") = false,
260+
py::arg("hidden") = false,
257261
R"(
258262
259263
@@ -279,6 +283,10 @@ classes:
279283
ReadQueue(). See also disableRemote.
280284
:param excludeSelf: For entries, don't queue (for ReadQueue) value updates for the entry's
281285
internal publisher.
286+
:param hidden: For subscriptions, don't share the existence of the subscription with the
287+
network. Note this means updates will not be received from the network
288+
unless another subscription overlaps with this one, and the subscription
289+
will not appear in metatopics.
282290
)"
283291
)
284292
SubscriberOptions:

subprojects/robotpy-wpimath/gen/filter/LinearFilter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ classes:
1616
MovingAverage:
1717
Reset:
1818
Calculate:
19+
LastValue:
1920
BackwardFiniteDifference:
2021
ignore: true # TODO: template_impls
2122
FiniteDifference:

subprojects/robotpy-wpimath/gen/filter/MedianFilter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ classes:
88
methods:
99
MedianFilter:
1010
Calculate:
11+
LastValue:
1112
Reset:
1213

1314
templates:

subprojects/robotpy-wpimath/gen/filter/SlewRateLimiter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classes:
1414
Rate_t:
1515
Rate_t, Unit_t:
1616
Calculate:
17+
LastValue:
1718
Reset:
1819

1920
templates:

subprojects/robotpy-wpimath/gen/geometry/Rotation2d.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ classes:
1515
Rotation2d:
1616
overloads:
1717
'[constexpr]':
18-
units::radian_t [constexpr]:
19-
units::degree_t [constexpr]:
20-
ignore: true
18+
auto [constexpr]:
19+
doc: |
20+
Constructs a Rotation2d with the given radian value.
21+
:param value: The value of the angle in radians.
22+
param_override:
23+
value:
24+
x_type: 'units::radian_t'
25+
template_impls:
26+
- ['units::radian_t']
2127
double, double [constexpr]:
2228
RotateBy:
2329
Radians:

subprojects/robotpy-wpimath/gen/geometry/Translation2d.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
extra_includes:
33
- rpy/geometryToString.h
44
- wpystruct.h
5+
- pybind11/eigen.h
56

67
functions:
78
to_json:
@@ -17,6 +18,7 @@ classes:
1718
'[constexpr]':
1819
units::meter_t, units::meter_t [constexpr]:
1920
units::meter_t, const Rotation2d& [constexpr]:
21+
const Eigen::Vector2d&:
2022
Distance:
2123
X:
2224
Y:

subprojects/robotpy-wpimath/gen/geometry/Translation3d.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
extra_includes:
33
- rpy/geometryToString.h
44
- wpystruct.h
5+
- pybind11/eigen.h
56

67
functions:
78
to_json:
@@ -17,6 +18,7 @@ classes:
1718
'[constexpr]':
1819
units::meter_t, units::meter_t, units::meter_t [constexpr]:
1920
units::meter_t, const Rotation3d&:
21+
const Eigen::Vector3d&:
2022
Distance:
2123
X:
2224
Y:

0 commit comments

Comments
 (0)