Add alliance-switching to 2020 auto
Add code to automatically switch the side of the field we initialize to
based on the alliance reported by the driver's station (this can be set
from the driver's station when not connected to the FMS).
Change-Id: I8c7576e451a0f0762b29f2fe8c407791900c4727
diff --git a/y2020/actors/autonomous_actor.h b/y2020/actors/autonomous_actor.h
index d86feab..747fa8d 100644
--- a/y2020/actors/autonomous_actor.h
+++ b/y2020/actors/autonomous_actor.h
@@ -23,6 +23,8 @@
::aos::Sender<::frc971::control_loops::drivetrain::LocalizerControl>
localizer_control_sender_;
+ aos::Fetcher<aos::JoystickState> joystick_state_fetcher_;
+ aos::Alliance alliance_ = aos::Alliance::kInvalid;
};
} // namespace actors