Factor out parts of drivetrain_lib_test
I want to run some year-specific tests with the drivetrain.
Change-Id: I12989b2ec662f7f6b0f0392d7bcf981c6e176e46
diff --git a/frc971/control_loops/state_feedback_loop.h b/frc971/control_loops/state_feedback_loop.h
index 0da8bd6..d5861b7 100644
--- a/frc971/control_loops/state_feedback_loop.h
+++ b/frc971/control_loops/state_feedback_loop.h
@@ -115,6 +115,8 @@
Eigen::Matrix<Scalar, number_of_outputs, 1> &mutable_Y() { return Y_; }
Scalar &mutable_Y(int i, int j = 0) { return mutable_Y()(i, j); }
+ size_t coefficients_size() const { return coefficients_.size(); }
+
const StateFeedbackPlantCoefficients<number_of_states, number_of_inputs,
number_of_outputs, Scalar>
&coefficients(int index) const {