2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Subsystems/Drivetrain.h

24 lines
508 B
C
Raw Normal View History

2015-01-16 19:29:55 -05:00
#ifndef DRIVETRAIN_H
#define DRIVETRAIN_H
#include "WPILib.h"
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();
void DriveMecanum(float, float, float, float, float);
2015-01-17 10:34:08 -05:00
void DriveArcade(float, float);
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