forked from multunus/autonomous-rc-car
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.py
More file actions
29 lines (24 loc) · 739 Bytes
/
Copy pathconfiguration.py
File metadata and controls
29 lines (24 loc) · 739 Bytes
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
"""Configurations for the RC car"""
PICAMERA_RESOLUTION_WIDTH = 640
PICAMERA_RESOLUTION_HEIGHT = 480
PICAMERA_RESOLUTION = (PICAMERA_RESOLUTION_WIDTH, PICAMERA_RESOLUTION_HEIGHT)
PICAMERA_FRAMERATE = 60
PICAMERA_WARM_UP_TIME = 2
BACK_MOTOR_DATA_ONE = 17
BACK_MOTOR_DATA_TWO = 27
BACK_MOTOR_ENABLE_PIN = 22
FRONT_MOTOR_DATA_ONE = 19
FRONT_MOTOR_DATA_TWO = 26
PWM_FREQUENCY = 1000
INITIAL_PWM_DUTY_CYCLE = 100
CLASSIFICATION_LABELS = ['forward', 'reverse', 'left', 'right', 'idle']
CLASSIFICATION_LABELS_AND_VALUES = {
'forward': [1, 0, 0, 0, 0],
'reverse': [0, 1, 0, 0, 0],
'left': [0, 0, 1, 0, 0],
'right': [0, 0, 0, 1, 0],
'idle': [0, 0, 0, 0, 1]
}
IMAGE_DIMENSIONS = (75, 75)
LAMBDA = 0.0
HIDDEN_LAYER_SIZE = 50