1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
auton.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3
4#include "robot/intake.h"
5#include "robot/latch.h"
6
7namespace Robot
8{
15public:
16 enum AUTON_ROUTINE { RED_LEFT = 1, RED_RIGHT = 2, BLUE_LEFT = -1, BLUE_RIGHT = -2, SKILLS = 0};
17
27
33 static std::string autonName;
34
45 void AutoDrive(Intake &intake, Latch &latch);
46
55 static void AutonSwitcher(int autonNum);
56
57private:
65 void Auton1(Intake &intake, Latch &latch);
66
74 void Auton2(Intake &intake, Latch &latch);
75
85 void Auton3(Intake &intake, Latch &latch);
86
95 void Auton4(Intake &intake, Latch &latch);
96
106 void Auton5(Intake &intake, Latch &latch);
107};
108} // namespace Robot
The Autonomous class contains classes and functions related to the robot's autonomous behavior.
Definition auton.h:14
void AutoDrive(Intake &intake, Latch &latch)
Drives the robot autonomously.
Definition auton.cpp:108
void Auton4(Intake &intake, Latch &latch)
Runs the autonomous path for the far side offensive game strategy. This function executes the autonom...
Definition auton.cpp:88
static std::string autonName
The name of the autonomous program.
Definition auton.h:33
void Auton1(Intake &intake, Latch &latch)
Runs the autonomous path for the far side defensive game strategy.
Definition auton.cpp:23
void Auton2(Intake &intake, Latch &latch)
Runs the autonomous path for the near side offensive game strategy.
Definition auton.cpp:53
static AUTON_ROUTINE auton
Sets the number of the autonomous program to use.
Definition auton.h:26
void Auton3(Intake &intake, Latch &latch)
Runs the puncher routine for the Skills Challenge.
Definition auton.cpp:80
static void AutonSwitcher(int autonNum)
Switches the autonomous program.
Definition auton.cpp:131
void Auton5(Intake &intake, Latch &latch)
Definition auton.cpp:102
The Intake class represents a robot intake system.
Definition intake.h:9
The Latch class represents a latching mechanism.
Definition latch.h:8
Definition auton.h:8