mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +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,38 @@
|
||||
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();
|
||||
})
|
||||
;
|
||||
Reference in New Issue
Block a user