[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,42 @@
classes:
frc::sim::ElevatorSim:
typealias:
- frc::DCMotor
- template <int S, int I, int O> using LinearSystem = frc::LinearSystem<S, I, O>
- template <int I> using Vectord = frc::Vectord<I>
methods:
ElevatorSim:
overloads:
? const LinearSystem<2, 1, 2>&, const DCMotor&, units::meter_t, units::meter_t, bool, units::meter_t, const std::array<double, 2>&
: param_override:
measurementStdDevs:
default: std::array<double, 2>{0.0, 0.0}
? const DCMotor&, double, units::kilogram_t, units::meter_t, units::meter_t, units::meter_t, bool, units::meter_t, const std::array<double, 2>&
: param_override:
measurementStdDevs:
default: std::array<double, 2>{0.0}
? decltype(1_V/Velocity_t<Distance> (1)), decltype(1_V/Acceleration_t<Distance> (1)), const DCMotor&, units::meter_t, units::meter_t, bool, units::meter_t, const std::array<double, 2>&
: ignore: true
SetState:
WouldHitLowerLimit:
WouldHitUpperLimit:
HasHitLowerLimit:
HasHitUpperLimit:
GetPosition:
GetVelocity:
GetCurrentDraw:
SetInputVoltage:
UpdateX:
inline_code: |-
cls_ElevatorSim
.def("getPositionFeet", [](ElevatorSim * self) -> units::foot_t {
return self->GetPosition();
})
.def("getPositionInches", [](ElevatorSim * self) -> units::inch_t {
return self->GetPosition();
})
.def("getVelocityFps", [](ElevatorSim * self) -> units::feet_per_second_t {
return self->GetVelocity();
})
;