[wpimath] Link to docs on LQR and KF tolerances (#5486)

Fixes #4151.
This commit is contained in:
Tyler Veness
2023-07-31 19:17:44 -07:00
committed by GitHub
parent d814f1d123
commit a01b6467d3
12 changed files with 76 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ class WPILIB_DLLEXPORT LTVDifferentialDriveController {
/**
* Constructs a linear time-varying differential drive controller.
*
* See
* https://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning
* for how to select the tolerances.
*
* @param plant The differential drive velocity plant.
* @param trackwidth The distance between the differential drive's left and
* right wheels.

View File

@@ -44,6 +44,10 @@ class WPILIB_DLLEXPORT LTVUnicycleController {
/**
* Constructs a linear time-varying unicycle controller.
*
* See
* https://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning
* for how to select the tolerances.
*
* @param Qelems The maximum desired error tolerance for each state.
* @param Relems The maximum desired control effort for each input.
* @param dt Discretization timestep.

View File

@@ -36,6 +36,10 @@ class LinearQuadraticRegulator {
/**
* Constructs a controller with the given coefficients and plant.
*
* See
* https://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning
* for how to select the tolerances.
*
* @param plant The plant being controlled.
* @param Qelems The maximum desired error tolerance for each state.
* @param Relems The maximum desired control effort for each input.
@@ -50,6 +54,10 @@ class LinearQuadraticRegulator {
/**
* Constructs a controller with the given coefficients and plant.
*
* See
* https://docs.wpilib.org/en/stable/docs/software/advanced-controls/state-space/state-space-intro.html#lqr-tuning
* for how to select the tolerances.
*
* @param A Continuous system matrix of the plant being controlled.
* @param B Continuous input matrix of the plant being controlled.
* @param Qelems The maximum desired error tolerance for each state.