diff --git a/subprojects/robotpy-wpilib/gen/simulation/DCMotorSim.yml b/subprojects/robotpy-wpilib/gen/simulation/DCMotorSim.yml index e2324b996..9122c6270 100644 --- a/subprojects/robotpy-wpilib/gen/simulation/DCMotorSim.yml +++ b/subprojects/robotpy-wpilib/gen/simulation/DCMotorSim.yml @@ -19,6 +19,17 @@ classes: GetAngularAcceleration: GetTorque: GetInputVoltage: - Gearbox: - Gearing: - J: + GetGearbox: + GetGearing: + GetJ: + +inline_code: | + cls_DCMotorSim + // java API compatibility + .def("getAngularPositionRotations", [](const DCMotorSim &self) { + return units::turn_t{self.GetAngularPosition()}; + }, py::doc("Returns the DC motor position in rotations")) + .def("getAngularVelocityRPM", [](const DCMotorSim &self) { + return units::revolutions_per_minute_t{self.GetAngularVelocity()}; + }, py::doc("Returns the DC motor velocity in revolutions per minute")) + ;