import subprocess
from firebaseUpload import FirebaseUpload
from firebaseDownload import FirebaseDownload
from firebase import firebase

upload = FirebaseUpload()
download = FirebaseDownload()
firebaseProject = firebase.FirebaseApplication(
    'https://par-live-target-tracking.firebaseio.com/DEV', None)
upload.firebaseUploadAcquisition(firebaseProject)
Ejemplo n.º 2
0
from firebaseUpload import FirebaseUpload
from firebase import firebase

upload = FirebaseUpload()
firebaseProject = firebase.FirebaseApplication('https://par-live-target-tracking.firebaseio.com/DEV', None)
# Execute function logic here or elsewhere as needed
upload.firebaseUploadStart(firebaseProject)
Ejemplo n.º 3
0
from firebaseUpload import FirebaseUpload
from firebase import firebase
import sys

upload = FirebaseUpload()
firebaseProject = firebase.FirebaseApplication(
    'https://par-live-target-tracking.firebaseio.com/DEV', None)
# Execute function logic here or elsewhere as needed
upload.firebaseUploadLocal(firebaseProject, sys.argv[1])
Ejemplo n.º 4
0
import subprocess
from firebaseUpload import FirebaseUpload
from firebaseDownload import FirebaseDownload
from firebase import firebase
import time
import sys

upload = FirebaseUpload()
download = FirebaseDownload()
firebaseProject = firebase.FirebaseApplication(
    'https://par-live-target-tracking.firebaseio.com/DEV', None)

# Sample program run: python3 main.py 0.1 7 10
beamformerThreshold = float(sys.argv[1])  # Amplitude setting for threshold
beamformerPositions = int(
    sys.argv[2]
)  # Number of beamformerpositions, for 7, it's (-60, -40, -20, 0, 20, 40, 60)
offsetAngle = int(
    sys.argv[3])  # Set how far to steer to left or right for tracking target
phaseThreshold = 5
degreesOfFreedom = 120  # Degrees of freedom for the beamformer steering
angleCorrection = 60  # Set 120 degrees of freedom from 0 to 120 to be -60 to 60 with an offset of 60
timeoutVal = 5  # Timeout for Waveforms in case it gets hung up

waitStart = True
while True:  # Outer loop for keeping radar listening continuously
    if waitStart == True:
        print('Capstone PAR Alpha System waiting for activation...')
        waitStart = False
    state, phase = download.firebaseDownloadRadar(firebaseProject)
    if state == 'Start':
import subprocess
from firebaseUpload import FirebaseUpload
from firebaseDownload import FirebaseDownload
from firebase import firebase
import time

upload = FirebaseUpload()
download = FirebaseDownload()
firebaseProject = firebase.FirebaseApplication('https://par-live-target-tracking.firebaseio.com/DEV', None)

upload.firebaseUploadTracking(firebaseProject)