Skip to content
Permalink
dfbca9d62f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
45 lines (43 sloc) 1.96 KB
{
# Class names of motor controllers used.
# Options:
# 'WPI_TalonSRX'
# 'WPI_TalonFX' (for Falcon 500 motors)
# 'WPI_VictorSPX'
# Note: The first motor on each side should always be a Talon SRX/FX, as the
# VictorSPX does not support encoder connections
"rightControllerTypes": ["WPI_TalonFX", "WPI_TalonFX"],
"leftControllerTypes": ["WPI_TalonFX", "WPI_TalonFX"],
# Note: The first id in the list of ports should be the one with an encoder
# Ports for the left-side motors
"leftMotorPorts": [1, 3],
# Ports for the right-side motors
"rightMotorPorts": [0, 2],
# Inversions for the left-side motors
"leftMotorsInverted": [False, False],
# Inversions for the right side motors
"rightMotorsInverted": [False, False],
# Wheel diameter (in units of your choice - will dictate units of analysis)
"wheelDiameter": 0.1524,
# If your robot has only one encoder, set all right encoder fields to `None`
# Encoder edges-per-revolution (*NOT* cycles per revolution!)
# This value should be the edges per revolution *of the wheels*, and so
# should take into account gearing between the encoder and the wheels
"encoderEPR": 19797.3333,
# Whether the left encoder is inverted
"leftEncoderInverted": False,
# Whether the right encoder is inverted:
"rightEncoderInverted": True,
# Your gyro type (one of "NavX", "Pigeon", "ADXRS450", "AnalogGyro", or "None")
"gyroType": "NavX",
# Whatever you put into the constructor of your gyro
# Could be:
# "SPI.Port.kMXP" (MXP SPI port for NavX or ADXRS450),
# "SerialPort.Port.kMXP" (MXP Serial port for NavX),
# "I2C.Port.kOnboard" (Onboard I2C port for NavX),
# "0" (Pigeon CAN ID or AnalogGyro channel),
# "new WPI_TalonSRX(3)" (Pigeon on a Talon SRX),
# "leftSlave" (Pigeon on the left slave Talon SRX/FX),
# "" (NavX using default SPI, ADXRS450 using onboard CS0, or no gyro)
"gyroPort": "SPI.Port.kMXP",
}