-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrobotconfig.py
More file actions
57 lines (51 loc) · 2.36 KB
/
robotconfig.py
File metadata and controls
57 lines (51 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
# Ports for motors
# If doing drive test, treat this as the left side of the drivetrain
"motorPorts": [1,2],
# Only if you are doing drive (leave empty "[]" if not)
"rightMotorPorts": [6,7],
# Class names of motor controllers used.
# 'WPI_TalonSRX'
# 'WPI_VictorSPX'
# 'WPI_TalonFX'
# If doing drive test, treat this as the left side of the drivetrain
"controllerTypes": ['WPI_TalonSRX', 'WPI_VictorSPX'],
# Only if you are doing drive (leave empty "[]" if not)
"rightControllerTypes": ['WPI_TalonSRX','WPI_VictorSPX'],
# Set motors to inverted or not
# If doing drive test, treat this as the left side of the drivetrain
"motorsInverted": [True,True],
# Only if you are doing drive (leave empty "[]" if not)
"rightMotorsInverted": [True,True],
# Encoder edges-per-revolution (*NOT* cycles per revolution!)
# For the CTRE Mag Encoder, use 4096 (4 * 1024 = 4096)
"encoderEPR": 4096,
# Third stage on the gearbox is 30:54, using 6" wheels.
# Vexpor gearbox spins the mag-encoder 3x faster
# than the 2nd stage output shaft.
# Gearing accounts for the gearing between the encoder and the output shaft
"gearing": .6,
# 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",
}