-
Notifications
You must be signed in to change notification settings - Fork 6
/
constants.py
23 lines (20 loc) · 906 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Car geometery parameters
W2W_DIST = 34 # separation between coaxial wheels (cm)
SONAR_LIDAR_OFFSET = 15 # offset distance between sonar & lidar
# Driving parameters
CARSPEED = 200 # default car speed
SONAR_STOP = 5 # threshold E-stop distance (cm)
FWD = 3 # forward drive direction (with cross-track correction)
LFT = 90 # left drive direction
REV = 180 # reverse drive direction
RGT = -90 # right drive direction
# PID feedback related parameters
KP = 0.6 # steering PID proportional coefficient
KI = 0.1 # steering PID integral coefficient
KD = 1.5 # steering PID derivative coefficient
PIDTRIM = 12 # default value for spin trim
PIDWIN = 6 # number of values to use in rolling average
# Scan related parameters
LEV = 5000 # Low Encoder Value (45-deg behind car's -X direction)
HEV = 30000 # High Encoder Value (car +X direction)
VLEG = 3 # optical path length of vetical leg (cm)