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
9
10namespace Robot {
11
27public:
33 Drivetrain();
34
43
48
61 void run();
62
70 static std::string SwitchDrive(int driveMode);
71
75 static std::string toggleDrive();
76
80 static int thrustHandler(int thrust);
81
82 static bool isReversed;
83
84private:
91 void ArcadeDrive();
92
99 void CurvatureDrive();
100
107 void TankDrive();
108};
109
110} // namespace Robot
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:42
void ArcadeDrive()
Drives the robot using arcade drive.
static DRIVE_MODE driveMode
Active drive control scheme.
Definition drivetrain.h:47
Drivetrain()
Initializes the Drivetrain object.
void CurvatureDrive()
Drives the robot using curvature drive.
static int thrustHandler(int thrust)
Toggles the orientation of the drivetrain.
static bool isReversed
Definition drivetrain.h:82
void TankDrive()
Drives the robot using tank drive.
Definition auton.h:8