Skip to content

Instantly share code, notes, and snippets.

@TrevCan
Created December 7, 2019 16:52
Show Gist options
  • Save TrevCan/ae57fa24ce1f2def1d822cb7b391266f to your computer and use it in GitHub Desktop.
Save TrevCan/ae57fa24ce1f2def1d822cb7b391266f to your computer and use it in GitHub Desktop.
robotMap Frankie
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 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. */
/*----------------------------------------------------------------------------*/
package frc.robot;
/**
*
* 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.
// public static int leftMotor = 1;
// public static int rightMotor = 2;
// If you are using multiple modules, make sure to define both the port
// number and the module. For example you with a rangefinder:
// public static int rangefinderPort = 1;
// public static int rangefinderModule = 1;
public static final int MIDDLE_WHEEL_MOTOR = 0; //TALON
public static final TecbotSpeedController.TypeOfMotor middleWheelMotorType = TecbotSpeedController.TypeOfMotor.PWM_TALON_SRX;
public static final int[] WHEEL_SOLENOID = {1,2};
public static final int[] LEFT_CHASSIS_MOTORS = {6, 8}; //talon
public static final TecbotSpeedController.TypeOfMotor leftWheelMotorType = TecbotSpeedController.TypeOfMotor.PWM_TALON_SRX;
public static final int[] RIGHT_CHASSIS_MOTORS = {3, 5}; //talon
public static final TecbotSpeedController.TypeOfMotor rightWheelMotorType = TecbotSpeedController.TypeOfMotor.PWM_TALON_SRX;
}
@TrevCan
Copy link
Author

TrevCan commented Dec 7, 2019

port #5 is inverted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment