-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDrive.h
More file actions
39 lines (32 loc) · 770 Bytes
/
Drive.h
File metadata and controls
39 lines (32 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef DRIVE_H
#define DRIVE_H
#include "WPILib.h"
#include "Controllers.h"
#define LEFT_MOTOR 4
#define RIGHT_MOTOR 5
class Drive
{
public:
Drive(Controllers* driverInput, int leftMotor, int rightMotor, int leftSolenoidNum, int rightSolenoidNum);
void SetHighGear();
void SetHighGear(bool high);
void SetDriveCommand(float leftDriveCmd);
void GetInputs();
void ExecStep();
void SetOutputs();
Victor* leftDrive;
Victor* rightDrive;
RobotDrive* myRobot;
private:
float LeftDriveCommand, RightDriveCommand;
bool HighGear;
float LeftDriveMotorOutput, RightDriveMotorOutput;
bool highGear;
//float leftDriveCmd;
float rightDriveCmd;
Controllers* driverInput;
Solenoid *rightSolenoid;
Solenoid *leftSolenoid;
bool BackwardButton;
};
#endif