-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharacterization.py
48 lines (47 loc) · 1.87 KB
/
characterization.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
44
45
46
47
{
# Class names of motor controllers used.
# Options:
# 'Spark'
# 'Victor'
# 'VictorSP'
# 'PWMTalonSRX'
# 'PWMVictorSPX'
# 'WPI_TalonSRX'
# 'WPI_VictorSPX'
"rightControllerTypes": ["WPI_TalonSRX", "WPI_TalonSRX"],
"leftControllerTypes": ["WPI_TalonSRX", "WPI_TalonSRX"],
# Ports for the left-side motors
"leftMotorPorts": [0, 1],
# Ports for the right-side motors
"rightMotorPorts": [13, 14],
# Inversions for the left-side motors
"leftMotorsInverted": [True, True],
# Inversions for the right side motors
"rightMotorsInverted": [False, False],
# Wheel diameter (in units of your choice - will dictate units of analysis)
"wheelDiameter": 0.1544,
# 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": 8192,
# Ports for the left-side encoder
"leftEncoderPorts": [0, 1],
# Ports for the right-side encoder
"rightEncoderPorts": [2, 4],
# Whether the left encoder is inverted
"leftEncoderInverted": True,
# 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),
# "" (NavX using default SPI, ADXRS450 using onboard CS0, or no gyro)
"gyroPort": "SPI.Port.kMXP",
}