mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -2,37 +2,37 @@ defaults:
|
||||
subpackage: constraint
|
||||
|
||||
classes:
|
||||
frc::SwerveDriveKinematicsConstraint:
|
||||
wpi::math::SwerveDriveKinematicsConstraint:
|
||||
template_params:
|
||||
- size_t NumModules
|
||||
typealias:
|
||||
- frc::TrajectoryConstraint::MinMax
|
||||
- wpi::math::TrajectoryConstraint::MinMax
|
||||
methods:
|
||||
SwerveDriveKinematicsConstraint:
|
||||
MaxVelocity:
|
||||
MinMaxAcceleration:
|
||||
template_inline_code: |
|
||||
cls_SwerveDriveKinematicsConstraint
|
||||
.def_static("fromFps", [](const frc::SwerveDriveKinematics<NumModules>& kinematics,
|
||||
units::feet_per_second_t maxSpeed) {
|
||||
return std::make_shared<frc::SwerveDriveKinematicsConstraint<NumModules>>(kinematics, maxSpeed);
|
||||
.def_static("fromFps", [](const wpi::math::SwerveDriveKinematics<NumModules>& kinematics,
|
||||
wpi::units::feet_per_second_t maxSpeed) {
|
||||
return std::make_shared<wpi::math::SwerveDriveKinematicsConstraint<NumModules>>(kinematics, maxSpeed);
|
||||
}, py::arg("kinematics"), py::arg("maxSpeed"))
|
||||
;
|
||||
|
||||
templates:
|
||||
SwerveDrive2KinematicsConstraint:
|
||||
qualname: frc::SwerveDriveKinematicsConstraint
|
||||
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
||||
params:
|
||||
- 2
|
||||
SwerveDrive3KinematicsConstraint:
|
||||
qualname: frc::SwerveDriveKinematicsConstraint
|
||||
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
||||
params:
|
||||
- 3
|
||||
SwerveDrive4KinematicsConstraint:
|
||||
qualname: frc::SwerveDriveKinematicsConstraint
|
||||
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
||||
params:
|
||||
- 4
|
||||
SwerveDrive6KinematicsConstraint:
|
||||
qualname: frc::SwerveDriveKinematicsConstraint
|
||||
qualname: wpi::math::SwerveDriveKinematicsConstraint
|
||||
params:
|
||||
- 6
|
||||
|
||||
Reference in New Issue
Block a user