33
44#include " robot/intake.h"
55#include " robot/latch.h"
6+ #include " electronic/distance.h"
67
78namespace Robot {
89/* *
@@ -41,7 +42,7 @@ class Autonomous {
4142 * @param puncher A reference to the Puncher object.
4243 * @param autono A boolean value indicating whether to use autonomous mode.
4344 */
44- void AutoDrive (Intake &intake, Latch &latch);
45+ void AutoDrive (Intake &intake, Latch &latch, DistanceSensor &distance );
4546
4647 /* *
4748 * @brief Switches the autonomous program.
@@ -61,7 +62,7 @@ class Autonomous {
6162 * strategy. It contains the specific actions and movements required for this
6263 * strategy.
6364 */
64- void Auton1 (Intake &intake, Latch &latch);
65+ void Auton1 (Intake &intake, Latch &latch, DistanceSensor &distance );
6566
6667 /* *
6768 * @brief Runs the autonomous path for the near side offensive game strategy.
@@ -70,7 +71,7 @@ class Autonomous {
7071 * strategy. It contains the specific actions and movements required for this
7172 * strategy.
7273 */
73- void Auton2 (Intake &intake, Latch &latch);
74+ void Auton2 (Intake &intake, Latch &latch, DistanceSensor &distance );
7475
7576 /* *
7677 * @brief Runs the puncher routine for the Skills Challenge.
@@ -81,7 +82,7 @@ class Autonomous {
8182 *
8283 * @param puncher A reference to the Puncher object.
8384 */
84- void Auton3 (Intake &intake, Latch &latch);
85+ void Auton3 (Intake &intake, Latch &latch, DistanceSensor &distance );
8586
8687 /* *
8788 * @brief Runs the autonomous path for the far side offensive game strategy.
@@ -91,7 +92,7 @@ class Autonomous {
9192 * @todo Make the autonomous more fleshed out, building it properly for the
9293 * competition
9394 */
94- void Auton4 (Intake &intake, Latch &latch);
95+ void Auton4 (Intake &intake, Latch &latch, DistanceSensor &distance );
9596
9697 /* *
9798 * Executes the Skills challenge autonomous.
@@ -102,6 +103,6 @@ class Autonomous {
102103 * @param intake The reference to the `Intake` object.
103104 * @param latch The reference to the `Latch` object.
104105 */
105- void Auton5 (Intake &intake, Latch &latch);
106+ void Auton5 (Intake &intake, Latch &latch, DistanceSensor &distance );
106107};
107108} // namespace Robot
0 commit comments