[copybara] mostrobotpy to allwpilib (#8503)

Resync with `mostrobotpy`

This mostly involves the big "ignore almost everything in the HAL
project" and some fixups for the Addressable LED classes.

Required two small hand fixes to get it building over here with bazel,
and with more compiler warnings on.

I also manually zeroed out the `repo_url` field in the toml files to
avoid unnecessary churn whenever it goes from a release build to a
development build. I already did this with `version` field in there, and
will do a follow up PR that updates the copybara script to do it
automatically.

---------

Co-authored-by: Default email <default@default.com>
This commit is contained in:
PJ Reiniger
2025-12-31 12:06:01 -05:00
committed by GitHub
parent bdc9391738
commit 40fb9ff562
233 changed files with 1796 additions and 4455 deletions

View File

@@ -0,0 +1,60 @@
classes:
wpi::math::ExponentialProfile:
force_type_casters:
- wpi::units::meters_per_second_t
template_params:
- Distance
- Input
methods:
ExponentialProfile:
Calculate:
CalculateInflectionPoint:
overloads:
const State&, const State& [const]:
TimeLeftUntil:
CalculateProfileTiming:
overloads:
const State&, const State& [const]:
wpi::math::ExponentialProfile::Constraints:
attributes:
maxInput:
A:
B:
methods:
Constraints:
overloads:
Input_t, A_t, B_t:
ignore: true
Input_t, kV_t, kA_t:
ignore: true
MaxVelocity:
inline_code: |
.def_static("fromStateSpace", [](Input_t maxInput, A_t a, B_t b) {
return typename wpi::math::ExponentialProfile<Distance, Input>::Constraints(maxInput, a, b);
}, py::arg("maxInput"), py::arg("a"), py::arg("b"))
.def_static("fromCharacteristics", [](Input_t maxInput, kV_t kv, kA_t ka) {
return typename wpi::math::ExponentialProfile<Distance, Input>::Constraints(maxInput, kv, ka);
}, py::arg("maxInput"), py::arg("kV"), py::arg("kA"))
wpi::math::ExponentialProfile::State:
force_no_default_constructor: true
attributes:
position:
velocity:
methods:
operator==:
inline_code: |
.def(py::init<Distance_t, Velocity_t>())
wpi::math::ExponentialProfile::ProfileTiming:
attributes:
inflectionTime:
totalTime:
methods:
IsFinished:
templates:
ExponentialProfileMeterVolts:
qualname: wpi::math::ExponentialProfile
params:
- wpi::units::meter
- wpi::units::volt