blob: db9f1c534a12b5247f89b7e00d9f3b0b9f7a890f [file] [log] [blame]
Comran Morshed5323ecb2015-12-26 20:50:55 +00001#include "frc971/control_loops/drivetrain/polydrivetrain.h"
Austin Schuh96ce8ae2015-11-26 12:46:02 -08002
Austin Schuh96ce8ae2015-11-26 12:46:02 -08003#include "aos/common/commonmath.h"
Austin Schuhc5fceb82017-02-25 16:24:12 -08004#include "aos/common/controls/polytope.h"
5#include "aos/common/logging/logging.h"
Austin Schuh96ce8ae2015-11-26 12:46:02 -08006#include "aos/common/logging/matrix_logging.h"
Austin Schuhc5fceb82017-02-25 16:24:12 -08007#include "aos/common/logging/queue_logging.h"
Austin Schuh96ce8ae2015-11-26 12:46:02 -08008
9#include "aos/common/messages/robot_state.q.h"
Austin Schuh96ce8ae2015-11-26 12:46:02 -080010#include "frc971/control_loops/coerce_goal.h"
Comran Morshed5323ecb2015-12-26 20:50:55 +000011#include "frc971/control_loops/drivetrain/drivetrain.q.h"
12#include "frc971/control_loops/drivetrain/drivetrain_config.h"
Austin Schuhc5fceb82017-02-25 16:24:12 -080013#include "frc971/control_loops/state_feedback_loop.h"
Austin Schuh96ce8ae2015-11-26 12:46:02 -080014
Comran Morshed5323ecb2015-12-26 20:50:55 +000015namespace frc971 {
Austin Schuh96ce8ae2015-11-26 12:46:02 -080016namespace control_loops {
Austin Schuh6197a182015-11-28 16:04:40 -080017namespace drivetrain {
Austin Schuh96ce8ae2015-11-26 12:46:02 -080018
Austin Schuh41565602016-02-28 20:10:49 -080019PolyDrivetrain::PolyDrivetrain(const DrivetrainConfig &dt_config,
Diana Burgessd0180f12018-03-21 21:24:17 -070020 StateFeedbackLoop<7, 2, 4> *kf)
Austin Schuh41565602016-02-28 20:10:49 -080021 : kf_(kf),
Austin Schuh6613a072016-01-06 19:54:48 -080022 U_Poly_((Eigen::Matrix<double, 4, 2>() << /*[[*/ 1, 0 /*]*/,
Austin Schuh96ce8ae2015-11-26 12:46:02 -080023 /*[*/ -1, 0 /*]*/,
24 /*[*/ 0, 1 /*]*/,
Austin Schuhc5fceb82017-02-25 16:24:12 -080025 /*[*/ 0, -1 /*]]*/)
26 .finished(),
Austin Schuh96ce8ae2015-11-26 12:46:02 -080027 (Eigen::Matrix<double, 4, 1>() << /*[[*/ 12 /*]*/,
28 /*[*/ 12 /*]*/,
29 /*[*/ 12 /*]*/,
Austin Schuhc5fceb82017-02-25 16:24:12 -080030 /*[*/ 12 /*]]*/)
31 .finished(),
Austin Schuhc7a0a3d2016-10-15 16:22:47 -070032 (Eigen::Matrix<double, 2, 4>() << /*[[*/ 12, 12, -12, -12 /*]*/,
Austin Schuhc5fceb82017-02-25 16:24:12 -080033 /*[*/ -12, 12, 12, -12 /*]*/)
34 .finished()),
Comran Morshed5323ecb2015-12-26 20:50:55 +000035 loop_(new StateFeedbackLoop<2, 2, 2>(dt_config.make_v_drivetrain_loop())),
Austin Schuh96ce8ae2015-11-26 12:46:02 -080036 ttrust_(1.1),
37 wheel_(0.0),
38 throttle_(0.0),
39 quickturn_(false),
Austin Schuh94596dd2016-03-13 21:41:26 -070040 left_gear_(dt_config.default_high_gear ? Gear::HIGH : Gear::LOW),
41 right_gear_(dt_config.default_high_gear ? Gear::HIGH : Gear::LOW),
Comran Morshed5323ecb2015-12-26 20:50:55 +000042 counter_(0),
43 dt_config_(dt_config) {
Austin Schuh96ce8ae2015-11-26 12:46:02 -080044 last_position_.Zero();
45 position_.Zero();
46}
47
48double PolyDrivetrain::MotorSpeed(
49 const constants::ShifterHallEffect &hall_effect, double shifter_position,
Comran Morshed2091fe52016-02-19 17:27:21 +000050 double velocity, Gear gear) {
51 const double high_gear_speed =
52 velocity / dt_config_.high_gear_ratio / dt_config_.wheel_radius;
53 const double low_gear_speed =
54 velocity / dt_config_.low_gear_ratio / dt_config_.wheel_radius;
Austin Schuh96ce8ae2015-11-26 12:46:02 -080055
Comran Morshed2091fe52016-02-19 17:27:21 +000056 if (shifter_position < hall_effect.clear_low) {
57 // We're in low gear, so return speed for that gear.
58 return low_gear_speed;
59 } else if (shifter_position > hall_effect.clear_high) {
60 // We're in high gear, so return speed for that gear.
61 return high_gear_speed;
62 }
63
64 // Not in gear, so speed-match to destination gear.
65 switch (gear) {
Austin Schuh093535c2016-03-05 23:21:00 -080066 case Gear::HIGH:
67 case Gear::SHIFTING_UP:
Comran Morshed2091fe52016-02-19 17:27:21 +000068 return high_gear_speed;
Austin Schuh093535c2016-03-05 23:21:00 -080069 case Gear::LOW:
70 case Gear::SHIFTING_DOWN:
Austin Schuh746fc6d2016-02-21 02:53:33 -080071 default:
Comran Morshed2091fe52016-02-19 17:27:21 +000072 return low_gear_speed;
73 break;
Austin Schuh96ce8ae2015-11-26 12:46:02 -080074 }
75}
76
Austin Schuh093535c2016-03-05 23:21:00 -080077Gear PolyDrivetrain::UpdateSingleGear(Gear requested_gear, Gear current_gear) {
Austin Schuhb9d5e8e2015-12-27 14:08:47 -080078 const Gear shift_up =
Comran Morshed5323ecb2015-12-26 20:50:55 +000079 (dt_config_.shifter_type == ShifterType::HALL_EFFECT_SHIFTER)
Austin Schuh093535c2016-03-05 23:21:00 -080080 ? Gear::SHIFTING_UP
81 : Gear::HIGH;
Austin Schuhb9d5e8e2015-12-27 14:08:47 -080082 const Gear shift_down =
Comran Morshed5323ecb2015-12-26 20:50:55 +000083 (dt_config_.shifter_type == ShifterType::HALL_EFFECT_SHIFTER)
Austin Schuh093535c2016-03-05 23:21:00 -080084 ? Gear::SHIFTING_DOWN
85 : Gear::LOW;
Austin Schuhb9d5e8e2015-12-27 14:08:47 -080086 if (current_gear != requested_gear) {
87 if (IsInGear(current_gear)) {
Austin Schuh093535c2016-03-05 23:21:00 -080088 if (requested_gear == Gear::HIGH) {
89 if (current_gear != Gear::HIGH) {
Austin Schuhb9d5e8e2015-12-27 14:08:47 -080090 current_gear = shift_up;
91 }
92 } else {
Austin Schuh093535c2016-03-05 23:21:00 -080093 if (current_gear != Gear::LOW) {
Austin Schuhb9d5e8e2015-12-27 14:08:47 -080094 current_gear = shift_down;
95 }
96 }
97 } else {
Austin Schuh093535c2016-03-05 23:21:00 -080098 if (requested_gear == Gear::HIGH && current_gear == Gear::SHIFTING_DOWN) {
99 current_gear = Gear::SHIFTING_UP;
100 } else if (requested_gear == Gear::LOW &&
101 current_gear == Gear::SHIFTING_UP) {
102 current_gear = Gear::SHIFTING_DOWN;
Austin Schuhb9d5e8e2015-12-27 14:08:47 -0800103 }
104 }
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800105 }
Austin Schuhb9d5e8e2015-12-27 14:08:47 -0800106 return current_gear;
107}
108
Austin Schuh093535c2016-03-05 23:21:00 -0800109void PolyDrivetrain::SetGoal(
110 const ::frc971::control_loops::DrivetrainQueue::Goal &goal) {
Austin Schuh2b1fce02018-03-02 20:05:20 -0800111 const double wheel = goal.wheel;
Austin Schuh093535c2016-03-05 23:21:00 -0800112 const double throttle = goal.throttle;
113 const bool quickturn = goal.quickturn;
114 const bool highgear = goal.highgear;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800115
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800116 // Apply a sin function that's scaled to make it feel better.
Adam Snaider94a52372016-10-19 20:06:01 -0700117 const double angular_range = M_PI_2 * dt_config_.wheel_non_linearity;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800118
119 wheel_ = sin(angular_range * wheel) / sin(angular_range);
120 wheel_ = sin(angular_range * wheel_) / sin(angular_range);
Austin Schuh1dbee482016-02-28 20:12:24 -0800121 wheel_ = 2.0 * wheel - wheel_;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800122 quickturn_ = quickturn;
123
Austin Schuhe8a54c02018-03-05 00:25:58 -0800124 if (quickturn_) {
Adam Snaider94a52372016-10-19 20:06:01 -0700125 wheel_ *= dt_config_.quickturn_wheel_multiplier;
Austin Schuhe8a54c02018-03-05 00:25:58 -0800126 } else {
127 wheel_ *= dt_config_.wheel_multiplier;
Adam Snaider94a52372016-10-19 20:06:01 -0700128 }
129
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800130 static const double kThrottleDeadband = 0.05;
131 if (::std::abs(throttle) < kThrottleDeadband) {
132 throttle_ = 0;
133 } else {
134 throttle_ = copysign(
135 (::std::abs(throttle) - kThrottleDeadband) / (1.0 - kThrottleDeadband),
136 throttle);
137 }
138
Austin Schuh093535c2016-03-05 23:21:00 -0800139 Gear requested_gear = highgear ? Gear::HIGH : Gear::LOW;
140
141 left_gear_ = PolyDrivetrain::UpdateSingleGear(requested_gear, left_gear_);
142 right_gear_ = PolyDrivetrain::UpdateSingleGear(requested_gear, right_gear_);
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800143}
Austin Schuhb9d5e8e2015-12-27 14:08:47 -0800144
Austin Schuh6197a182015-11-28 16:04:40 -0800145void PolyDrivetrain::SetPosition(
Austin Schuh093535c2016-03-05 23:21:00 -0800146 const ::frc971::control_loops::DrivetrainQueue::Position *position,
147 Gear left_gear, Gear right_gear) {
148 left_gear_ = left_gear;
149 right_gear_ = right_gear;
150 last_position_ = position_;
151 position_ = *position;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800152}
153
Austin Schuh41565602016-02-28 20:10:49 -0800154double PolyDrivetrain::FilterVelocity(double throttle) const {
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800155 const Eigen::Matrix<double, 2, 2> FF =
Austin Schuhc5fceb82017-02-25 16:24:12 -0800156 loop_->plant().B().inverse() *
157 (Eigen::Matrix<double, 2, 2>::Identity() - loop_->plant().A());
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800158
159 constexpr int kHighGearController = 3;
160 const Eigen::Matrix<double, 2, 2> FF_high =
Austin Schuhc5fceb82017-02-25 16:24:12 -0800161 loop_->plant().coefficients(kHighGearController).B.inverse() *
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800162 (Eigen::Matrix<double, 2, 2>::Identity() -
Austin Schuhc5fceb82017-02-25 16:24:12 -0800163 loop_->plant().coefficients(kHighGearController).A);
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800164
165 ::Eigen::Matrix<double, 1, 2> FF_sum = FF.colwise().sum();
166 int min_FF_sum_index;
167 const double min_FF_sum = FF_sum.minCoeff(&min_FF_sum_index);
Austin Schuh32501832017-02-25 18:32:56 -0800168 const double min_K_sum = loop_->controller().K().col(min_FF_sum_index).sum();
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800169 const double high_min_FF_sum = FF_high.col(0).sum();
170
171 const double adjusted_ff_voltage =
172 ::aos::Clip(throttle * 12.0 * min_FF_sum / high_min_FF_sum, -12.0, 12.0);
173 return (adjusted_ff_voltage +
174 ttrust_ * min_K_sum * (loop_->X_hat(0, 0) + loop_->X_hat(1, 0)) /
175 2.0) /
176 (ttrust_ * min_K_sum + min_FF_sum);
177}
178
179double PolyDrivetrain::MaxVelocity() {
180 const Eigen::Matrix<double, 2, 2> FF =
Austin Schuhc5fceb82017-02-25 16:24:12 -0800181 loop_->plant().B().inverse() *
182 (Eigen::Matrix<double, 2, 2>::Identity() - loop_->plant().A());
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800183
184 constexpr int kHighGearController = 3;
185 const Eigen::Matrix<double, 2, 2> FF_high =
Austin Schuhc5fceb82017-02-25 16:24:12 -0800186 loop_->plant().coefficients(kHighGearController).B.inverse() *
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800187 (Eigen::Matrix<double, 2, 2>::Identity() -
Austin Schuhc5fceb82017-02-25 16:24:12 -0800188 loop_->plant().coefficients(kHighGearController).A);
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800189
190 ::Eigen::Matrix<double, 1, 2> FF_sum = FF.colwise().sum();
191 int min_FF_sum_index;
192 const double min_FF_sum = FF_sum.minCoeff(&min_FF_sum_index);
193 // const double min_K_sum = loop_->K().col(min_FF_sum_index).sum();
194 const double high_min_FF_sum = FF_high.col(0).sum();
195
196 const double adjusted_ff_voltage =
197 ::aos::Clip(12.0 * min_FF_sum / high_min_FF_sum, -12.0, 12.0);
198 return adjusted_ff_voltage / min_FF_sum;
199}
200
201void PolyDrivetrain::Update() {
Comran Morshed76ca8f52016-02-21 17:26:28 +0000202 if (dt_config_.loop_type == LoopType::CLOSED_LOOP) {
Austin Schuh41565602016-02-28 20:10:49 -0800203 loop_->mutable_X_hat()(0, 0) = kf_->X_hat()(1, 0);
204 loop_->mutable_X_hat()(1, 0) = kf_->X_hat()(3, 0);
Comran Morshed76ca8f52016-02-21 17:26:28 +0000205 }
Austin Schuh0520cbf2016-01-06 19:58:36 -0800206
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800207 // TODO(austin): Observer for the current velocity instead of difference
208 // calculations.
209 ++counter_;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800210
Austin Schuhb9d5e8e2015-12-27 14:08:47 -0800211 if (IsInGear(left_gear_) && IsInGear(right_gear_)) {
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800212 // FF * X = U (steady state)
213 const Eigen::Matrix<double, 2, 2> FF =
Austin Schuhc5fceb82017-02-25 16:24:12 -0800214 loop_->plant().B().inverse() *
215 (Eigen::Matrix<double, 2, 2>::Identity() - loop_->plant().A());
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800216
217 // Invert the plant to figure out how the velocity filter would have to
218 // work
219 // out in order to filter out the forwards negative inertia.
220 // This math assumes that the left and right power and velocity are
221 // equals,
222 // and that the plant is the same on the left and right.
223 const double fvel = FilterVelocity(throttle_);
224
225 const double sign_svel = wheel_ * ((fvel > 0.0) ? 1.0 : -1.0);
226 double steering_velocity;
227 if (quickturn_) {
228 steering_velocity = wheel_ * MaxVelocity();
229 } else {
230 steering_velocity = ::std::abs(fvel) * wheel_;
231 }
232 const double left_velocity = fvel - steering_velocity;
233 const double right_velocity = fvel + steering_velocity;
Austin Schuh41565602016-02-28 20:10:49 -0800234 goal_left_velocity_ = left_velocity;
235 goal_right_velocity_ = right_velocity;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800236
237 // Integrate velocity to get the position.
238 // This position is used to get integral control.
239 loop_->mutable_R() << left_velocity, right_velocity;
240
241 if (!quickturn_) {
242 // K * R = w
243 Eigen::Matrix<double, 1, 2> equality_k;
244 equality_k << 1 + sign_svel, -(1 - sign_svel);
245 const double equality_w = 0.0;
246
247 // Construct a constraint on R by manipulating the constraint on U
Austin Schuhc7a0a3d2016-10-15 16:22:47 -0700248 ::aos::controls::HVPolytope<2, 4, 4> R_poly_hv(
Austin Schuh32501832017-02-25 18:32:56 -0800249 U_Poly_.static_H() * (loop_->controller().K() + FF),
250 U_Poly_.static_k() +
251 U_Poly_.static_H() * loop_->controller().K() * loop_->X_hat(),
252 (loop_->controller().K() + FF).inverse() *
253 ::aos::controls::ShiftPoints<2, 4>(
254 U_Poly_.StaticVertices(),
255 loop_->controller().K() * loop_->X_hat()));
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800256
257 // Limit R back inside the box.
258 loop_->mutable_R() =
Austin Schuhc7a0a3d2016-10-15 16:22:47 -0700259 CoerceGoal(R_poly_hv, equality_k, equality_w, loop_->R());
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800260 }
261
262 const Eigen::Matrix<double, 2, 1> FF_volts = FF * loop_->R();
263 const Eigen::Matrix<double, 2, 1> U_ideal =
Austin Schuh32501832017-02-25 18:32:56 -0800264 loop_->controller().K() * (loop_->R() - loop_->X_hat()) + FF_volts;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800265
266 for (int i = 0; i < 2; i++) {
267 loop_->mutable_U()[i] = ::aos::Clip(U_ideal[i], -12, 12);
268 }
Comran Morshed76ca8f52016-02-21 17:26:28 +0000269
270 if (dt_config_.loop_type == LoopType::OPEN_LOOP) {
271 loop_->mutable_X_hat() =
Austin Schuhc5fceb82017-02-25 16:24:12 -0800272 loop_->plant().A() * loop_->X_hat() + loop_->plant().B() * loop_->U();
Comran Morshed76ca8f52016-02-21 17:26:28 +0000273 }
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700274
275 // Housekeeping: set the shifting logging values to zero, because we're not shifting
276 left_motor_speed_ = 0.0;
277 right_motor_speed_ = 0.0;
278 current_left_velocity_ = 0.0;
279 current_right_velocity_ = 0.0;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800280 } else {
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700281 current_left_velocity_ =
Austin Schuh093535c2016-03-05 23:21:00 -0800282 (position_.left_encoder - last_position_.left_encoder) / dt_config_.dt;
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700283 current_right_velocity_ =
Comran Morshed5323ecb2015-12-26 20:50:55 +0000284 (position_.right_encoder - last_position_.right_encoder) /
Austin Schuh093535c2016-03-05 23:21:00 -0800285 dt_config_.dt;
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700286 left_motor_speed_ =
Comran Morshed5323ecb2015-12-26 20:50:55 +0000287 MotorSpeed(dt_config_.left_drive, position_.left_shifter_position,
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700288 current_left_velocity_, left_gear_);
289 right_motor_speed_ =
Comran Morshed5323ecb2015-12-26 20:50:55 +0000290 MotorSpeed(dt_config_.right_drive, position_.right_shifter_position,
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700291 current_right_velocity_, right_gear_);
Comran Morshed5323ecb2015-12-26 20:50:55 +0000292
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700293 goal_left_velocity_ = current_left_velocity_;
294 goal_right_velocity_ = current_right_velocity_;
Comran Morshed5323ecb2015-12-26 20:50:55 +0000295
Comran Morshed2091fe52016-02-19 17:27:21 +0000296 // Any motor is not in gear. Speed match.
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800297 ::Eigen::Matrix<double, 1, 1> R_left;
298 ::Eigen::Matrix<double, 1, 1> R_right;
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700299 R_left(0, 0) = left_motor_speed_;
300 R_right(0, 0) = right_motor_speed_;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800301
302 const double wiggle =
Austin Schuhf59b8ee2016-03-19 21:31:36 -0700303 (static_cast<double>((counter_ % 30) / 15) - 0.5) * 8.0;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800304
305 loop_->mutable_U(0, 0) = ::aos::Clip(
Comran Morshed5323ecb2015-12-26 20:50:55 +0000306 (R_left / dt_config_.v)(0, 0) + (IsInGear(left_gear_) ? 0 : wiggle),
307 -12.0, 12.0);
308 loop_->mutable_U(1, 0) = ::aos::Clip(
309 (R_right / dt_config_.v)(0, 0) + (IsInGear(right_gear_) ? 0 : wiggle),
310 -12.0, 12.0);
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800311 loop_->mutable_U() *= 12.0 / ::aos::robot_state->voltage_battery;
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800312 }
313}
314
Austin Schuh093535c2016-03-05 23:21:00 -0800315void PolyDrivetrain::SetOutput(
Comran Morshed5323ecb2015-12-26 20:50:55 +0000316 ::frc971::control_loops::DrivetrainQueue::Output *output) {
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800317 if (output != NULL) {
318 output->left_voltage = loop_->U(0, 0);
319 output->right_voltage = loop_->U(1, 0);
Austin Schuh093535c2016-03-05 23:21:00 -0800320 output->left_high = MaybeHigh(left_gear_);
321 output->right_high = MaybeHigh(right_gear_);
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800322 }
323}
324
Austin Schuh41565602016-02-28 20:10:49 -0800325void PolyDrivetrain::PopulateStatus(
326 ::frc971::control_loops::DrivetrainQueue::Status *status) {
327 status->left_velocity_goal = goal_left_velocity_;
328 status->right_velocity_goal = goal_right_velocity_;
Kyle Stachowicz2f3c20f2017-07-13 16:04:05 -0700329
330 status->cim_logging.left_in_gear = IsInGear(left_gear_);
331 status->cim_logging.left_motor_speed = left_motor_speed_;
332 status->cim_logging.left_velocity = current_left_velocity_;
333
334 status->cim_logging.right_in_gear = IsInGear(right_gear_);
335 status->cim_logging.right_motor_speed = right_motor_speed_;
336 status->cim_logging.right_velocity = current_right_velocity_;
Austin Schuh41565602016-02-28 20:10:49 -0800337}
338
Austin Schuh6197a182015-11-28 16:04:40 -0800339} // namespace drivetrain
Austin Schuh96ce8ae2015-11-26 12:46:02 -0800340} // namespace control_loops
Comran Morshed5323ecb2015-12-26 20:50:55 +0000341} // namespace frc971