-
Notifications
You must be signed in to change notification settings - Fork 1
/
UAS_driver.py
49 lines (36 loc) · 1.24 KB
/
UAS_driver.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
# UAS Pilot Data Collection Tool
# CSCE 483 - Texas A&M University Fall 2020
# Christopher Wray, Jordan Griffin, Samuel Sells, Venkata Dubagunta
# This code was created for our senior design project intended for UAS Pilot Researchers
# Code was inherited from Spring 2020 Team : Rahul Rana, Aranpreet Gill, Maria Tyas, Juan Minor, Adolfo Herrera
# Previous team version available at : https://github.com/AparnaDubagunta98/UAS-PILOT-DATA-COLLECTION/tree/master/LEGACY
import DeviceInitialization as di
import Recording as rc
import Processing as pro
import ErrorHandling as eh
import LEDControl as lc
#global definitions
usbPath = "/media/pi/VIDEOS"
localPath = "/home/pi/Documents/localVids"
# Main
fileNameList = []
duration = 0
startTime = 0
stopTime = 0
# Device Initialization
x = di.DeviceInitialization()
while(x == -1):
x = di.DeviceInitialization()
print("SETUP COMPLETE \n")
while(True):
# Recording
duration, fileNameList = rc.Recording()
#print("Done Recording")
#print("in driver Duration : ",duration)
#print("in driver FNL : ",fileNameList)
# Processing
vr = pro.Processing(fileNameList,duration)
#print("verify processing return :",vr)
print("Done Procesing")
# Finish
di.finishInitialization()