[wpilibc] Add LinearSystemLoop C++ ctor to match Java (#2755)

Co-authored-by: Prateek Machiraju <prateek.machiraju@gmail.com>
This commit is contained in:
Matt
2020-10-02 17:37:26 -07:00
committed by GitHub
parent 330b90e046
commit 21d949daa8
7 changed files with 74 additions and 54 deletions

View File

@@ -43,9 +43,7 @@ class StateSpace : public testing::Test {
}();
LinearQuadraticRegulator<2, 1> controller{plant, {0.02, 0.4}, {12.0}, kDt};
KalmanFilter<2, 1, 1> observer{plant, {0.05, 1.0}, {0.0001}, kDt};
LinearPlantInversionFeedforward<2, 1> feedforward{plant, kDt};
LinearSystemLoop<2, 1, 1> loop{plant, controller, feedforward, observer,
12_V};
LinearSystemLoop<2, 1, 1> loop{plant, controller, observer, 12_V, kDt};
};
void Update(LinearSystemLoop<2, 1, 1>& loop, double noise) {