ART v1.0-alpha
A Robot Template that raises the floor for VRC teams
Loading...
Searching...
No Matches
TankDrive.h
Go to the documentation of this file.
1
15#pragma once
16
18
19namespace art
20{
55 {
56 public:
65 TankDrive(vex::motor_group left, vex::motor_group right);
66
81 void arcade(double x, double y, double rot);
90 void arcade(double drive, double rot);
101 void tank(double left, double right);
102
115 void LeftSplitArcade(const vex::controller &cont);
143 void LeftSplitArcadeCurved(const vex::controller &cont);
144
153 void update();
154 protected:
175
185 double m_cmdX{0};
193 double m_cmdY{0};
201 double m_cmdRot{0};
202 };
203} // namespace art
Header containing a simple motor_group wrapper class.
A Simple Motor_Group Wrapper Class.
A Simple TankDrive class.
Definition TankDrive.h:55
SimpleMotorGroup m_left
a SimpleMotorGroup for the left side
Definition TankDrive.h:164
double m_cmdY
The Stored command for the Y-direction.
Definition TankDrive.h:193
TankDrive(vex::motor_group left, vex::motor_group right)
Construct a new Tank Drive object.
Definition TankDrive.cpp:20
void LeftSplitArcade(const vex::controller &cont)
Commands the TankDrive using arcade inputs directly from a controller.
Definition TankDrive.cpp:41
void arcade(double x, double y, double rot)
Commands the TankDrive using arcade inputs.
Definition TankDrive.cpp:22
void tank(double left, double right)
Commands the TankDrive using tank inputs.
Definition TankDrive.cpp:35
SimpleMotorGroup m_right
a SimpleMotorGroup for the right side
Definition TankDrive.h:174
void update()
Uses the stored commands to command the motors.
Definition TankDrive.cpp:52
double m_cmdRot
The Stored command for rotation.
Definition TankDrive.h:201
double m_cmdX
The Stored command for the X-direction.
Definition TankDrive.h:185
void LeftSplitArcadeCurved(const vex::controller &cont)
Commands the TankDrive using arcade inputs directly from a controller.
Definition TankDrive.cpp:46
Definition PID.h:20