mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Remove rho overload from LinearQuadraticRegulator constructors (#2687)
It was added as part of Bryson's rule described in https://file.tavsys.net/control/controls-engineering-in-frc.pdf. It doesn't really simplify usage though, and the same thing can be replicated by multiplying the elements of Q by rho manually. It's easier to do it that way, it's how 3512 has been doing controller debugging for a while, and it's probably what other teams will do as well instead of using the "more structured" way. Removing these unhelpful overloads also simplifies the LQR interface.
This commit is contained in:
@@ -70,10 +70,6 @@ class Robot : public frc::TimedRobot {
|
||||
// Decrease this to more heavily penalize state excursion, or make the
|
||||
// controller behave more aggressively.
|
||||
{1.0 * 2.0 * wpi::math::pi / 360.0, 10.0 * 2.0 * wpi::math::pi / 360.0},
|
||||
// rho balances Q and R. Increasing this will penalize state excursion
|
||||
// more heavily, while decreasing this will penalize control effort more
|
||||
// heavily.
|
||||
1.0,
|
||||
// relms. Control effort (voltage) tolerance. Decrease this to more
|
||||
// heavily penalize control effort, or make the controller less
|
||||
// aggressive. 12 is a good starting point because that is the
|
||||
|
||||
@@ -67,10 +67,6 @@ class Robot : public frc::TimedRobot {
|
||||
// Decrease this to more heavily penalize state excursion, or make the
|
||||
// controller behave more aggressively.
|
||||
{0.0254, 0.254},
|
||||
// rho balances Q and R. Increasing this will penalize state excursion
|
||||
// more heavily, while decreasing this will penalize control effort more
|
||||
// heavily.
|
||||
1.0,
|
||||
// relms. Control effort (voltage) tolerance. Decrease this to more
|
||||
// heavily penalize control effort, or make the controller less
|
||||
// aggressive. 12 is a good starting point because that is the
|
||||
|
||||
@@ -63,10 +63,6 @@ class Robot : public frc::TimedRobot {
|
||||
// to more heavily penalize state excursion, or make the controller behave
|
||||
// more aggressively.
|
||||
{8.0},
|
||||
// rho balances Q and R, or velocity and voltage weights. Increasing this
|
||||
// will penalize state excursion more heavily, while decreasing this will
|
||||
// penalize control effort more heavily.
|
||||
1.0,
|
||||
// relms. Control effort (voltage) tolerance. Decrease this to more
|
||||
// heavily penalize control effort, or make the controller less
|
||||
// aggressive. 12 is a good starting point because that is the
|
||||
|
||||
@@ -63,10 +63,6 @@ class Robot : public frc::TimedRobot {
|
||||
// to more heavily penalize state excursion, or make the controller behave
|
||||
// more aggressively.
|
||||
{8.0},
|
||||
// rho balances Q and R, or velocity and voltage weights. Increasing this
|
||||
// will penalize state excursion more heavily, while decreasing this will
|
||||
// penalize control effort more heavily.
|
||||
1.0,
|
||||
// relms. Control effort (voltage) tolerance. Decrease this to more
|
||||
// heavily penalize control effort, or make the controller less
|
||||
// aggressive. 12 is a good starting point because that is the
|
||||
|
||||
Reference in New Issue
Block a user