1516X High Stakes 2.0
Codebase for 1516X High Stakes season
Loading...
Searching...
No Matches
drivetrain.h
Go to the documentation of this file.
1// Header guard - Ensures that the header file will not get double imported.
2#pragma once
3#include <string>
4
10namespace Robot
11{
12
28public:
34 Drivetrain();
35
44
49
62 void run();
63
71 static std::string SwitchDrive(int driveMode);
72
76 static std::string toggleDrive();
77
78private:
85 void ArcadeDrive();
86
93 void CurvatureDrive();
94
101 void TankDrive();
102};
103
104} // namespace Robot
Represents the drivetrain of the robot.
Definition drivetrain.h:27
static std::string toggleDrive()
Cycles through each drivetrain control mode.
void run()
Runs the drivetrain.
static std::string SwitchDrive(int driveMode)
Switches the DriveTrain mode between arcade and tank drive.
DRIVE_MODE
Drive control schemes.
Definition drivetrain.h:43
void ArcadeDrive()
Drives the robot using arcade drive.
static DRIVE_MODE driveMode
Active drive control scheme.
Definition drivetrain.h:48
Drivetrain()
Initializes the Drivetrain object.
void CurvatureDrive()
Drives the robot using curvature drive.
void TankDrive()
Drives the robot using tank drive.
Definition auton.h:8