Make a DurationInSeconds function
Also, run clang-format on all the files I changed because I am too lazy
to figure out how to call clang-format on just the lines I changed.
Change-Id: I071c6f81dced533a0a269f25a258348132a7056a
diff --git a/y2017/control_loops/superstructure/shooter/shooter.cc b/y2017/control_loops/superstructure/shooter/shooter.cc
index fee9124..5023e6f 100644
--- a/y2017/control_loops/superstructure/shooter/shooter.cc
+++ b/y2017/control_loops/superstructure/shooter/shooter.cc
@@ -98,8 +98,7 @@
X_hat_current_ = loop_->X_hat();
position_error_ = X_hat_current_(0, 0) - Y_(0, 0);
- dt_velocity_ = dt_position_ /
- chrono::duration_cast<chrono::duration<double>>(dt).count();
+ dt_velocity_ = dt_position_ / ::aos::time::DurationInSeconds(dt);
fixed_dt_velocity_ = dt_position_ / 0.00505;
loop_->Update(disabled, dt);