Files
allwpilib/wpilibc/src/main/python/semiwrap/simulation/SingleJointedArmSim.yml
PJ Reiniger 44b9cc1398 [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.
2025-10-23 22:28:04 -07:00

39 lines
1.3 KiB
YAML

classes:
frc::sim::SingleJointedArmSim:
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:
SingleJointedArmSim:
overloads:
? const LinearSystem<2, 1, 2>&, const DCMotor&, double, units::meter_t, units::radian_t, units::radian_t, bool, units::radian_t, const std::array<double, 2>&
: param_override:
measurementStdDevs:
default: std::array<double, 2>{0.0, 0.0}
? const DCMotor&, double, units::kilogram_square_meter_t, units::meter_t, units::radian_t, units::radian_t, bool, units::radian_t, const std::array<double, 2>&
: param_override:
measurementStdDevs:
default: std::array<double, 2>{0.0, 0.0}
SetState:
WouldHitLowerLimit:
WouldHitUpperLimit:
HasHitLowerLimit:
HasHitUpperLimit:
GetAngle:
GetVelocity:
GetCurrentDraw:
SetInputVoltage:
EstimateMOI:
UpdateX:
inline_code: |-
cls_SingleJointedArmSim
.def("getAngleDegrees", [](SingleJointedArmSim * self) -> units::degree_t {
return self->GetAngle();
})
.def("getVelocityDps", [](SingleJointedArmSim * self) -> units::degrees_per_second_t {
return self->GetVelocity();
})
;