diff --git a/subprojects/robotpy-wpilib/gen/Ultrasonic.yml b/subprojects/robotpy-wpilib/gen/Ultrasonic.yml index 45b69942..ca8cb0ea 100644 --- a/subprojects/robotpy-wpilib/gen/Ultrasonic.yml +++ b/subprojects/robotpy-wpilib/gen/Ultrasonic.yml @@ -29,3 +29,13 @@ classes: IsEnabled: SetEnabled: InitSendable: + +inline_code: | + cls_Ultrasonic + .def("getRangeMM", [](const frc::Ultrasonic &self) -> units::millimeter_t { + return self.GetRange(); + }) + .def("getRangeInches", [](const frc::Ultrasonic &self) -> units::inch_t { + return self.GetRange(); + }) + ;