Adds the sensor unwrap class and tests.
Added the Reset function call to the constructor. Cleaned up some comments.
Change-Id: Ib6bc3cacfe586890b7294f11a1a721a14fd0f989
diff --git a/y2018/control_loops/superstructure/superstructure.cc b/y2018/control_loops/superstructure/superstructure.cc
index 70af274..9f5b9fe 100644
--- a/y2018/control_loops/superstructure/superstructure.cc
+++ b/y2018/control_loops/superstructure/superstructure.cc
@@ -35,8 +35,10 @@
drivetrain_output_fetcher_(
event_loop->MakeFetcher<::frc971::control_loops::drivetrain::Output>(
"/drivetrain")),
- intake_left_(constants::GetValues().left_intake.zeroing),
- intake_right_(constants::GetValues().right_intake.zeroing) {}
+ intake_left_(constants::GetValues().left_intake.zeroing,
+ constants::GetValues().left_intake.spring_offset),
+ intake_right_(constants::GetValues().right_intake.zeroing,
+ constants::GetValues().right_intake.spring_offset) {}
void Superstructure::RunIteration(const Goal *unsafe_goal,
const Position *position,