-
Notifications
You must be signed in to change notification settings - Fork 0
/
Robotmap.h
40 lines (33 loc) · 1.27 KB
/
Robotmap.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
#ifndef ROBOTMAP_H
#define ROBOTMAP_H
/**
* The RobotMap is a mapping from the ports sensors and actuators are wired into
* to a variable name. This provides flexibility changing wiring, makes checking
* the wiring easier and significantly reduces the number of magic numbers
* floating around.
*/
// For example to map the left and right motors, you could define the
// following variables to use with your drivetrain subsystem.
// #define LEFTMOTOR 1
// #define RIGHTMOTOR 2
const int kLeftFrontMotor = 1;//These are PWM channels
const int kRightFrontMotor = 2;
const int kLeftRearMotor = 3;
const int kRightRearMotor = 4;
const int kChargingMotor = 5;
const int kLauncherLimitSwitch = 9;
const int kDisengageSolenoid = 1;
const int kEngageSolenoid = 2;
const int kPressureSwitchChannel = 14;
const int kCompressorRelayChannel = 1;
const int kGrabberWheelsMotor = 6;
const int kGrabberArmsMotor = 7;
const int kGrabberDownSwitch = 11;
const int kGrabberUpSwitch = 12;
const int kGrabberPotChannel = 1;
const int kLauncherPotChannel = 2;
// If you are using multiple modules, make sure to define both the port
// number and the module. For example you with a rangefinder:
// #define RANGE_FINDER_PORT 1
// #define RANGE_FINDER_MODULE 1
#endif