Wrote the 5 autonomous modes.
Change-Id: I46d3607811c78be14a3ca5f445899b15b0627fb5
diff --git a/y2016/control_loops/shooter/shooter.h b/y2016/control_loops/shooter/shooter.h
index d3a2f86..0b515f1 100644
--- a/y2016/control_loops/shooter/shooter.h
+++ b/y2016/control_loops/shooter/shooter.h
@@ -65,8 +65,10 @@
WAITING_FOR_SPINDOWN = 1,
// We are latched shooting waiting for the wheel to spin back up.
WAITING_FOR_SPINUP = 2,
+ // Increment the shot count for the Status.
+ INCREMENT_SHOT_COUNT = 3,
// Wait until the button is released.
- WAITING_FOR_SHOT_NEGEDGE = 3
+ WAITING_FOR_SHOT_NEGEDGE = 4,
};
protected:
@@ -78,6 +80,9 @@
private:
ShooterSide left_, right_;
+ // The number of shots since starting the Shooter.
+ uint32_t shots_;
+
// Current state.
ShooterLatchState state_ = ShooterLatchState::PASS_THROUGH;
::aos::time::Time last_pre_shot_timeout_;