mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[robotpy] Mirror most other subprojects (#8208)
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a This mirrors the robotpy files for the following projects: - apriltag - datalog - hal - ntcore - romiVendordep - wpilibc - wpimath - xrpVendordep This excludes cscore and the halsim wrappers for at this time. NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
defaults:
|
||||
subpackage: controller
|
||||
|
||||
extra_includes:
|
||||
- units/dimensionless.h
|
||||
|
||||
classes:
|
||||
frc::SimpleMotorFeedforward:
|
||||
force_type_casters:
|
||||
- units::meters_per_second
|
||||
- units::meters_per_second_squared
|
||||
- units::radians_per_second
|
||||
- units::radians_per_second_squared
|
||||
typealias:
|
||||
- typename frc::SimpleMotorFeedforward<Distance>::Velocity
|
||||
- typename frc::SimpleMotorFeedforward<Distance>::Acceleration
|
||||
- typename frc::SimpleMotorFeedforward<Distance>::kv_unit
|
||||
- typename frc::SimpleMotorFeedforward<Distance>::ka_unit
|
||||
template_params:
|
||||
- Distance
|
||||
methods:
|
||||
SimpleMotorFeedforward:
|
||||
overloads:
|
||||
'':
|
||||
units::volt_t, units::unit_t<kv_unit>, units::unit_t<ka_unit>:
|
||||
Calculate:
|
||||
overloads:
|
||||
units::unit_t<Velocity> [const]:
|
||||
units::unit_t<Velocity>, 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:
|
||||
# qualname: frc::SimpleMotorFeedforward
|
||||
# params:
|
||||
# - units::dimensionless::scalar
|
||||
|
||||
SimpleMotorFeedforwardMeters:
|
||||
qualname: frc::SimpleMotorFeedforward
|
||||
params:
|
||||
- units::meter
|
||||
|
||||
SimpleMotorFeedforwardRadians:
|
||||
qualname: frc::SimpleMotorFeedforward
|
||||
params:
|
||||
- units::radian
|
||||
Reference in New Issue
Block a user