mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -2,11 +2,11 @@ extra_includes:
|
||||
- wpi/nt/NTSendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::ADXL345_I2C:
|
||||
wpi::ADXL345_I2C:
|
||||
constants:
|
||||
- frc::ADXL345_I2C::Range::kRange_2G
|
||||
- wpi::ADXL345_I2C::Range::kRange_2G
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<ADXL345_I2C>
|
||||
- wpi::util::SendableHelper<ADXL345_I2C>
|
||||
enums:
|
||||
Axes:
|
||||
Range:
|
||||
@@ -23,7 +23,7 @@ classes:
|
||||
GetAcceleration:
|
||||
GetAccelerations:
|
||||
InitSendable:
|
||||
frc::ADXL345_I2C::AllAxes:
|
||||
wpi::ADXL345_I2C::AllAxes:
|
||||
attributes:
|
||||
XAxis:
|
||||
YAxis:
|
||||
|
||||
@@ -3,7 +3,7 @@ functions:
|
||||
ignore: true
|
||||
|
||||
classes:
|
||||
frc::AddressableLED:
|
||||
wpi::AddressableLED:
|
||||
methods:
|
||||
AddressableLED:
|
||||
SetLength:
|
||||
@@ -19,7 +19,7 @@ classes:
|
||||
SetGlobalData:
|
||||
enums:
|
||||
ColorOrder:
|
||||
frc::AddressableLED::LEDData:
|
||||
wpi::AddressableLED::LEDData:
|
||||
force_no_trampoline: true
|
||||
base_qualnames:
|
||||
HAL_AddressableLEDData: ::HAL_AddressableLEDData
|
||||
|
||||
@@ -3,7 +3,7 @@ functions:
|
||||
ignore: true
|
||||
|
||||
classes:
|
||||
frc::Alert:
|
||||
wpi::Alert:
|
||||
enums:
|
||||
AlertType:
|
||||
methods:
|
||||
@@ -17,14 +17,14 @@ classes:
|
||||
GetText:
|
||||
GetType:
|
||||
inline_code: |
|
||||
.def("close", [](frc::Alert &self) {
|
||||
.def("close", [](wpi::Alert &self) {
|
||||
py::gil_scoped_release release;
|
||||
self.Set(false);
|
||||
}, py::doc("Disables the alert"))
|
||||
.def("__enter__", [](frc::Alert &self) -> frc::Alert& {
|
||||
.def("__enter__", [](wpi::Alert &self) -> wpi::Alert& {
|
||||
return self;
|
||||
})
|
||||
.def("__exit__", [](frc::Alert &self, py::args args) {
|
||||
.def("__exit__", [](wpi::Alert &self, py::args args) {
|
||||
py::gil_scoped_release release;
|
||||
self.Set(false);
|
||||
})
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::AnalogAccelerometer:
|
||||
wpi::AnalogAccelerometer:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<AnalogAccelerometer>
|
||||
- wpi::util::SendableHelper<AnalogAccelerometer>
|
||||
methods:
|
||||
AnalogAccelerometer:
|
||||
overloads:
|
||||
|
||||
@@ -3,9 +3,9 @@ extra_includes:
|
||||
- wpi/hardware/discrete/AnalogInput.hpp
|
||||
|
||||
classes:
|
||||
frc::AnalogEncoder:
|
||||
wpi::AnalogEncoder:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<AnalogEncoder>
|
||||
- wpi::util::SendableHelper<AnalogEncoder>
|
||||
methods:
|
||||
AnalogEncoder:
|
||||
overloads:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::AnalogInput:
|
||||
wpi::AnalogInput:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<AnalogInput>
|
||||
- wpi::util::SendableHelper<AnalogInput>
|
||||
methods:
|
||||
AnalogInput:
|
||||
GetValue:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::AnalogPotentiometer:
|
||||
wpi::AnalogPotentiometer:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<AnalogPotentiometer>
|
||||
- wpi::util::SendableHelper<AnalogPotentiometer>
|
||||
methods:
|
||||
AnalogPotentiometer:
|
||||
overloads:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::CAN:
|
||||
wpi::CAN:
|
||||
attributes:
|
||||
kTeamManufacturer:
|
||||
kTeamDeviceType:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- pybind11/operators.h
|
||||
|
||||
classes:
|
||||
frc::Color:
|
||||
wpi::Color:
|
||||
force_type_casters:
|
||||
- wpi::ct_string
|
||||
- wpi::util::ct_string
|
||||
attributes:
|
||||
kDenim:
|
||||
kFirstBlue:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- pybind11/operators.h
|
||||
|
||||
classes:
|
||||
frc::Color8Bit:
|
||||
wpi::Color8Bit:
|
||||
force_type_casters:
|
||||
- wpi::ct_string
|
||||
- wpi::util::ct_string
|
||||
attributes:
|
||||
red:
|
||||
access: readonly
|
||||
@@ -32,7 +32,7 @@ classes:
|
||||
|
||||
inline_code: |
|
||||
cls_Color8Bit
|
||||
.def("toColor", [](const Color8Bit &self) -> frc::Color {
|
||||
.def("toColor", [](const Color8Bit &self) -> wpi::Color {
|
||||
return self;
|
||||
})
|
||||
.def("__hash__", [](Color8Bit *self) -> size_t {
|
||||
|
||||
@@ -5,9 +5,9 @@ extra_includes:
|
||||
- wpi/hardware/pneumatic/DoubleSolenoid.hpp
|
||||
|
||||
classes:
|
||||
frc::Compressor:
|
||||
wpi::Compressor:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<Compressor>
|
||||
- wpi::util::SendableHelper<Compressor>
|
||||
methods:
|
||||
Compressor:
|
||||
overloads:
|
||||
|
||||
@@ -2,7 +2,7 @@ defaults:
|
||||
subpackage: interfaces
|
||||
|
||||
classes:
|
||||
frc::CounterBase:
|
||||
wpi::CounterBase:
|
||||
enums:
|
||||
EncodingType:
|
||||
methods:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::DSControlWord:
|
||||
wpi::DSControlWord:
|
||||
methods:
|
||||
DSControlWord:
|
||||
IsEnabled:
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- wpi/datalog/DataLog.hpp
|
||||
|
||||
classes:
|
||||
frc::DataLogManager:
|
||||
wpi::DataLogManager:
|
||||
methods:
|
||||
Start:
|
||||
Stop:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::DigitalInput:
|
||||
wpi::DigitalInput:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<DigitalInput>
|
||||
- wpi::util::SendableHelper<DigitalInput>
|
||||
methods:
|
||||
DigitalInput:
|
||||
Get:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::DigitalOutput:
|
||||
wpi::DigitalOutput:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<DigitalOutput>
|
||||
- wpi::util::SendableHelper<DigitalOutput>
|
||||
methods:
|
||||
DigitalOutput:
|
||||
Set:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::DoubleSolenoid:
|
||||
wpi::DoubleSolenoid:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<DoubleSolenoid>
|
||||
- wpi::util::SendableHelper<DoubleSolenoid>
|
||||
enums:
|
||||
Value:
|
||||
methods:
|
||||
|
||||
@@ -3,7 +3,7 @@ extra_includes:
|
||||
- wpi/datalog/DataLog.hpp
|
||||
|
||||
classes:
|
||||
frc::DriverStation:
|
||||
wpi::DriverStation:
|
||||
attributes:
|
||||
kJoystickPorts:
|
||||
enums:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::internal::DriverStationModeThread:
|
||||
wpi::internal::DriverStationModeThread:
|
||||
rename: _DriverStationModeThread
|
||||
methods:
|
||||
DriverStationModeThread:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::DutyCycle:
|
||||
wpi::DutyCycle:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<DutyCycle>
|
||||
- wpi::util::SendableHelper<DutyCycle>
|
||||
methods:
|
||||
DutyCycle:
|
||||
overloads:
|
||||
|
||||
@@ -3,9 +3,9 @@ extra_includes:
|
||||
- wpi/hardware/rotation/DutyCycle.hpp
|
||||
|
||||
classes:
|
||||
frc::DutyCycleEncoder:
|
||||
wpi::DutyCycleEncoder:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<DutyCycleEncoder>
|
||||
- wpi::util::SendableHelper<DutyCycleEncoder>
|
||||
methods:
|
||||
DutyCycleEncoder:
|
||||
overloads:
|
||||
|
||||
@@ -2,18 +2,18 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::Encoder:
|
||||
wpi::Encoder:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<Encoder>
|
||||
- wpi::util::SendableHelper<Encoder>
|
||||
typealias:
|
||||
- frc::Encoder::EncodingType
|
||||
- wpi::Encoder::EncodingType
|
||||
methods:
|
||||
Encoder:
|
||||
overloads:
|
||||
int, int, bool, EncodingType:
|
||||
param_override:
|
||||
encodingType:
|
||||
default: frc::Encoder::EncodingType::k4X
|
||||
default: wpi::Encoder::EncodingType::k4X
|
||||
DigitalSource*, DigitalSource*, bool, EncodingType:
|
||||
ignore: true
|
||||
DigitalSource&, DigitalSource&, bool, EncodingType:
|
||||
@@ -21,7 +21,7 @@ classes:
|
||||
std::shared_ptr<DigitalSource>, std::shared_ptr<DigitalSource>, bool, EncodingType:
|
||||
param_override:
|
||||
encodingType:
|
||||
default: frc::Encoder::EncodingType::k4X
|
||||
default: wpi::Encoder::EncodingType::k4X
|
||||
Get:
|
||||
Reset:
|
||||
GetPeriod:
|
||||
|
||||
@@ -9,5 +9,5 @@ functions:
|
||||
MakeError:
|
||||
ignore: true
|
||||
classes:
|
||||
frc::RuntimeError:
|
||||
wpi::RuntimeError:
|
||||
ignore: true
|
||||
|
||||
@@ -3,7 +3,7 @@ extra_includes:
|
||||
- wpi/ExpansionHubServo.hpp
|
||||
|
||||
classes:
|
||||
frc::ExpansionHub:
|
||||
wpi::ExpansionHub:
|
||||
attributes:
|
||||
NumUsbPorts:
|
||||
NumServoPorts:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::ExpansionHubMotor:
|
||||
wpi::ExpansionHubMotor:
|
||||
methods:
|
||||
ExpansionHubMotor:
|
||||
SetPercentagePower:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::ExpansionHubPidConstants:
|
||||
wpi::ExpansionHubPidConstants:
|
||||
methods:
|
||||
SetPID:
|
||||
SetFF:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::ExpansionHubServo:
|
||||
wpi::ExpansionHubServo:
|
||||
methods:
|
||||
ExpansionHubServo:
|
||||
Set:
|
||||
|
||||
@@ -2,15 +2,15 @@ extra_includes:
|
||||
- wpi/nt/NTSendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::Field2d:
|
||||
wpi::Field2d:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<Field2d>
|
||||
- wpi::util::SendableHelper<Field2d>
|
||||
methods:
|
||||
Field2d:
|
||||
SetRobotPose:
|
||||
overloads:
|
||||
const Pose2d&:
|
||||
units::meter_t, units::meter_t, Rotation2d:
|
||||
const wpi::math::Pose2d&:
|
||||
wpi::units::meter_t, wpi::units::meter_t, wpi::math::Rotation2d:
|
||||
GetRobotPose:
|
||||
GetObject:
|
||||
return_value_policy: reference_internal
|
||||
|
||||
@@ -2,24 +2,24 @@ extra_includes:
|
||||
- wpi/math/trajectory/Trajectory.hpp
|
||||
|
||||
classes:
|
||||
frc::FieldObject2d:
|
||||
wpi::FieldObject2d:
|
||||
nodelete: true
|
||||
methods:
|
||||
FieldObject2d:
|
||||
ignore: true
|
||||
SetPose:
|
||||
overloads:
|
||||
const Pose2d&:
|
||||
units::meter_t, units::meter_t, Rotation2d:
|
||||
const wpi::math::Pose2d&:
|
||||
wpi::units::meter_t, wpi::units::meter_t, wpi::math::Rotation2d:
|
||||
GetPose:
|
||||
SetPoses:
|
||||
overloads:
|
||||
std::span<const Pose2d>:
|
||||
std::initializer_list<Pose2d>:
|
||||
std::span<const wpi::math::Pose2d>:
|
||||
std::initializer_list<wpi::math::Pose2d>:
|
||||
ignore: true
|
||||
SetTrajectory:
|
||||
GetPoses:
|
||||
overloads:
|
||||
'[const]':
|
||||
wpi::SmallVectorImpl<Pose2d>& [const]:
|
||||
wpi::util::SmallVectorImpl<wpi::math::Pose2d>& [const]:
|
||||
ignore: true
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
classes:
|
||||
frc::Gamepad:
|
||||
wpi::Gamepad:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<Gamepad>
|
||||
- wpi::util::SendableHelper<Gamepad>
|
||||
methods:
|
||||
Gamepad:
|
||||
GetLeftX:
|
||||
@@ -123,7 +123,7 @@ classes:
|
||||
GetMisc6ButtonReleased:
|
||||
Misc6:
|
||||
InitSendable:
|
||||
frc::Gamepad::Button:
|
||||
wpi::Gamepad::Button:
|
||||
attributes:
|
||||
kSouthFace:
|
||||
kEastFace:
|
||||
@@ -151,7 +151,7 @@ classes:
|
||||
kMisc4:
|
||||
kMisc5:
|
||||
kMisc6:
|
||||
frc::Gamepad::Axis:
|
||||
wpi::Gamepad::Axis:
|
||||
attributes:
|
||||
kLeftX:
|
||||
kLeftY:
|
||||
|
||||
@@ -6,7 +6,7 @@ extra_includes:
|
||||
- wpi/event/BooleanEvent.hpp
|
||||
|
||||
classes:
|
||||
frc::GenericHID:
|
||||
wpi::GenericHID:
|
||||
enums:
|
||||
RumbleType:
|
||||
HIDType:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::I2C:
|
||||
wpi::I2C:
|
||||
enums:
|
||||
Port:
|
||||
methods:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::IterativeRobotBase:
|
||||
wpi::IterativeRobotBase:
|
||||
methods:
|
||||
DriverStationConnected:
|
||||
DisabledInit:
|
||||
@@ -15,7 +15,7 @@ classes:
|
||||
overloads:
|
||||
double:
|
||||
ignore: true
|
||||
units::second_t:
|
||||
wpi::units::second_t:
|
||||
LoopFunc:
|
||||
SimulationInit:
|
||||
internal: true
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- wpi/driverstation/DriverStation.hpp
|
||||
|
||||
classes:
|
||||
frc::Joystick:
|
||||
wpi::Joystick:
|
||||
attributes:
|
||||
kDefaultXChannel:
|
||||
kDefaultYChannel:
|
||||
@@ -41,6 +41,6 @@ classes:
|
||||
GetDirection:
|
||||
rename: getDirectionRadians
|
||||
inline_code: |
|
||||
.def("getDirectionDegrees", [](const Joystick &self) -> units::degree_t {
|
||||
.def("getDirectionDegrees", [](const Joystick &self) -> wpi::units::degree_t {
|
||||
return self.GetDirection();
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
classes:
|
||||
frc::Koors40:
|
||||
wpi::Koors40:
|
||||
methods:
|
||||
Koors40:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::LEDPattern:
|
||||
wpi::LEDPattern:
|
||||
enums:
|
||||
GradientType:
|
||||
methods:
|
||||
@@ -7,17 +7,17 @@ classes:
|
||||
LEDPattern:
|
||||
ApplyTo:
|
||||
overloads:
|
||||
std::span<frc::AddressableLED::LEDData> [const]:
|
||||
LEDReader, std::function<void (int, frc::Color)> [const]:
|
||||
std::span<frc::AddressableLED::LEDData>, std::function<void (int, frc::Color)> [const]:
|
||||
std::span<wpi::AddressableLED::LEDData> [const]:
|
||||
LEDReader, std::function<void (int, wpi::Color)> [const]:
|
||||
std::span<wpi::AddressableLED::LEDData>, std::function<void (int, wpi::Color)> [const]:
|
||||
Reversed:
|
||||
OffsetBy:
|
||||
ScrollAtRelativeSpeed:
|
||||
ScrollAtAbsoluteSpeed:
|
||||
Blink:
|
||||
overloads:
|
||||
units::second_t, units::second_t:
|
||||
units::second_t:
|
||||
wpi::units::second_t, wpi::units::second_t:
|
||||
wpi::units::second_t:
|
||||
SynchronizedBlink:
|
||||
Breathe:
|
||||
OverlayOn:
|
||||
@@ -38,7 +38,7 @@ classes:
|
||||
ignore: true
|
||||
Rainbow:
|
||||
MapIndex:
|
||||
frc::LEDPattern::LEDReader:
|
||||
wpi::LEDPattern::LEDReader:
|
||||
methods:
|
||||
LEDReader:
|
||||
size:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::Mechanism2d:
|
||||
wpi::Mechanism2d:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<Mechanism2d>
|
||||
- wpi::util::SendableHelper<Mechanism2d>
|
||||
methods:
|
||||
Mechanism2d:
|
||||
GetRoot:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::MechanismLigament2d:
|
||||
wpi::MechanismLigament2d:
|
||||
methods:
|
||||
MechanismLigament2d:
|
||||
ignore: true
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/smartdashboard/MechanismLigament2d.hpp
|
||||
|
||||
classes:
|
||||
frc::MechanismObject2d:
|
||||
wpi::MechanismObject2d:
|
||||
force_type_casters:
|
||||
- units::degree_t
|
||||
- wpi::units::degree_t
|
||||
attributes:
|
||||
m_mutex:
|
||||
ignore: true
|
||||
@@ -20,12 +20,12 @@ classes:
|
||||
inline_code: |-
|
||||
cls_MechanismObject2d
|
||||
.def("appendLigament", [](MechanismObject2d *self,
|
||||
std::string_view name, double length, units::degree_t angle,
|
||||
double lineWidth, const frc::Color8Bit& color) {
|
||||
std::string_view name, double length, wpi::units::degree_t angle,
|
||||
double lineWidth, const wpi::Color8Bit& color) {
|
||||
return self->Append<MechanismLigament2d>(name, length, angle, lineWidth, color);
|
||||
},
|
||||
py::arg("name"), py::arg("length"), py::arg("angle"),
|
||||
py::arg("lineWidth") = 6, py::arg("color") = frc::Color8Bit{235, 137, 52},
|
||||
py::arg("lineWidth") = 6, py::arg("color") = wpi::Color8Bit{235, 137, 52},
|
||||
"Append a ligament node",
|
||||
py::return_value_policy::reference_internal)
|
||||
;
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/smartdashboard/MechanismLigament2d.hpp
|
||||
|
||||
classes:
|
||||
frc::MechanismRoot2d:
|
||||
wpi::MechanismRoot2d:
|
||||
force_type_casters:
|
||||
- units::degree_t
|
||||
- wpi::units::degree_t
|
||||
methods:
|
||||
MechanismRoot2d:
|
||||
ignore: true
|
||||
@@ -19,12 +19,12 @@ inline_code: |-
|
||||
cls_MechanismRoot2d
|
||||
.def("getName", [](MechanismRoot2d *self) { return self->GetName(); }, release_gil())
|
||||
.def("appendLigament", [](MechanismRoot2d *self,
|
||||
std::string_view name, double length, units::degree_t angle,
|
||||
double lineWidth, const frc::Color8Bit& color) {
|
||||
std::string_view name, double length, wpi::units::degree_t angle,
|
||||
double lineWidth, const wpi::Color8Bit& color) {
|
||||
return self->Append<MechanismLigament2d>(name, length, angle, lineWidth, color);
|
||||
},
|
||||
py::arg("name"), py::arg("length"), py::arg("angle"),
|
||||
py::arg("lineWidth") = 6, py::arg("color") = frc::Color8Bit{235, 137, 52},
|
||||
py::arg("lineWidth") = 6, py::arg("color") = wpi::Color8Bit{235, 137, 52},
|
||||
release_gil(), "Append a ligament node",
|
||||
py::return_value_policy::reference_internal)
|
||||
;
|
||||
|
||||
@@ -2,7 +2,7 @@ defaults:
|
||||
subpackage: interfaces
|
||||
|
||||
classes:
|
||||
frc::MotorController:
|
||||
wpi::MotorController:
|
||||
methods:
|
||||
Set:
|
||||
SetVoltage:
|
||||
|
||||
@@ -3,10 +3,10 @@ extra_includes:
|
||||
- pybind11/stl.h
|
||||
|
||||
classes:
|
||||
frc::PyMotorControllerGroup:
|
||||
wpi::PyMotorControllerGroup:
|
||||
rename: MotorControllerGroup
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<PyMotorControllerGroup>
|
||||
- wpi::util::SendableHelper<PyMotorControllerGroup>
|
||||
methods:
|
||||
PyMotorControllerGroup:
|
||||
cpp_code: |
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- wpi/util/SmallString.hpp
|
||||
|
||||
classes:
|
||||
frc::MotorSafety:
|
||||
wpi::MotorSafety:
|
||||
methods:
|
||||
MotorSafety:
|
||||
Feed:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::PyNotifier:
|
||||
wpi::PyNotifier:
|
||||
rename: Notifier
|
||||
methods:
|
||||
PyNotifier:
|
||||
@@ -11,11 +11,11 @@ classes:
|
||||
overloads:
|
||||
double:
|
||||
ignore: true
|
||||
units::second_t:
|
||||
wpi::units::second_t:
|
||||
StartPeriodic:
|
||||
overloads:
|
||||
double:
|
||||
ignore: true
|
||||
units::second_t:
|
||||
wpi::units::second_t:
|
||||
Stop:
|
||||
SetHALThreadPriority:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::OnboardIMU:
|
||||
wpi::OnboardIMU:
|
||||
enums:
|
||||
MountOrientation:
|
||||
methods:
|
||||
|
||||
@@ -3,9 +3,9 @@ extra_includes:
|
||||
- wpi/event/BooleanEvent.hpp
|
||||
|
||||
classes:
|
||||
frc::PS4Controller:
|
||||
wpi::PS4Controller:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<PS4Controller>
|
||||
- wpi::util::SendableHelper<PS4Controller>
|
||||
methods:
|
||||
PS4Controller:
|
||||
GetLeftX:
|
||||
@@ -74,7 +74,7 @@ classes:
|
||||
GetTouchpadButtonPressed:
|
||||
GetTouchpadButtonReleased:
|
||||
InitSendable:
|
||||
frc::PS4Controller::Button:
|
||||
wpi::PS4Controller::Button:
|
||||
attributes:
|
||||
kSquare:
|
||||
kCross:
|
||||
@@ -90,7 +90,7 @@ classes:
|
||||
kR3:
|
||||
kPS:
|
||||
kTouchpad:
|
||||
frc::PS4Controller::Axis:
|
||||
wpi::PS4Controller::Axis:
|
||||
attributes:
|
||||
kLeftX:
|
||||
kLeftY:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PS5Controller:
|
||||
wpi::PS5Controller:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<PS5Controller>
|
||||
- wpi::util::SendableHelper<PS5Controller>
|
||||
methods:
|
||||
PS5Controller:
|
||||
GetLeftX:
|
||||
@@ -73,7 +73,7 @@ classes:
|
||||
GetTouchpadButtonPressed:
|
||||
GetTouchpadButtonReleased:
|
||||
InitSendable:
|
||||
frc::PS5Controller::Button:
|
||||
wpi::PS5Controller::Button:
|
||||
attributes:
|
||||
kSquare:
|
||||
kCross:
|
||||
@@ -89,7 +89,7 @@ classes:
|
||||
kR3:
|
||||
kPS:
|
||||
kTouchpad:
|
||||
frc::PS5Controller::Axis:
|
||||
wpi::PS5Controller::Axis:
|
||||
attributes:
|
||||
kLeftX:
|
||||
kLeftY:
|
||||
|
||||
@@ -4,9 +4,9 @@ extra_includes:
|
||||
- wpi/util/SmallString.hpp
|
||||
|
||||
classes:
|
||||
frc::PWM:
|
||||
wpi::PWM:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<PWM>
|
||||
- wpi::util::SendableHelper<PWM>
|
||||
enums:
|
||||
OutputPeriod:
|
||||
methods:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PWMMotorController:
|
||||
wpi::PWMMotorController:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<PWMMotorController>
|
||||
- wpi::util::SendableHelper<PWMMotorController>
|
||||
attributes:
|
||||
m_pwm:
|
||||
methods:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
classes:
|
||||
frc::PWMSparkFlex:
|
||||
wpi::PWMSparkFlex:
|
||||
methods:
|
||||
PWMSparkFlex:
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PWMSparkMax:
|
||||
wpi::PWMSparkMax:
|
||||
methods:
|
||||
PWMSparkMax:
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PWMTalonFX:
|
||||
wpi::PWMTalonFX:
|
||||
methods:
|
||||
PWMTalonFX:
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PWMTalonSRX:
|
||||
wpi::PWMTalonSRX:
|
||||
methods:
|
||||
PWMTalonSRX:
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PWMVenom:
|
||||
wpi::PWMVenom:
|
||||
methods:
|
||||
PWMVenom:
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PWMVictorSPX:
|
||||
wpi::PWMVictorSPX:
|
||||
methods:
|
||||
PWMVictorSPX:
|
||||
|
||||
@@ -5,7 +5,7 @@ extra_includes:
|
||||
- wpi/hardware/pneumatic/DoubleSolenoid.hpp
|
||||
|
||||
classes:
|
||||
frc::PneumaticHub:
|
||||
wpi::PneumaticHub:
|
||||
methods:
|
||||
PneumaticHub:
|
||||
overloads:
|
||||
@@ -44,7 +44,7 @@ classes:
|
||||
GetAnalogVoltage:
|
||||
GetPressure:
|
||||
ReportUsage:
|
||||
frc::PneumaticHub::Version:
|
||||
wpi::PneumaticHub::Version:
|
||||
attributes:
|
||||
FirmwareMajor:
|
||||
FirmwareMinor:
|
||||
@@ -52,7 +52,7 @@ classes:
|
||||
HardwareMinor:
|
||||
HardwareMajor:
|
||||
UniqueId:
|
||||
frc::PneumaticHub::Faults:
|
||||
wpi::PneumaticHub::Faults:
|
||||
attributes:
|
||||
Channel0Fault:
|
||||
Channel1Fault:
|
||||
@@ -78,7 +78,7 @@ classes:
|
||||
HardwareFault:
|
||||
methods:
|
||||
GetChannelFault:
|
||||
frc::PneumaticHub::StickyFaults:
|
||||
wpi::PneumaticHub::StickyFaults:
|
||||
attributes:
|
||||
CompressorOverCurrent:
|
||||
CompressorOpen:
|
||||
|
||||
@@ -6,7 +6,7 @@ extra_includes:
|
||||
|
||||
|
||||
classes:
|
||||
frc::PneumaticsBase:
|
||||
wpi::PneumaticsBase:
|
||||
methods:
|
||||
GetCompressor:
|
||||
GetPressureSwitch:
|
||||
|
||||
@@ -5,7 +5,7 @@ extra_includes:
|
||||
- wpi/hardware/pneumatic/DoubleSolenoid.hpp
|
||||
|
||||
classes:
|
||||
frc::PneumaticsControlModule:
|
||||
wpi::PneumaticsControlModule:
|
||||
methods:
|
||||
PneumaticsControlModule:
|
||||
overloads:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::PowerDistribution:
|
||||
wpi::PowerDistribution:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<PowerDistribution>
|
||||
- wpi::util::SendableHelper<PowerDistribution>
|
||||
attributes:
|
||||
kDefaultModule:
|
||||
enums:
|
||||
@@ -32,7 +32,7 @@ classes:
|
||||
GetNumChannels:
|
||||
GetAllCurrents:
|
||||
InitSendable:
|
||||
frc::PowerDistribution::Version:
|
||||
wpi::PowerDistribution::Version:
|
||||
attributes:
|
||||
FirmwareMajor:
|
||||
FirmwareMinor:
|
||||
@@ -40,7 +40,7 @@ classes:
|
||||
HardwareMinor:
|
||||
HardwareMajor:
|
||||
UniqueId:
|
||||
frc::PowerDistribution::Faults:
|
||||
wpi::PowerDistribution::Faults:
|
||||
attributes:
|
||||
Channel0BreakerFault:
|
||||
Channel1BreakerFault:
|
||||
@@ -71,7 +71,7 @@ classes:
|
||||
HardwareFault:
|
||||
methods:
|
||||
GetBreakerFault:
|
||||
frc::PowerDistribution::StickyFaults:
|
||||
wpi::PowerDistribution::StickyFaults:
|
||||
attributes:
|
||||
Channel0BreakerFault:
|
||||
Channel1BreakerFault:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::Preferences:
|
||||
wpi::Preferences:
|
||||
methods:
|
||||
GetKeys:
|
||||
GetString:
|
||||
|
||||
@@ -13,7 +13,7 @@ functions:
|
||||
ResetMotorSafety:
|
||||
ignore: true
|
||||
classes:
|
||||
frc::RobotBase:
|
||||
wpi::RobotBase:
|
||||
attributes:
|
||||
m_threadId:
|
||||
ignore: true
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
classes:
|
||||
frc::CANStatus:
|
||||
wpi::CANStatus:
|
||||
attributes:
|
||||
percentBusUtilization:
|
||||
busOffCount:
|
||||
txFullCount:
|
||||
receiveErrorCount:
|
||||
transmitErrorCount:
|
||||
frc::RobotController:
|
||||
wpi::RobotController:
|
||||
nodelete: true
|
||||
methods:
|
||||
GetSerialNumber:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::RobotState:
|
||||
wpi::RobotState:
|
||||
nodelete: true
|
||||
methods:
|
||||
IsDisabled:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::SendableBuilderImpl:
|
||||
wpi::SendableBuilderImpl:
|
||||
methods:
|
||||
SendableBuilderImpl:
|
||||
SetTable:
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- gilsafe_object.h
|
||||
|
||||
classes:
|
||||
frc::SendableChooser:
|
||||
wpi::SendableChooser:
|
||||
template_params:
|
||||
- T
|
||||
methods:
|
||||
@@ -12,7 +12,7 @@ classes:
|
||||
GetSelected:
|
||||
# weirdness because return type
|
||||
cpp_code: |
|
||||
[](frc::SendableChooser<T> * __that) -> py::object {
|
||||
[](wpi::SendableChooser<T> * __that) -> py::object {
|
||||
auto v = __that->GetSelected();
|
||||
if (!v) {
|
||||
return py::none();
|
||||
@@ -22,7 +22,7 @@ classes:
|
||||
OnChange:
|
||||
# more weirdness
|
||||
cpp_code: |
|
||||
[](frc::SendableChooser<T> *self, std::function<void(T)> fn) {
|
||||
[](wpi::SendableChooser<T> *self, std::function<void(T)> fn) {
|
||||
self->OnChange([fn](T v) {
|
||||
py::gil_scoped_acquire lock;
|
||||
if (v) {
|
||||
@@ -37,6 +37,6 @@ classes:
|
||||
|
||||
templates:
|
||||
SendableChooser:
|
||||
qualname: frc::SendableChooser
|
||||
qualname: wpi::SendableChooser
|
||||
params:
|
||||
- semiwrap::gilsafe_object
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::SendableChooserBase:
|
||||
wpi::SendableChooserBase:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<SendableChooserBase>
|
||||
- wpi::util::SendableHelper<SendableChooserBase>
|
||||
attributes:
|
||||
kDefault:
|
||||
kOptions:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::SensorUtil:
|
||||
wpi::SensorUtil:
|
||||
nodelete: true
|
||||
methods:
|
||||
CheckDigitalChannel:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::SerialPort:
|
||||
wpi::SerialPort:
|
||||
enums:
|
||||
Parity:
|
||||
StopBits:
|
||||
@@ -12,19 +12,19 @@ classes:
|
||||
int, Port, int, Parity, StopBits:
|
||||
param_override:
|
||||
port:
|
||||
default: frc::SerialPort::Port::kOnboard
|
||||
default: wpi::SerialPort::Port::kOnboard
|
||||
parity:
|
||||
default: frc::SerialPort::Parity::kParity_None
|
||||
default: wpi::SerialPort::Parity::kParity_None
|
||||
stopBits:
|
||||
default: frc::SerialPort::StopBits::kStopBits_One
|
||||
default: wpi::SerialPort::StopBits::kStopBits_One
|
||||
int, std::string_view, Port, int, Parity, StopBits:
|
||||
param_override:
|
||||
port:
|
||||
default: frc::SerialPort::Port::kOnboard
|
||||
default: wpi::SerialPort::Port::kOnboard
|
||||
parity:
|
||||
default: frc::SerialPort::Parity::kParity_None
|
||||
default: wpi::SerialPort::Parity::kParity_None
|
||||
stopBits:
|
||||
default: frc::SerialPort::StopBits::kStopBits_One
|
||||
default: wpi::SerialPort::StopBits::kStopBits_One
|
||||
SetFlowControl:
|
||||
EnableTermination:
|
||||
param_override:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::SharpIR:
|
||||
wpi::SharpIR:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<SharpIR>
|
||||
- wpi::util::SendableHelper<SharpIR>
|
||||
methods:
|
||||
GP2Y0A02YK0F:
|
||||
GP2Y0A21YK0F:
|
||||
|
||||
@@ -4,7 +4,7 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableRegistry.hpp
|
||||
|
||||
classes:
|
||||
frc::SmartDashboard:
|
||||
wpi::SmartDashboard:
|
||||
methods:
|
||||
init:
|
||||
ContainsKey:
|
||||
@@ -16,9 +16,9 @@ classes:
|
||||
PutData:
|
||||
# overrides ensure data doesn't die if this is the only reference
|
||||
overloads:
|
||||
std::string_view, wpi::Sendable*:
|
||||
std::string_view, wpi::util::Sendable*:
|
||||
cpp_code: |
|
||||
[](py::str &key, std::shared_ptr<wpi::Sendable> data) {
|
||||
[](py::str &key, std::shared_ptr<wpi::util::Sendable> data) {
|
||||
if (!data) {
|
||||
throw FRC_MakeError(err::NullParameter, "{}", "value");
|
||||
}
|
||||
@@ -31,19 +31,19 @@ classes:
|
||||
}
|
||||
|
||||
std::string_view keyRef(raw_str, raw_size);
|
||||
frc::SmartDashboard::PutData(keyRef, data.get());
|
||||
wpi::SmartDashboard::PutData(keyRef, data.get());
|
||||
|
||||
// this comes after the PutData to ensure that the original object doesn't die
|
||||
// while PutData is called
|
||||
rpy::addSmartDashboardData(key, data);
|
||||
}
|
||||
wpi::Sendable*:
|
||||
wpi::util::Sendable*:
|
||||
cpp_code: |
|
||||
[](std::shared_ptr<wpi::Sendable> value) {
|
||||
frc::SmartDashboard::PutData(value.get());
|
||||
[](std::shared_ptr<wpi::util::Sendable> value) {
|
||||
wpi::SmartDashboard::PutData(value.get());
|
||||
// this comes after the PutData to ensure that the original object doesn't die
|
||||
// while PutData is called
|
||||
auto name = wpi::SendableRegistry::GetName(value.get());
|
||||
auto name = wpi::util::SendableRegistry::GetName(value.get());
|
||||
if (!name.empty()) {
|
||||
py::str key(name);
|
||||
rpy::addSmartDashboardData(key, value);
|
||||
@@ -55,11 +55,11 @@ classes:
|
||||
GetBoolean:
|
||||
cpp_code: |
|
||||
[](std::string_view key, py::object defaultValue) -> py::object {
|
||||
nt::Value value;
|
||||
wpi::nt::Value value;
|
||||
{
|
||||
py::gil_scoped_release release;
|
||||
auto entry = frc::SmartDashboard::GetEntry(key);
|
||||
value = nt::GetEntryValue(entry.GetHandle());
|
||||
auto entry = wpi::SmartDashboard::GetEntry(key);
|
||||
value = wpi::nt::GetEntryValue(entry.GetHandle());
|
||||
}
|
||||
if (!value || value.type() != NT_BOOLEAN) return defaultValue;
|
||||
return py::cast(value.GetBoolean());
|
||||
@@ -69,11 +69,11 @@ classes:
|
||||
GetNumber:
|
||||
cpp_code: |
|
||||
[](std::string_view key, py::object defaultValue) -> py::object {
|
||||
nt::Value value;
|
||||
wpi::nt::Value value;
|
||||
{
|
||||
py::gil_scoped_release release;
|
||||
auto entry = frc::SmartDashboard::GetEntry(key);
|
||||
value = nt::GetEntryValue(entry.GetHandle());
|
||||
auto entry = wpi::SmartDashboard::GetEntry(key);
|
||||
value = wpi::nt::GetEntryValue(entry.GetHandle());
|
||||
}
|
||||
if (!value || value.type() != NT_DOUBLE) return defaultValue;
|
||||
return py::cast(value.GetDouble());
|
||||
@@ -83,11 +83,11 @@ classes:
|
||||
GetString:
|
||||
cpp_code: |
|
||||
[](std::string_view key, py::object defaultValue) -> py::object {
|
||||
nt::Value value;
|
||||
wpi::nt::Value value;
|
||||
{
|
||||
py::gil_scoped_release release;
|
||||
auto entry = frc::SmartDashboard::GetEntry(key);
|
||||
value = nt::GetEntryValue(entry.GetHandle());
|
||||
auto entry = wpi::SmartDashboard::GetEntry(key);
|
||||
value = wpi::nt::GetEntryValue(entry.GetHandle());
|
||||
}
|
||||
if (!value || value.type() != NT_STRING) return defaultValue;
|
||||
return py::cast(value.GetString());
|
||||
@@ -97,11 +97,11 @@ classes:
|
||||
GetBooleanArray:
|
||||
cpp_code: |
|
||||
[](std::string_view key, py::object defaultValue) -> py::object {
|
||||
nt::Value value;
|
||||
wpi::nt::Value value;
|
||||
{
|
||||
py::gil_scoped_release release;
|
||||
auto entry = frc::SmartDashboard::GetEntry(key);
|
||||
value = nt::GetEntryValue(entry.GetHandle());
|
||||
auto entry = wpi::SmartDashboard::GetEntry(key);
|
||||
value = wpi::nt::GetEntryValue(entry.GetHandle());
|
||||
}
|
||||
if (!value || value.type() != NT_BOOLEAN_ARRAY) return defaultValue;
|
||||
// ntcore will return bit vector by default. Convert to List[bool]
|
||||
@@ -118,11 +118,11 @@ classes:
|
||||
GetNumberArray:
|
||||
cpp_code: |
|
||||
[](std::string_view key, py::object defaultValue) -> py::object {
|
||||
nt::Value value;
|
||||
wpi::nt::Value value;
|
||||
{
|
||||
py::gil_scoped_release release;
|
||||
auto entry = frc::SmartDashboard::GetEntry(key);
|
||||
value = nt::GetEntryValue(entry.GetHandle());
|
||||
auto entry = wpi::SmartDashboard::GetEntry(key);
|
||||
value = wpi::nt::GetEntryValue(entry.GetHandle());
|
||||
}
|
||||
if (!value || value.type() != NT_DOUBLE_ARRAY) return defaultValue;
|
||||
return py::cast(value.GetDoubleArray());
|
||||
@@ -132,11 +132,11 @@ classes:
|
||||
GetStringArray:
|
||||
cpp_code: |
|
||||
[](std::string_view key, py::object defaultValue) -> py::object {
|
||||
nt::Value value;
|
||||
wpi::nt::Value value;
|
||||
{
|
||||
py::gil_scoped_release release;
|
||||
auto entry = frc::SmartDashboard::GetEntry(key);
|
||||
value = nt::GetEntryValue(entry.GetHandle());
|
||||
auto entry = wpi::SmartDashboard::GetEntry(key);
|
||||
value = wpi::nt::GetEntryValue(entry.GetHandle());
|
||||
}
|
||||
if (!value || value.type() != NT_STRING_ARRAY) return defaultValue;
|
||||
return py::cast(value.GetStringArray());
|
||||
@@ -146,11 +146,11 @@ classes:
|
||||
GetRaw:
|
||||
cpp_code: |
|
||||
[](std::string_view key, py::object defaultValue) -> py::object {
|
||||
nt::Value value;
|
||||
wpi::nt::Value value;
|
||||
{
|
||||
py::gil_scoped_release release;
|
||||
auto entry = frc::SmartDashboard::GetEntry(key);
|
||||
value = nt::GetEntryValue(entry.GetHandle());
|
||||
auto entry = wpi::SmartDashboard::GetEntry(key);
|
||||
value = wpi::nt::GetEntryValue(entry.GetHandle());
|
||||
}
|
||||
if (!value || value.type() != NT_STRING) return defaultValue;
|
||||
return py::cast(value.GetString());
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::Solenoid:
|
||||
wpi::Solenoid:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<Solenoid>
|
||||
- wpi::util::SendableHelper<Solenoid>
|
||||
methods:
|
||||
Solenoid:
|
||||
overloads:
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::Spark:
|
||||
wpi::Spark:
|
||||
methods:
|
||||
Spark:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
classes:
|
||||
frc::SparkMini:
|
||||
wpi::SparkMini:
|
||||
methods:
|
||||
SparkMini:
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::StadiaController:
|
||||
wpi::StadiaController:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<StadiaController>
|
||||
- wpi::util::SendableHelper<StadiaController>
|
||||
methods:
|
||||
StadiaController:
|
||||
GetLeftX:
|
||||
@@ -78,7 +78,7 @@ classes:
|
||||
GetRightBumperButtonPressed:
|
||||
GetRightBumperButtonReleased:
|
||||
InitSendable:
|
||||
frc::StadiaController::Button:
|
||||
wpi::StadiaController::Button:
|
||||
attributes:
|
||||
kA:
|
||||
kB:
|
||||
@@ -95,7 +95,7 @@ classes:
|
||||
kLeftTrigger:
|
||||
kGoogle:
|
||||
kFrame:
|
||||
frc::StadiaController::Axis:
|
||||
wpi::StadiaController::Axis:
|
||||
attributes:
|
||||
kLeftX:
|
||||
kRightX:
|
||||
|
||||
@@ -7,29 +7,29 @@ enums:
|
||||
.def("__str__", &SysIdRoutineLog::StateEnumToString)
|
||||
|
||||
classes:
|
||||
frc::sysid::SysIdRoutineLog:
|
||||
wpi::sysid::SysIdRoutineLog:
|
||||
methods:
|
||||
SysIdRoutineLog:
|
||||
RecordState:
|
||||
Motor:
|
||||
StateEnumToString:
|
||||
frc::sysid::SysIdRoutineLog::MotorLog:
|
||||
wpi::sysid::SysIdRoutineLog::MotorLog:
|
||||
methods:
|
||||
value:
|
||||
voltage:
|
||||
position:
|
||||
overloads:
|
||||
units::meter_t:
|
||||
units::turn_t:
|
||||
wpi::units::meter_t:
|
||||
wpi::units::turn_t:
|
||||
rename: angularPosition
|
||||
velocity:
|
||||
overloads:
|
||||
units::meters_per_second_t:
|
||||
units::turns_per_second_t:
|
||||
wpi::units::meters_per_second_t:
|
||||
wpi::units::turns_per_second_t:
|
||||
rename: angularVelocity
|
||||
acceleration:
|
||||
overloads:
|
||||
units::meters_per_second_squared_t:
|
||||
units::turns_per_second_squared_t:
|
||||
wpi::units::meters_per_second_squared_t:
|
||||
wpi::units::turns_per_second_squared_t:
|
||||
rename: angularAcceleration
|
||||
current:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
classes:
|
||||
frc::SystemServer:
|
||||
wpi::SystemServer:
|
||||
methods:
|
||||
GetSystemServer:
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::Talon:
|
||||
wpi::Talon:
|
||||
methods:
|
||||
Talon:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::TimedRobot:
|
||||
wpi::TimedRobot:
|
||||
attributes:
|
||||
kDefaultPeriod:
|
||||
methods:
|
||||
@@ -12,5 +12,5 @@ classes:
|
||||
default: 0_s
|
||||
TimedRobot:
|
||||
overloads:
|
||||
units::second_t:
|
||||
units::hertz_t:
|
||||
wpi::units::second_t:
|
||||
wpi::units::hertz_t:
|
||||
|
||||
@@ -2,7 +2,7 @@ functions:
|
||||
Wait:
|
||||
GetTime:
|
||||
classes:
|
||||
frc::Timer:
|
||||
wpi::Timer:
|
||||
methods:
|
||||
Timer:
|
||||
Get:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::TimesliceRobot:
|
||||
wpi::TimesliceRobot:
|
||||
methods:
|
||||
TimesliceRobot:
|
||||
Schedule:
|
||||
|
||||
@@ -3,7 +3,7 @@ extra_includes:
|
||||
- wpi/util/raw_ostream.hpp
|
||||
|
||||
classes:
|
||||
frc::Tracer:
|
||||
wpi::Tracer:
|
||||
methods:
|
||||
Tracer:
|
||||
ResetTimer:
|
||||
@@ -12,15 +12,15 @@ classes:
|
||||
PrintEpochs:
|
||||
overloads:
|
||||
'':
|
||||
wpi::raw_ostream&:
|
||||
wpi::util::raw_ostream&:
|
||||
ignore: true
|
||||
|
||||
inline_code: |-
|
||||
cls_Tracer
|
||||
.def("getEpochs",
|
||||
[](Tracer * self) -> py::str {
|
||||
wpi::SmallString<128> buf;
|
||||
wpi::raw_svector_ostream s(buf);
|
||||
wpi::util::SmallString<128> buf;
|
||||
wpi::util::raw_svector_ostream s(buf);
|
||||
self->PrintEpochs(s);
|
||||
return py::cast(s.str());
|
||||
},
|
||||
|
||||
@@ -2,6 +2,6 @@ extra_includes:
|
||||
- wpi/util/sendable/SendableBuilder.hpp
|
||||
|
||||
classes:
|
||||
frc::VictorSP:
|
||||
wpi::VictorSP:
|
||||
methods:
|
||||
VictorSP:
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
classes:
|
||||
frc::Watchdog:
|
||||
wpi::Watchdog:
|
||||
methods:
|
||||
Watchdog:
|
||||
overloads:
|
||||
units::second_t, std::function<void ()>:
|
||||
units::second_t, Callable&&, Arg&&, Args&&...:
|
||||
wpi::units::second_t, std::function<void ()>:
|
||||
wpi::units::second_t, Callable&&, Arg&&, Args&&...:
|
||||
ignore: true
|
||||
GetTime:
|
||||
SetTimeout:
|
||||
overloads:
|
||||
double:
|
||||
ignore: true
|
||||
units::second_t:
|
||||
wpi::units::second_t:
|
||||
GetTimeout:
|
||||
IsExpired:
|
||||
AddEpoch:
|
||||
|
||||
@@ -4,9 +4,9 @@ extra_includes:
|
||||
- wpi/event/BooleanEvent.hpp
|
||||
|
||||
classes:
|
||||
frc::XboxController:
|
||||
wpi::XboxController:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<XboxController>
|
||||
- wpi::util::SendableHelper<XboxController>
|
||||
methods:
|
||||
XboxController:
|
||||
GetLeftX:
|
||||
@@ -70,7 +70,7 @@ classes:
|
||||
GetRightBumperButtonPressed:
|
||||
GetRightBumperButtonReleased:
|
||||
InitSendable:
|
||||
frc::XboxController::Button:
|
||||
wpi::XboxController::Button:
|
||||
attributes:
|
||||
kLeftBumper:
|
||||
kRightBumper:
|
||||
@@ -82,7 +82,7 @@ classes:
|
||||
kY:
|
||||
kBack:
|
||||
kStart:
|
||||
frc::XboxController::Axis:
|
||||
wpi::XboxController::Axis:
|
||||
attributes:
|
||||
kLeftX:
|
||||
kRightX:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
classes:
|
||||
frc::Tachometer:
|
||||
wpi::Tachometer:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<Tachometer>
|
||||
- wpi::util::SendableHelper<Tachometer>
|
||||
methods:
|
||||
Tachometer:
|
||||
overloads:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
classes:
|
||||
frc::UpDownCounter:
|
||||
wpi::UpDownCounter:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<UpDownCounter>
|
||||
- wpi::util::SendableHelper<UpDownCounter>
|
||||
methods:
|
||||
UpDownCounter:
|
||||
overloads:
|
||||
|
||||
@@ -3,9 +3,9 @@ extra_includes:
|
||||
- wpi/hardware/motor/MotorController.hpp
|
||||
|
||||
classes:
|
||||
frc::DifferentialDrive:
|
||||
wpi::DifferentialDrive:
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<DifferentialDrive>
|
||||
- wpi::util::SendableHelper<DifferentialDrive>
|
||||
methods:
|
||||
DifferentialDrive:
|
||||
overloads:
|
||||
@@ -103,7 +103,7 @@ classes:
|
||||
* :meth:`curvatureDrive` is similar in concept to
|
||||
``RobotDrive.drive`` with the addition of a quick turn
|
||||
mode. However, it is not designed to give exactly the same response.
|
||||
frc::DifferentialDrive::WheelSpeeds:
|
||||
wpi::DifferentialDrive::WheelSpeeds:
|
||||
attributes:
|
||||
left:
|
||||
right:
|
||||
|
||||
@@ -3,11 +3,11 @@ extra_includes:
|
||||
- wpi/hardware/motor/MotorController.hpp
|
||||
|
||||
classes:
|
||||
frc::MecanumDrive:
|
||||
wpi::MecanumDrive:
|
||||
force_type_casters:
|
||||
- units::radian_t
|
||||
- wpi::units::radian_t
|
||||
ignored_bases:
|
||||
- wpi::SendableHelper<MecanumDrive>
|
||||
- wpi::util::SendableHelper<MecanumDrive>
|
||||
methods:
|
||||
MecanumDrive:
|
||||
overloads:
|
||||
@@ -21,16 +21,16 @@ classes:
|
||||
DriveCartesian:
|
||||
param_override:
|
||||
gyroAngle:
|
||||
default: frc::Rotation2d(0_rad)
|
||||
default: wpi::math::Rotation2d(0_rad)
|
||||
DrivePolar:
|
||||
DriveCartesianIK:
|
||||
param_override:
|
||||
gyroAngle:
|
||||
default: frc::Rotation2d(0_rad)
|
||||
default: wpi::math::Rotation2d(0_rad)
|
||||
StopMotor:
|
||||
GetDescription:
|
||||
InitSendable:
|
||||
frc::MecanumDrive::WheelSpeeds:
|
||||
wpi::MecanumDrive::WheelSpeeds:
|
||||
attributes:
|
||||
frontLeft:
|
||||
frontRight:
|
||||
|
||||
@@ -3,7 +3,7 @@ extra_includes:
|
||||
- wpi/util/SmallString.hpp
|
||||
|
||||
classes:
|
||||
frc::RobotDriveBase:
|
||||
wpi::RobotDriveBase:
|
||||
attributes:
|
||||
m_deadband:
|
||||
m_maxOutput:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::BooleanEvent:
|
||||
wpi::BooleanEvent:
|
||||
methods:
|
||||
BooleanEvent:
|
||||
GetAsBoolean:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
classes:
|
||||
frc::EventLoop:
|
||||
wpi::EventLoop:
|
||||
force_type_casters:
|
||||
- std::function
|
||||
methods:
|
||||
|
||||
@@ -4,21 +4,21 @@ extra_includes:
|
||||
- wpi/nt/NetworkTableInstance.hpp
|
||||
|
||||
classes:
|
||||
frc::NetworkBooleanEvent:
|
||||
wpi::NetworkBooleanEvent:
|
||||
force_no_trampoline: true
|
||||
methods:
|
||||
NetworkBooleanEvent:
|
||||
overloads:
|
||||
EventLoop*, nt::BooleanTopic:
|
||||
EventLoop*, wpi::nt::BooleanTopic:
|
||||
cpp_code: |
|
||||
[](EventLoop *loop, nt::BooleanTopic &topic) {
|
||||
[](EventLoop *loop, wpi::nt::BooleanTopic &topic) {
|
||||
return std::make_unique<NetworkBooleanEvent>(loop, std::move(topic));
|
||||
}
|
||||
EventLoop*, nt::BooleanSubscriber:
|
||||
EventLoop*, wpi::nt::BooleanSubscriber:
|
||||
cpp_code: |
|
||||
[](EventLoop *loop, nt::BooleanSubscriber &sub) {
|
||||
[](EventLoop *loop, wpi::nt::BooleanSubscriber &sub) {
|
||||
return std::make_unique<NetworkBooleanEvent>(loop, std::move(sub));
|
||||
}
|
||||
EventLoop*, std::shared_ptr<nt::NetworkTable>, std::string_view:
|
||||
EventLoop*, std::shared_ptr<wpi::nt::NetworkTable>, std::string_view:
|
||||
EventLoop*, std::string_view, std::string_view:
|
||||
EventLoop*, nt::NetworkTableInstance, std::string_view, std::string_view:
|
||||
EventLoop*, wpi::nt::NetworkTableInstance, std::string_view, std::string_view:
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- wpi/hardware/accelerometer/ADXL345_I2C.hpp
|
||||
|
||||
classes:
|
||||
frc::sim::ADXL345Sim:
|
||||
wpi::sim::ADXL345Sim:
|
||||
methods:
|
||||
ADXL345Sim:
|
||||
overloads:
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- wpi/hardware/led/AddressableLED.hpp
|
||||
|
||||
classes:
|
||||
frc::sim::AddressableLEDSim:
|
||||
wpi::sim::AddressableLEDSim:
|
||||
force_type_casters:
|
||||
- std::function
|
||||
methods:
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- wpi/hardware/rotation/AnalogEncoder.hpp
|
||||
|
||||
classes:
|
||||
frc::sim::AnalogEncoderSim:
|
||||
wpi::sim::AnalogEncoderSim:
|
||||
force_type_casters:
|
||||
- std::function
|
||||
methods:
|
||||
|
||||
@@ -2,7 +2,7 @@ extra_includes:
|
||||
- wpi/hardware/discrete/AnalogInput.hpp
|
||||
|
||||
classes:
|
||||
frc::sim::AnalogInputSim:
|
||||
wpi::sim::AnalogInputSim:
|
||||
force_type_casters:
|
||||
- std::function
|
||||
methods:
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
classes:
|
||||
frc::sim::BatterySim:
|
||||
wpi::sim::BatterySim:
|
||||
force_type_casters:
|
||||
- units::ampere_t
|
||||
- wpi::units::ampere_t
|
||||
methods:
|
||||
Calculate:
|
||||
overloads:
|
||||
units::volt_t, units::ohm_t, std::span<const units::ampere_t>:
|
||||
units::volt_t, units::ohm_t, std::initializer_list<units::ampere_t>:
|
||||
wpi::units::volt_t, wpi::units::ohm_t, std::span<const wpi::units::ampere_t>:
|
||||
wpi::units::volt_t, wpi::units::ohm_t, std::initializer_list<wpi::units::ampere_t>:
|
||||
ignore: true
|
||||
std::span<const units::ampere_t>:
|
||||
std::initializer_list<units::ampere_t>:
|
||||
std::span<const wpi::units::ampere_t>:
|
||||
std::initializer_list<wpi::units::ampere_t>:
|
||||
ignore: true
|
||||
|
||||
@@ -2,9 +2,9 @@ extra_includes:
|
||||
- wpi/hardware/pneumatic/Compressor.hpp
|
||||
|
||||
classes:
|
||||
frc::sim::CTREPCMSim:
|
||||
wpi::sim::CTREPCMSim:
|
||||
typealias:
|
||||
- frc::PneumaticsBase
|
||||
- wpi::PneumaticsBase
|
||||
force_type_casters:
|
||||
- std::function
|
||||
methods:
|
||||
|
||||
@@ -4,7 +4,7 @@ functions:
|
||||
ConstBufferCallbackStoreThunk:
|
||||
ignore: true
|
||||
classes:
|
||||
frc::sim::CallbackStore:
|
||||
wpi::sim::CallbackStore:
|
||||
force_type_casters:
|
||||
- std::function
|
||||
methods:
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
classes:
|
||||
frc::sim::DCMotorSim:
|
||||
wpi::sim::DCMotorSim:
|
||||
typealias:
|
||||
- frc::DCMotor
|
||||
- wpi::math::DCMotor
|
||||
methods:
|
||||
DCMotorSim:
|
||||
overloads:
|
||||
const LinearSystem<2, 1, 2>&, const DCMotor&, const std::array<double, 2>&:
|
||||
const wpi::math::LinearSystem<2, 1, 2>&, const wpi::math::DCMotor&, const std::array<double, 2>&:
|
||||
param_override:
|
||||
plant:
|
||||
x_type: frc::LinearSystem<2,1,2>
|
||||
x_type: wpi::math::LinearSystem<2,1,2>
|
||||
SetState:
|
||||
GetAngularPosition:
|
||||
GetAngularVelocity:
|
||||
@@ -27,9 +27,9 @@ inline_code: |
|
||||
cls_DCMotorSim
|
||||
// java API compatibility
|
||||
.def("getAngularPositionRotations", [](const DCMotorSim &self) {
|
||||
return units::turn_t{self.GetAngularPosition()};
|
||||
return wpi::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()};
|
||||
return wpi::units::revolutions_per_minute_t{self.GetAngularVelocity()};
|
||||
}, py::doc("Returns the DC motor velocity in revolutions per minute"))
|
||||
;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user