File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
subprojects/robotpy-wpimath/semiwrap/controls Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ classes:
48
48
{
49
49
std::string clsNameCopy = clsName;
50
50
51
+ cls_Constraints
52
+ .def("__repr__", [clsNameCopy](const Constraints &self) {
53
+ return clsNameCopy + ".Constraints("
54
+ "maxVelocity=" + std::to_string(self.maxVelocity()) + ", "
55
+ "maxAcceleration=" + std::to_string(self.maxAcceleration()) + ")";
56
+ });
57
+
51
58
cls_State
52
59
.def(
53
60
py::init<Distance_t, Velocity_t>(),
@@ -75,18 +82,6 @@ classes:
75
82
default : ' 0'
76
83
maxAcceleration :
77
84
default : ' 0'
78
- inline_code : |
79
- ;
80
- {
81
- std::string clsNameCopy = clsName;
82
-
83
- cls_Constraints
84
- .def("__repr__", [clsNameCopy](const Constraints &self) {
85
- return clsNameCopy + ".Constraints("
86
- "maxVelocity=" + std::to_string(self.maxVelocity()) + ", "
87
- "maxAcceleration=" + std::to_string(self.maxAcceleration()) + ")";
88
- });
89
- }
90
85
frc::TrapezoidProfile::State :
91
86
force_no_default_constructor : true
92
87
attributes :
You can’t perform that action at this time.
0 commit comments