mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +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:
28
wpilibc/src/main/python/semiwrap/PWM.yml
Normal file
28
wpilibc/src/main/python/semiwrap/PWM.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
extra_includes:
|
||||
- wpi/sendable/SendableBuilder.h
|
||||
- frc/AddressableLED.h
|
||||
- wpi/SmallString.h
|
||||
|
||||
classes:
|
||||
frc::PWM:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<PWM>
|
||||
enums:
|
||||
OutputPeriod:
|
||||
methods:
|
||||
PWM:
|
||||
SetPulseTime:
|
||||
GetPulseTime:
|
||||
SetDisabled:
|
||||
GetChannel:
|
||||
InitSendable:
|
||||
SetOutputPeriod:
|
||||
SetSimDevice:
|
||||
|
||||
inline_code: |
|
||||
cls_PWM
|
||||
.def("__repr__", [](py::handle self) {
|
||||
py::object type_name = self.get_type().attr("__qualname__");
|
||||
int channel = self.cast<PWM&>().GetChannel();
|
||||
return py::str("<{} {}>").format(type_name, channel);
|
||||
});
|
||||
Reference in New Issue
Block a user