We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c74b55 + 06e2b0f commit ecb8f64Copy full SHA for ecb8f64
subprojects/robotpy-wpilib/gen/simulation/DCMotorSim.yml
@@ -19,6 +19,17 @@ classes:
19
GetAngularAcceleration:
20
GetTorque:
21
GetInputVoltage:
22
- Gearbox:
23
- Gearing:
24
- J:
+ GetGearbox:
+ GetGearing:
+ GetJ:
25
+
26
+inline_code: |
27
+ cls_DCMotorSim
28
+ // java API compatibility
29
+ .def("getAngularPositionRotations", [](const DCMotorSim &self) {
30
+ return units::turn_t{self.GetAngularPosition()};
31
+ }, py::doc("Returns the DC motor position in rotations"))
32
+ .def("getAngularVelocityRPM", [](const DCMotorSim &self) {
33
+ return units::revolutions_per_minute_t{self.GetAngularVelocity()};
34
+ }, py::doc("Returns the DC motor velocity in revolutions per minute"))
35
+ ;
0 commit comments