-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAcquisitionArms.h
52 lines (34 loc) · 1.05 KB
/
AcquisitionArms.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
#ifndef __ACQUISITION_ARMS__
#define __ACQUISITION_ARMS__
#include "WPILib.h"
#include "EntropySubsystemTemplate.h"
#include "EntropyJoystick.h"
#include "EntropyInfraredSensor.h"
#include "IODefinitions.h"
class AcquisitionArms : public EntropySubsystemTemplate
{
private:
static const int upperSolenoidChannel = IODefinitions::ARM_ROTATION;
static const int lowerSolenoidChannel = IODefinitions::ARM_RAIL;
Solenoid * upperSolenoid;
Solenoid * lowerSolenoid;
EntropyInfraredSensor InfraredSensor;
Victor * MotorBelt;
Jaguar * MotorExtender;
Solenoid * CradleLEDs;
bool ArmUp,CradleUp;
public:
AcquisitionArms();
bool Initialize ();
void SetAutoInitialState();
void SetTelopInitialState();
void Cleanup();
char * GetFeedback();
void UpperVerticalPos(bool Arm_Up, bool Arm_Down);
void LowerVerticalPos(bool Cradle_Up, bool Cradle_Down);
void Extend(bool Arm_Out, bool Arm_In, bool Arm_Down);
void BeltEnable(bool Roll_In, bool Roll_Out);
bool IsArmUp(){ return ArmUp; }
bool IsCradleUp() { return CradleUp; }
};
#endif