Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Feb 20, 2024
1 parent 463a34f commit 5700272
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions glass/src/libnt/native/cpp/NTProfiledPIDController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ NTProfiledPIDControllerModel::NTProfiledPIDControllerModel(
m_d{inst.GetDoubleTopic(fmt::format("{}/d", path)).GetEntry(0)},
m_iZone{inst.GetDoubleTopic(fmt::format("{}/izone", path)).GetEntry(0)},
m_maxVelocity{
inst.GetDoubleTopic(fmt::format("{}/maxvelocity", path)).GetEntry(0)},
inst.GetDoubleTopic(fmt::format("{}/maxVelocity", path)).GetEntry(0)},
m_maxAcceleration{
inst.GetDoubleTopic(fmt::format("{}/maxacceleration", path))
inst.GetDoubleTopic(fmt::format("{}/maxAcceleration", path))
.GetEntry(0)},
m_goal{inst.GetDoubleTopic(fmt::format("{}/goal", path)).GetEntry(0)},
m_pData{fmt::format("NTPIDCtrlP:{}", path)},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ public void initSendable(SendableBuilder builder) {
}
});
builder.addDoubleProperty(
"maxvelocity",
"maxVelocity",
() -> getConstraints().maxVelocity,
maxVelocity ->
setConstraints(
new TrapezoidProfile.Constraints(maxVelocity, getConstraints().maxAcceleration)));
builder.addDoubleProperty(
"maxacceleration",
"maxAcceleration",
() -> getConstraints().maxAcceleration,
maxAcceleration ->
setConstraints(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ class ProfiledPIDController
"izone", [this] { return GetIZone(); },
[this](double value) { SetIZone(value); });
builder.AddDoubleProperty(
"maxvelocity", [this] { return GetConstraints().maxVelocity.value(); },
"maxVelocity", [this] { return GetConstraints().maxVelocity.value(); },
[this](double value) {
SetConstraints(
Constraints{Velocity_t{value}, GetConstraints().maxAcceleration});
});
builder.AddDoubleProperty(
"maxacceleration",
"maxAcceleration",
[this] { return GetConstraints().maxAcceleration.value(); },
[this](double value) {
SetConstraints(
Expand Down

0 comments on commit 5700272

Please sign in to comment.