mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +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:
42
wpilibc/src/main/python/semiwrap/simulation/ElevatorSim.yml
Normal file
42
wpilibc/src/main/python/semiwrap/simulation/ElevatorSim.yml
Normal 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();
|
||||
})
|
||||
;
|
||||
Reference in New Issue
Block a user