-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRobot.h
More file actions
62 lines (56 loc) · 1.23 KB
/
Robot.h
File metadata and controls
62 lines (56 loc) · 1.23 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
#include "WPILib.h"
#include "Constants.h"
#include "PIDLoop.h"
#include "Aimer.h"
#include "AHRS.h"
#include "GearSubsystem.h"
#include "ShooterSubsystem.h"
#include "IR.h"
#include "Filters.h"
#include "IntakeSubsystem.h"
#include "ClimberSubsystem.h"
#include "Brakes.h"
#include "CANTalon.h"
#include "Accumulator.h"
#include <math.h>
#include <thread>
#include <fstream>
#define PI 3.14159265
#ifndef SRC_ROBOT_H_
#define SRC_ROBOT_H_
class Robot : public SampleRobot {
CANTalon frontLeftMotor;
CANTalon rearLeftMotor;
CANTalon frontRightMotor;
CANTalon rearRightMotor;
frc::RobotDrive robotDrive;
frc::Joystick driveStick;
frc::Joystick operatorStick;
AHRS gyro;
PIDLoop pid;
Aimer aimer;
Ultrasonic leftProx;
Ultrasonic rightProx;
IR leftIR;
IR rightIR;
GearSubsystem gear;
ShooterSubsystem shooter;
Compressor compressor;
Filters filter;
IntakeSubsystem intake;
ClimberSubsystem climber;
Brakes brakes;
PowerDistributionPanel pdp;
Encoder* encoder;
Encoder yEncoder;
Encoder xEncoder;
cs::UsbCamera camera0;
cs::UsbCamera camera1;
I2C arduino;
public:
Robot();
void RobotInit();
void OperatorControl();
void Autonomous();
};
#endif /* SRC_ROBOT_H_ */