2017-10-17 21:37:58 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) 2017 FIRST. All Rights Reserved. */
|
|
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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.
|
2017-11-03 13:22:56 -07:00
|
|
|
// constexpr int kLeftMotor = 1;
|
|
|
|
|
// constexpr int kRightMotor = 2;
|
2017-10-17 21:37:58 -07:00
|
|
|
|
|
|
|
|
// If you are using multiple modules, make sure to define both the port
|
|
|
|
|
// number and the module. For example you with a rangefinder:
|
2017-11-03 13:22:56 -07:00
|
|
|
// constexpr int kRangeFinderPort = 1;
|
|
|
|
|
// constexpr int kRangeFinderModule = 1;
|