mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
20 lines
586 B
YAML
20 lines
586 B
YAML
|
|
defaults:
|
||
|
|
subpackage: constraint
|
||
|
|
|
||
|
|
classes:
|
||
|
|
frc::MecanumDriveKinematicsConstraint:
|
||
|
|
typealias:
|
||
|
|
- frc::TrajectoryConstraint::MinMax
|
||
|
|
methods:
|
||
|
|
MecanumDriveKinematicsConstraint:
|
||
|
|
MaxVelocity:
|
||
|
|
MinMaxAcceleration:
|
||
|
|
|
||
|
|
inline_code: |-
|
||
|
|
cls_MecanumDriveKinematicsConstraint
|
||
|
|
.def_static("fromFps", [](const frc::MecanumDriveKinematics& kinematics,
|
||
|
|
units::feet_per_second_t maxSpeed) {
|
||
|
|
return std::make_shared<frc::MecanumDriveKinematicsConstraint>(kinematics, maxSpeed);
|
||
|
|
}, py::arg("kinematics"), py::arg("maxSpeed"))
|
||
|
|
;
|