|
| | LoopBundle (const wpi::math::LinearSystem< States, 1, 1 > &system, const wpi::util::array< double, States > &qElems, const wpi::util::array< double, 1 > &rElems, const wpi::util::array< double, States > &stateStdDevs, const wpi::util::array< double, 1 > &measStdDevs, wpi::units::volt_t maxV, wpi::units::second_t dt) |
| | LoopBundle (const LoopBundle &)=delete |
| LoopBundle & | operator= (const LoopBundle &)=delete |
| | LoopBundle (LoopBundle &&)=delete |
| LoopBundle & | operator= (LoopBundle &&)=delete |
|
| wpi::math::LinearSystem< States, 1, 1 > | plant |
| | The plant the filter points to.
|
| wpi::math::LinearQuadraticRegulator< States, 1 > | controller |
| | The LQR the loop points to.
|
| wpi::math::KalmanFilter< States, 1, 1 > | observer |
| | The Kalman filter the loop points to.
|
| wpi::math::LinearSystemLoop< States, 1, 1 > | loop |
| | The loop to run.
|
template<int States>
struct yams::math::LQRConfig::LoopBundle< States >
A LinearSystemLoop with everything it points to. wpi::math::LinearSystemLoop keeps raw pointers to its LQR and Kalman filter, and wpi::math::KalmanFilter keeps a raw pointer to its plant, so all four live together here, on the heap, the plant first. Neither copyable nor movable, so the pointers never dangle.
- Template Parameters
-
| States | Number of modeled states: 1 for a flywheel, 2 for an arm or elevator. |