Skip to content

Commit bf9ec05

Browse files
committed
Update robotpy-wpilib
1 parent 0486ab8 commit bf9ec05

File tree

10 files changed

+34
-11
lines changed

10 files changed

+34
-11
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
3+
classes:
4+
Alert:
5+
enums:
6+
AlertType:
7+
methods:
8+
Alert:
9+
overloads:
10+
std::string_view, AlertType:
11+
std::string_view, std::string_view, AlertType:
12+
Set:
13+
SetText:

subprojects/robotpy-wpilib/gen/AnalogTrigger.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,22 @@ extra_includes:
88

99
classes:
1010
AnalogTrigger:
11-
shared_ptr: true
1211
ignored_bases:
1312
- wpi::SendableHelper<AnalogTrigger>
1413
methods:
1514
AnalogTrigger:
1615
overloads:
1716
int:
17+
AnalogInput&:
18+
ignore: true
1819
AnalogInput*:
20+
ignore: true
21+
std::shared_ptr<AnalogInput>:
22+
DutyCycle&:
23+
ignore: true
1924
DutyCycle*:
25+
ignore: true
26+
std::shared_ptr<DutyCycle>:
2027
SetLimitsVoltage:
2128
SetLimitsDutyCycle:
2229
SetLimitsRaw:

subprojects/robotpy-wpilib/gen/DataLogManager.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ classes:
1313
return_value_policy: reference
1414
GetLogDir:
1515
LogNetworkTables:
16+
LogConsoleOutput:

subprojects/robotpy-wpilib/gen/Notifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ classes:
99
overloads:
1010
std::function<void ( )>:
1111
SetName:
12-
SetHandler:
12+
SetCallback:
1313
StartSingle:
1414
overloads:
1515
double:

subprojects/robotpy-wpilib/gen/PWMMotorController.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classes:
1414
Set:
1515
SetVoltage:
1616
Get:
17+
GetVoltage:
1718
SetInverted:
1819
GetInverted:
1920
Disable:

subprojects/robotpy-wpilib/gen/simulation/ElevatorSim.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ classes:
1010
methods:
1111
ElevatorSim:
1212
overloads:
13-
? const LinearSystem<2, 1, 1>&, const DCMotor&, units::meter_t, units::meter_t,
13+
? const LinearSystem<2, 1, 2>&, const DCMotor&, units::meter_t, units::meter_t,
1414
bool, units::meter_t, const std::array<double, 2>&
1515
:
1616
param_override:
1717
measurementStdDevs:
18-
default: std::array<double, 2>{0.0}
18+
default: std::array<double, 2>{0.0, 0.0}
1919
? const DCMotor&, double, units::kilogram_t, units::meter_t, units::meter_t,
2020
units::meter_t, bool, units::meter_t, const std::array<double, 2>&
2121
:
2222
param_override:
2323
measurementStdDevs:
24-
default: std::array<double, 1>{0.0}
24+
default: std::array<double, 2>{0.0}
2525
? decltype(1_V/Velocity_t<Distance> (1)), decltype(1_V/Acceleration_t<Distance>
2626
(1)), const DCMotor&, units::meter_t, units::meter_t, bool, units::meter_t,
2727
const std::array<double, 2>&

subprojects/robotpy-wpilib/gen/simulation/SingleJointedArmSim.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ classes:
1010
methods:
1111
SingleJointedArmSim:
1212
overloads:
13-
? const LinearSystem<2, 1, 1>&, const DCMotor&, double, units::meter_t,
13+
? const LinearSystem<2, 1, 2>&, const DCMotor&, double, units::meter_t,
1414
units::radian_t, units::radian_t, bool, units::radian_t, const std::array<double,
1515
2>&
1616
:
1717
param_override:
1818
measurementStdDevs:
19-
default: std::array<double, 2>{0.0}
19+
default: std::array<double, 2>{0.0, 0.0}
2020
? const DCMotor&, double, units::kilogram_square_meter_t, units::meter_t,
2121
units::radian_t, units::radian_t, bool, units::radian_t, const std::array<double,
2222
2>&
2323
:
2424
param_override:
2525
measurementStdDevs:
26-
default: std::array<double, 2>{0.0}
26+
default: std::array<double, 2>{0.0, 0.0}
2727
SetState:
2828
WouldHitLowerLimit:
2929
WouldHitUpperLimit:

subprojects/robotpy-wpilib/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ ADXL345_SPI = "frc/ADXL345_SPI.h"
111111
ADXL362 = "frc/ADXL362.h"
112112
ADXRS450_Gyro = "frc/ADXRS450_Gyro.h"
113113
AddressableLED = "frc/AddressableLED.h"
114+
Alert = "frc/Alert.h"
114115
AnalogAccelerometer = "frc/AnalogAccelerometer.h"
115116
AnalogEncoder = "frc/AnalogEncoder.h"
116117
AnalogGyro = "frc/AnalogGyro.h"

subprojects/robotpy-wpilib/wpilib/src/rpy/Notifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ PyNotifier::~PyNotifier() {
8484
m_thread.attr("join")();
8585
}
8686

87-
HAL_CleanNotifier(handle, &status);
87+
HAL_CleanNotifier(handle);
8888
}
8989

9090
PyNotifier::PyNotifier(PyNotifier &&rhs)
@@ -117,7 +117,7 @@ void PyNotifier::SetName(std::string_view name) {
117117
HAL_SetNotifierName(m_notifier, buf.data(), &status);
118118
}
119119

120-
void PyNotifier::SetHandler(std::function<void()> handler) {
120+
void PyNotifier::SetCallback(std::function<void()> handler) {
121121
std::scoped_lock lock(m_processMutex);
122122
m_handler = handler;
123123
}

subprojects/robotpy-wpilib/wpilib/src/rpy/Notifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class PyNotifier {
5757
*
5858
* @param handler Handler
5959
*/
60-
void SetHandler(std::function<void()> handler);
60+
void SetCallback(std::function<void()> handler);
6161

6262
/**
6363
* Register for single event notification.

0 commit comments

Comments
 (0)