-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmain.h
executable file
·54 lines (47 loc) · 1.1 KB
/
main.h
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
#ifndef MAIN_H
#define MAIN_H
#include <IterativeRobot.h>
#include <Joystick.h>
#include <DigitalInput.h>
#include <Relay.h>
#include "DriveTrain.h"
#include "Pneumatics.h"
#include "Shifter.h"
#include "Shooter.h"
#include "FunctionRegistry.h"
#include "Sensors.h"
//#include "Netcom.h"
#include "Autonomous.h"
#include "vision/vision.h"
class main_robot: public IterativeRobot
{
public:
static const int GLIDE_THRESHOLD=30;
static const int GLIDE_INCREMENT=20;
static const int GLIDE_ITERATIONS=2;
main_robot();
~main_robot();
void RobotInit();
void TeleopInit();
void AutonomousInit();
void TestInit();
void DisabledInit();
void TeleopPeriodic();
void AutonomousPeriodic();
void DisabledPeriodic();
void TestPeriodic();
SmoothJoystick* driverJoy;
SmoothJoystick* gunnerJoy;
Pneumatics* pnum;
Shifter* shift;
DriveTrain* drive;
Shooter* shoot;
FunctionRegistry* update;
Sensors* sensors;
// Netcom* netcom;
Autonomous* autoBot;
vision* engine;
void init_vision();
void stop_vision();
};
#endif // MAIN_H