Created
March 22, 2021 00:50
-
-
Save BobSaidHi/c28268692f0720618416ee7e3181a677 to your computer and use it in GitHub Desktop.
Encoders not working with characterization tools - ChiefDelphi post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
# Set to True if the spark max will be brushed | |
# ** WARNING: Improperly setting this can break things ** | |
"brushed": False, | |
# Ports for motors | |
# If doing drive test, treat this as the left side of the drivetrain | |
"motorPorts": [12], | |
# Only if you are doing drive (leave empty "[]" if not) | |
"rightMotorPorts": [10], | |
# Set motors to inverted or not | |
# If doing drive test, treat this as the left side of the drivetrain | |
"motorsInverted": [False], | |
# Only if you are doing drive (leave empty "[]" if not) | |
"rightMotorsInverted": [False], | |
# Encoder edges-per-revolution (*NOT* cycles per revolution!) | |
# **Note pass an EPR of 1 for the NEO Integrated encoder as the SparkMax | |
# already handles this conversion** | |
# For the REV Through Bore Encoder, use 8192 (2048 * 4) | |
"encoderEPR": 1, | |
# Gearing accounts for the gearing between the encoder and the output shaft | |
"gearing": 0.093, | |
# Set this to True if you would like to use the SparkMax Data Port | |
# Note that the Data Port is the 10 pin port on the top of the SparkMax | |
# Setting this to False indicates you want to use the 6 pin encoder port | |
# which is located in the front of the SparkMax | |
"useDataPort": False, | |
# Encoder ports (leave empty "[]" if not needed) | |
# Specifying encoder ports indicates you want to use Rio-side encoders | |
# If doing drive test, treat this as the left side of the drivetrain | |
"encoderPorts": [], | |
# Only if you are doing drive (leave empty "[]" if not) | |
"rightEncoderPorts": [], | |
# Set to True if encoders need to be inverted | |
# If doing drive test, treat this as the left side of the drivetrain | |
"encoderInverted": False, | |
# Only if you are doing drive (set to False if not needed) | |
"rightEncoderInverted": False, | |
# ** The following is only if you are using a gyro for the DriveTrain test** | |
# 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), | |
# "" (NavX using default SPI, ADXRS450 using onboard CS0, or no gyro) | |
"gyroPort": "SPI.Port.kMXP", | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment