mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +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,63 @@
|
||||
defaults:
|
||||
subpackage: trajectory
|
||||
|
||||
classes:
|
||||
frc::ExponentialProfile:
|
||||
force_type_casters:
|
||||
- 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]:
|
||||
frc::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) {
|
||||
return typename frc::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) {
|
||||
return typename frc::ExponentialProfile<Distance, Input>::Constraints(maxInput, kv, ka);
|
||||
}, py::arg("maxInput"), py::arg("kV"), py::arg("kA"))
|
||||
|
||||
frc::ExponentialProfile::State:
|
||||
force_no_default_constructor: true
|
||||
attributes:
|
||||
position:
|
||||
velocity:
|
||||
methods:
|
||||
operator==:
|
||||
inline_code: |
|
||||
.def(py::init<Distance_t, Velocity_t>())
|
||||
frc::ExponentialProfile::ProfileTiming:
|
||||
attributes:
|
||||
inflectionTime:
|
||||
totalTime:
|
||||
methods:
|
||||
IsFinished:
|
||||
|
||||
templates:
|
||||
ExponentialProfileMeterVolts:
|
||||
qualname: frc::ExponentialProfile
|
||||
params:
|
||||
- units::meter
|
||||
- units::volt
|
||||
Reference in New Issue
Block a user