Move aos/controls to frc971/control_loops
Also put what was aos/controls/control_loops.fbs in y2012/control_loops
because that's the only user.
Change-Id: I8f402b0708103077e135a41e55ef5e4f23681d87
Signed-off-by: James Kuszmaul <jabukuszmaul@gmail.com>
diff --git a/frc971/control_loops/coerce_goal.h b/frc971/control_loops/coerce_goal.h
index b682b85..1847682 100644
--- a/frc971/control_loops/coerce_goal.h
+++ b/frc971/control_loops/coerce_goal.h
@@ -2,15 +2,14 @@
#define FRC971_CONTROL_LOOPS_COERCE_GOAL_H_
#include "Eigen/Dense"
-
-#include "aos/controls/polytope.h"
+#include "frc971/control_loops/polytope.h"
namespace frc971 {
namespace control_loops {
template <typename Scalar = double>
Eigen::Matrix<Scalar, 2, 1> DoCoerceGoal(
- const aos::controls::HVPolytope<2, 4, 4, Scalar> ®ion,
+ const frc971::controls::HVPolytope<2, 4, 4, Scalar> ®ion,
const Eigen::Matrix<Scalar, 1, 2> &K, Scalar w,
const Eigen::Matrix<Scalar, 2, 1> &R, bool *is_inside);
@@ -20,7 +19,7 @@
// finds a point that is inside the region and closest to the line.
template <typename Scalar = double>
static inline Eigen::Matrix<Scalar, 2, 1> CoerceGoal(
- const aos::controls::HVPolytope<2, 4, 4, Scalar> ®ion,
+ const frc971::controls::HVPolytope<2, 4, 4, Scalar> ®ion,
const Eigen::Matrix<Scalar, 1, 2> &K, Scalar w,
const Eigen::Matrix<Scalar, 2, 1> &R) {
return DoCoerceGoal(region, K, w, R, nullptr);
@@ -28,7 +27,7 @@
template <typename Scalar>
Eigen::Matrix<Scalar, 2, 1> DoCoerceGoal(
- const aos::controls::HVPolytope<2, 4, 4, Scalar> ®ion,
+ const frc971::controls::HVPolytope<2, 4, 4, Scalar> ®ion,
const Eigen::Matrix<Scalar, 1, 2> &K, Scalar w,
const Eigen::Matrix<Scalar, 2, 1> &R, bool *is_inside) {
if (region.IsInside(R)) {