forked from mark-orion/STS-PiLot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
35 lines (32 loc) · 854 Bytes
/
config.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
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 15 09:44:23 2017
@author: Mark Dammer
This file contains basic configuration and all former global variables
"""
# Configuration
width = 320 # Video width requested from camera
height = 240 # Video height requested from camera
video_src = 0 # OpenCV video source for camera_cv.py
pi_hflip = False # Flip Picamera image horizontally
pi_vflip = True # Flip Picamera image vertically
cv_hflip = False # Flip OpenCV camera image horizontally
cv_vflip = False # Flip OpenCV camera image vertically
# Global values
camera_detected = False
camera_active = False
camera = None
video_status = False
video_fps = 0
brakes = False
chocks = False
blue = False
yellow = False
green = False
watchdog_active = True
watchdog_running = True
watchdog = 20
timeout = 10
left_motor = 0
right_motor = 0