Files
allwpilib/wpimath/src/main/python/semiwrap/ExponentialProfile.yml

61 lines
1.7 KiB
YAML
Raw Normal View History

classes:
2025-11-07 20:00:05 -05:00
wpi::math::ExponentialProfile:
force_type_casters:
2025-11-07 20:00:05 -05:00
- 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]:
2025-11-07 20:00:05 -05:00
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) {
2025-11-07 20:00:05 -05:00
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) {
2025-11-07 20:00:05 -05:00
return typename wpi::math::ExponentialProfile<Distance, Input>::Constraints(maxInput, kv, ka);
}, py::arg("maxInput"), py::arg("kV"), py::arg("kA"))
2025-11-07 20:00:05 -05:00
wpi::math::ExponentialProfile::State:
force_no_default_constructor: true
attributes:
position:
velocity:
methods:
operator==:
inline_code: |
.def(py::init<Distance_t, Velocity_t>())
2025-11-07 20:00:05 -05:00
wpi::math::ExponentialProfile::ProfileTiming:
attributes:
inflectionTime:
totalTime:
methods:
IsFinished:
templates:
ExponentialProfileMeterVolts:
2025-11-07 20:00:05 -05:00
qualname: wpi::math::ExponentialProfile
params:
2025-11-07 20:00:05 -05:00
- wpi::units::meter
- wpi::units::volt