2014-08-20 14:35:04 -04:00
|
|
|
package $package;
|
|
|
|
|
/**
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
public class RobotMap {
|
|
|
|
|
// For example to map the left and right motors, you could define the
|
|
|
|
|
// following variables to use with your drivetrain subsystem.
|
2014-10-24 00:07:30 -07:00
|
|
|
// public static int leftMotor = 1;
|
|
|
|
|
// public static int rightMotor = 2;
|
2014-08-20 14:35:04 -04: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-10-24 00:07:30 -07:00
|
|
|
// public static int rangefinderPort = 1;
|
|
|
|
|
// public static int rangefinderModule = 1;
|
2014-08-20 14:35:04 -04:00
|
|
|
}
|