Files
allwpilib/wpimath/src/main/python/semiwrap/controls/SimpleMotorFeedforward.yml

58 lines
1.6 KiB
YAML
Raw Normal View History

defaults:
subpackage: controller
extra_includes:
2025-11-07 19:56:21 -05:00
- wpi/units/dimensionless.hpp
classes:
2025-11-07 20:00:05 -05:00
wpi::math::SimpleMotorFeedforward:
force_type_casters:
2025-11-07 20:00:05 -05:00
- wpi::units::meters_per_second
- wpi::units::meters_per_second_squared
- wpi::units::radians_per_second
- wpi::units::radians_per_second_squared
typealias:
2025-11-07 20:00:05 -05:00
- typename wpi::math::SimpleMotorFeedforward<Distance>::Velocity
- typename wpi::math::SimpleMotorFeedforward<Distance>::Acceleration
- typename wpi::math::SimpleMotorFeedforward<Distance>::kv_unit
- typename wpi::math::SimpleMotorFeedforward<Distance>::ka_unit
template_params:
- Distance
methods:
SimpleMotorFeedforward:
overloads:
'':
2025-11-07 20:00:05 -05:00
wpi::units::volt_t, wpi::units::unit_t<kv_unit>, wpi::units::unit_t<ka_unit>:
Calculate:
overloads:
2025-11-07 20:00:05 -05:00
wpi::units::unit_t<Velocity> [const]:
wpi::units::unit_t<Velocity>, wpi::units::unit_t<Velocity> [const]:
MaxAchievableVelocity:
MinAchievableVelocity:
MaxAchievableAcceleration:
MinAchievableAcceleration:
GetKs:
GetKv:
GetKa:
GetDt:
SetKs:
SetKv:
SetKa:
templates:
# Unfortunately this is broken because calculate requires an SI unit
# SimpleMotorFeedforward:
2025-11-07 20:00:05 -05:00
# qualname: wpi::math::SimpleMotorFeedforward
# params:
2025-11-07 20:00:05 -05:00
# - wpi::units::dimensionless::scalar
SimpleMotorFeedforwardMeters:
2025-11-07 20:00:05 -05:00
qualname: wpi::math::SimpleMotorFeedforward
params:
2025-11-07 20:00:05 -05:00
- wpi::units::meter
SimpleMotorFeedforwardRadians:
2025-11-07 20:00:05 -05:00
qualname: wpi::math::SimpleMotorFeedforward
params:
2025-11-07 20:00:05 -05:00
- wpi::units::radian