[robotpy] Sync robotpy (#8318)

Project import generated by Copybara.

GitOrigin-RevId: f6818c55dda55da1226e47a05a22d30f7cc477f1
This commit is contained in:
PJ Reiniger
2025-11-01 13:28:05 -04:00
committed by GitHub
parent 3f88c287d6
commit 49e84c6b52
51 changed files with 226 additions and 285 deletions

View File

@@ -1,29 +0,0 @@
extra_includes:
- wpi/sendable/SendableBuilder.h
- frc/AnalogInput.h
classes:
frc::AnalogGyro:
ignored_bases:
- wpi::SendableHelper<AnalogGyro>
methods:
AnalogGyro:
overloads:
int:
AnalogInput*:
ignore: true
std::shared_ptr<AnalogInput>:
int, int, double:
std::shared_ptr<AnalogInput>, int, double:
GetAngle:
GetRate:
GetCenter:
GetOffset:
SetSensitivity:
SetDeadband:
Reset:
InitGyro:
Calibrate:
GetRotation2d:
GetAnalogInput:
InitSendable:

View File

@@ -181,7 +181,7 @@ inline_code: |
^ (std::hash<double>{}(self->green) << 1)
^ (std::hash<double>{}(self->blue) << 2)
);
return h != -1 ? h : -2;
return h != static_cast<size_t>(-1) ? h : -2;
})
.def("__repr__", [](Color *self) {
return "Color("

View File

@@ -42,7 +42,6 @@ classes:
GetReplayNumber:
GetAlliance:
GetLocation:
WaitForDsConnection:
GetMatchTime:
GetBatteryVoltage:
RefreshData:

View File

@@ -1,7 +1,6 @@
classes:
frc::IterativeRobotBase:
methods:
RobotInit:
DriverStationConnected:
DisabledInit:
AutonomousInit:

View File

@@ -9,8 +9,6 @@ classes:
frc::RobotController:
nodelete: true
methods:
GetFPGAVersion:
GetFPGARevision:
GetSerialNumber:
GetComments:
GetTeamNumber:

View File

@@ -1,15 +0,0 @@
extra_includes:
- wpi/sendable/SendableBuilder.h
classes:
frc::Servo:
ignored_bases:
- wpi::SendableHelper<Servo>
methods:
Servo:
Set:
Get:
SetAngle:
GetAngle:
InitSendable:
GetChannel:

View File

@@ -1,9 +0,0 @@
classes:
frc::sim::ServoSim:
methods:
ServoSim:
overloads:
const Servo&:
int:
GetPosition:
GetAngle: