2013-12-15 18:30:16 -05:00
|
|
|
#ifndef ROBOTMAP_H
|
|
|
|
|
#define ROBOTMAP_H
|
|
|
|
|
|
2014-08-12 15:17:57 -04:00
|
|
|
#include "WPILib.h"
|
2013-12-15 18:30:16 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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.
|
2014-02-25 18:43:40 -05:00
|
|
|
//const int LEFTMOTOR = 1;
|
|
|
|
|
//const int RIGHTMOTOR = 2;
|
2013-12-15 18:30:16 -05:00
|
|
|
|
|
|
|
|
// If you are using multiple modules, make sure to define both the port
|
|
|
|
|
// number and the module. For example you with a rangefinder:
|
2014-02-25 18:43:40 -05:00
|
|
|
//const int RANGE_FINDER_PORT = 1;
|
|
|
|
|
//const int RANGE_FINDER_MODULE = 1;
|
2013-12-15 18:30:16 -05:00
|
|
|
|
|
|
|
|
#endif
|