[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:
PJ Reiniger
2025-10-24 01:28:04 -04:00
committed by GitHub
parent 8992dcdc99
commit 44b9cc1398
545 changed files with 27293 additions and 38 deletions

View File

@@ -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