-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobals.py
executable file
·52 lines (44 loc) · 972 Bytes
/
Globals.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
48
49
50
51
52
#!/usr/bin/env python
# coding: Latin-1
#############################################################
# This is the module which holds all the global values #
#############################################################
# General values
badFrameCount = 0
frameCounter = 0
frameAnnounce = 0
running = True
frameTimes = []
lastFrameStamp = 0
trackFound = False
lastLines = []
lapCount = 0
lapTravelled = 0.0
colour = (0, 0, 0)
# Defaults for values set from the Race Code Functions
userSpeed = 1.0
userTargetLane = 0.0
# States
startLights = 0
imageMode = 0
lastImageMode = 0
seenStart = False
startWaitCount = 0
pollDelay = 0.25
processingWriteLogLevel = 3
processingPrintLogLevel = 2
# Images
displayFrame = None
displayPredator = None
lastRawFrame = None
# Threads and locks
processorPool = []
controller = None
frameLock = None
# Functions
MonsterLed = None
MonsterMotors = None
# Other resources
capture = None
userLogFile = None
processingLogFile = None