commit | ec635d2559c61c56bd42b1d36a14732d0bcd50f8 | [log] [tgz] |
---|---|---|
author | James Kuszmaul <jabukuszmaul+collab@gmail.com> | Sat Aug 12 18:39:24 2023 -0700 |
committer | James Kuszmaul <jabukuszmaul+collab@gmail.com> | Fri Aug 25 16:18:28 2023 -0700 |
tree | fe2da5cc9322273e0c5ecdaefdaf70d0137cb5ed | |
parent | bdc6a794d1d9c7682e9720fad7c1b02e95493a9b [diff] |
Split up zeroing library BUILD rules There was no good reason for one build rule to have both the interface and a bunch of implementations; split it up and make the relevant users depend on the libraries directly. Change-Id: If6a0aa49dd7ea588b7325604658bc0594db4aac0 Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/y2020/control_loops/superstructure/hood/BUILD b/y2020/control_loops/superstructure/hood/BUILD index 437c67a..7983e62 100644 --- a/y2020/control_loops/superstructure/hood/BUILD +++ b/y2020/control_loops/superstructure/hood/BUILD
@@ -44,6 +44,7 @@ target_compatible_with = ["@platforms//os:linux"], deps = [ "//frc971/zeroing", + "//frc971/zeroing:absolute_and_absolute_encoder", "//y2020:constants", ], )
diff --git a/y2020/control_loops/superstructure/hood/hood_encoder_zeroing_estimator.cc b/y2020/control_loops/superstructure/hood/hood_encoder_zeroing_estimator.cc index dee4461..249dd00 100644 --- a/y2020/control_loops/superstructure/hood/hood_encoder_zeroing_estimator.cc +++ b/y2020/control_loops/superstructure/hood/hood_encoder_zeroing_estimator.cc
@@ -2,6 +2,8 @@ #include <cmath> +#include "frc971/zeroing/absolute_and_absolute_encoder.h" + namespace y2020::control_loops::superstructure::hood { HoodEncoderZeroingEstimator::HoodEncoderZeroingEstimator(