-
Notifications
You must be signed in to change notification settings - Fork 7
/
robotconfig.py
44 lines (43 loc) · 1.99 KB
/
robotconfig.py
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
{
# 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", "WPI_TalonFX"],
"leftControllerTypes": ["WPI_TalonFX", "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, 2, 3],
# Ports for the right-side motors
"rightMotorPorts": [4, 5, 6],
# Inversions for the left-side motors
"leftMotorsInverted": [False, False, False],
# Inversions for the right side motors
"rightMotorsInverted": [True, True, True],
# Wheel diameter (in units of your choice - will dictate units of analysis)
"wheelDiameter": 5.9067052758,
# 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": 16384,
# Whether the left encoder is inverted
"leftEncoderInverted": False,
# Whether the right encoder is inverted:
"rightEncoderInverted": False,
# Your gyro type (one of "NavX", "Pigeon", "ADXRS450", "AnalogGyro", or "None")
"gyroType": "Pigeon",
# 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": "0",
}