Ravens Robotics FRC 2015
AllRobotControls.h
Go to the documentation of this file.
1 
10 #ifndef ALLROBOTCONTROLS_H_
11 #define ALLROBOTCONTROLS_H_
12 
13 /*
14  * MecanumDrive
15  */
16 static constexpr uint32_t kDriveStickCh = 1;
17 static constexpr uint32_t kFrontRightCh = 0;
18 static constexpr uint32_t kFrontLeftCh = 1;
19 static constexpr uint32_t kBackLeftCh = 2;
20 static constexpr uint32_t kBackRightCh = 3;
21 static constexpr uint32_t kGyroButton = 9;
22 static constexpr float kSafetyTimeout = 1.5;
23 static constexpr uint32_t kGyroCh = 0;
25 static constexpr float kNoGyro = 0.0;
26 
27 /*
28  * SmoothAxis helper class
29  */
30 const float kAccelVal = 0.01;
31 
32 /*
33  * Camera
34  */
35 static constexpr uint32_t kCameraChannel = 4;
36 static constexpr uint32_t kCameraUp = 3;
37 static constexpr uint32_t kCameraDown = 4;
38 static constexpr float kCameraIncrement = 0.01;
39 static constexpr float kCameraFirstPos = 0.5;
40 static constexpr float kMaxCameraServoPosition = 0.7;
41 static constexpr float kMinCameraServoPosition = 0.2;
42 
43 /*
44  * RobotArms
45  */
46 const int kStickChannel = 0;
47 const int kSolenoidChannel1 = 0;
48 const int kSolenoidChannel2 = 1;
49 const int kArmMotorChannel = 5;
50 const int kLimitChannel = 0;
51 const int kTopLimitChannel = 1;
52 const int kEncoderchannel1 = 4;
53 const int kEncoderchannel2 = 5;
54 const int kBottomLimitChannel = 6;
55 const int kEncoderChannel = 7;
56 const float kLifterDistancePerPulse = 3; // Todo: test to get this value
57 const float kEncoderClickDistance = 3; // Todo: test
58 // Todo: tune PID controller to get values for these constants
59 const float kP = 0;
60 const float kI = 0;
61 const float kD = 0;
62 
63 
64 const float k_lifterDistancePerPulse = 0.0; // Todo: test to get this value
65 const float k_driverDistancePerPulse = 0.0;
66 
67 
68 
69 #endif /* ALLROBOTCONTROLS_H_ */
const float kLifterDistancePerPulse
const int kEncoderchannel2
const int kBottomLimitChannel
const int kEncoderChannel
const float kP
const int kTopLimitChannel
const int kSolenoidChannel2
Second Solenoid Channel.
const int kStickChannel
Auxiliary joystick Channel TODO: rename after arms merged.
const int kEncoderchannel1
const int kSolenoidChannel1
First Solenoid Channel.
const float kEncoderClickDistance
const int kLimitChannel
const float kI
const float kAccelVal
Acceleration increment: approach target by 1%.
const float k_lifterDistancePerPulse
const float k_driverDistancePerPulse
const int kArmMotorChannel
Channel of Victor.
const float kD