-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathshared.py
42 lines (34 loc) · 1022 Bytes
/
shared.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
''' AP 1/7/15: This old style of shared.py is going to be deprecated soon. '''
DEST_ADDR = '\x00\x01'
xb = []
ser = []
#Xbee serial
BS_COMPORT = 'COM4'
BS_BAUDRATE = 57600 # Use this setting if your Xbee is set to baud rate of 57600
#BS_BAUDRATE = 111111 # Use this setting if your Xbee is set to baud rate of 115200
motor_gains_set = False
steering_gains_set = False
steering_rate_set = False
flash_erased = 0
pkts = 0
bytesIn = 0
last_packet_time = 0
readback_timeout = 2 #seconds
awake = True;
# Cross-module variable sharing; these need default values
imudata = []
dataFileName = ''
leadinTime = 0
leadoutTime = 0
angRateDeg = "NOT SET" #This is only for writing the file header
angRate = "NOT SET"
motorGains = "NOT SET"
steeringGains = "NOT SET"
runtime = 0
numSamples = 0
moveq = "NOT SET"
robotQueried = False
maxQueries = 8
#This message will be removed in the future. It is here to facilitate from the changeover
#to use of imageproc-settings in projects.
print "shared.py from imageproc-settings"