forked from Sparky384/Sparky14
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriveSystem.h
More file actions
87 lines (81 loc) · 1.99 KB
/
Copy pathDriveSystem.h
File metadata and controls
87 lines (81 loc) · 1.99 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef DRIVE_SYSTEM_H
#define DRIVE_SYSTEM_H
#include "WPILib.h"
class DriveSystem
{
private:
RobotDrive myRobot; // robot drive system
Joystick stick1, stick2; // only joystick
Gyro gyro;
//ADXL345_SPI adxl;
Encoder enc;
Encoder enc2;
DriverStation *ds;
DriverStationLCD *dsLCD;
Encoder climbenc;
DigitalInput ls;
Servo reverse;
Victor climbmotor, dumparm, dumpbuck, shooter1, shooter2;
//Relay *pogoforward; // ***PROTOTYPE IS RELAY WHILE FINAL IS SOLENOIDS***
//Relay *pogobackward;
//Relay *pogo2;
//Relay *light;
Solenoid pogofwd, pogorev, basehookfwd, basehookrev, minipogofwd, minipogorev, shooterfwd, shooterrev;
// Wire solenoid breakout to 24 Volts
Relay *shooterlight;
public:
DriveSystem(void);
bool EncDriveLimit(int length);
void Drive(int distance);
void RTurn(double angle);
void LTurn(double angle);
void Stop();
void Reset();
void GyroReset();
void EncReset();
bool InvertMotors(bool tf);
bool Safety(bool tf);
void GyroSens();
void GyroFixAngles();
int ConvertLS(); // TEMPORARY TESTER FOR PRINTING BOOL VALUES
void Printlines();
void TeleOpPrintlines(bool LimitSwitchToggle);
void SparkTank();
void SparkFirstArcade();
void SparkSecondArcade();
void NoMoving();
void PrintGyro();
void ArmOneVal(float value);
void ArmTwoVal(float value);
void ServoVal(float value);
void ArmOneDisable();
void ArmTwoDisable();
void DumperForward();
void DumperBackward();
void DumperArmForward();
void DumperArmBackward();
void DumperArm();
void NoDumper();
void ForwardGrappler();
void BackwardGrappler();
void NoGrappler();
void Dump();
void AutoForward();
UINT32 LSGet();
void ClimberEncReset();
void TenseClimber();
void BasehookInit();
void BasehookToggle();
void PogoToggle();
void BasehookSwitch(bool toggle);
void PogoSwitch(bool toggle);
bool KillClimb();
void FirstClimb();
void SecondClimb();
void climbreset();
void ShooterFullPower(bool power);
void ShooterSomePower(bool power);
void ShooterPiston();
void MiniPogo(bool toggle);
};
#endif