2015-01-16 19:29:55 -05:00
|
|
|
#ifndef DRIVETRAIN_H
|
|
|
|
#define DRIVETRAIN_H
|
|
|
|
|
|
|
|
#include "WPILib.h"
|
2015-01-31 12:16:02 -05:00
|
|
|
class Drivetrain: public Subsystem{
|
2015-01-16 20:12:48 -05:00
|
|
|
private:
|
2015-01-19 12:08:25 -05:00
|
|
|
CANTalon *rightFront, *leftFront, *rightRear, *leftRear;
|
2015-01-17 10:34:08 -05:00
|
|
|
RobotDrive *drive;
|
2015-01-16 20:12:48 -05:00
|
|
|
public:
|
|
|
|
Drivetrain();
|
2015-02-07 09:17:20 -05:00
|
|
|
enum e_motors{
|
|
|
|
FRONTRIGHT,
|
|
|
|
FRONTLEFT,
|
|
|
|
BACKRIGHT,
|
|
|
|
BACKLEFT
|
|
|
|
};
|
2015-01-16 20:12:48 -05:00
|
|
|
void InitDefaultCommand();
|
2015-01-19 12:08:25 -05:00
|
|
|
void DriveMecanum(float,float,float,float,float);
|
2015-01-17 10:34:08 -05:00
|
|
|
void DriveArcade(float, float);
|
2015-02-07 09:17:20 -05:00
|
|
|
void TestMotor(e_motors,float);
|
2015-01-16 19:29:55 -05:00
|
|
|
};
|
|
|
|
#endif
|
2015-02-08 12:26:15 -05:00
|
|
|
// vim: ts=2:sw=2:et
|