mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -61,7 +61,8 @@ class LinearSystemLoop {
|
||||
: LinearSystemLoop(
|
||||
plant, controller, observer,
|
||||
[=](const InputVector& u) {
|
||||
return wpi::math::DesaturateInputVector<Inputs>(u, maxVoltage.value());
|
||||
return wpi::math::DesaturateInputVector<Inputs>(
|
||||
u, maxVoltage.value());
|
||||
},
|
||||
dt) {}
|
||||
|
||||
@@ -101,11 +102,13 @@ class LinearSystemLoop {
|
||||
LinearSystemLoop(
|
||||
LinearQuadraticRegulator<States, Inputs>& controller,
|
||||
const LinearPlantInversionFeedforward<States, Inputs>& feedforward,
|
||||
KalmanFilter<States, Inputs, Outputs>& observer, wpi::units::volt_t maxVoltage)
|
||||
: LinearSystemLoop(
|
||||
controller, feedforward, observer, [=](const InputVector& u) {
|
||||
return wpi::math::DesaturateInputVector<Inputs>(u, maxVoltage.value());
|
||||
}) {}
|
||||
KalmanFilter<States, Inputs, Outputs>& observer,
|
||||
wpi::units::volt_t maxVoltage)
|
||||
: LinearSystemLoop(controller, feedforward, observer,
|
||||
[=](const InputVector& u) {
|
||||
return wpi::math::DesaturateInputVector<Inputs>(
|
||||
u, maxVoltage.value());
|
||||
}) {}
|
||||
|
||||
/**
|
||||
* Constructs a state-space loop with the given controller, feedforward,
|
||||
|
||||
Reference in New Issue
Block a user