Skip to content
This repository was archived by the owner on Dec 31, 2019. It is now read-only.

Commit f9167b5

Browse files
committed
fixin bug when SDR AIS is the first input signal
1 parent c6854dc commit f9167b5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

startup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,10 @@
105105
if kplex=='1':
106106
subprocess.Popen('kplex')
107107

108-
subprocess.call(['pkill', '-9', 'aisdecoder'])
109-
subprocess.call(['pkill', '-9', 'rtl_fm'])
110-
if enable=='1':
111-
frecuency='161975000'
112-
if channel=='b': frecuency='162025000'
113-
rtl_fm=subprocess.Popen(['rtl_fm', '-f', frecuency, '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE)
114-
aisdecoder=subprocess.Popen(['aisdecoder', '-h', '127.0.0.1', '-p', '10110', '-a', 'file', '-c', 'mono', '-d', '-f', '/dev/stdin'], stdin = rtl_fm.stdout)
115-
116108
subprocess.call(["pkill", '-9', "node"])
117109
if signalk=='1':
118110
subprocess.Popen(home+'/.config/signalk-server-node/bin/nmea-from-10110', cwd=home+'/.config/signalk-server-node')
119-
111+
120112
if gps_time=='1':
121113
subprocess.call(['sudo', 'python', currentpath+'/time_gps.py'])
122114

@@ -134,3 +126,11 @@
134126

135127
subprocess.call(['pkill', '-f', 'monitoring.py'])
136128
subprocess.Popen(['python',currentpath+'/monitoring.py'])
129+
130+
subprocess.call(['pkill', '-9', 'aisdecoder'])
131+
subprocess.call(['pkill', '-9', 'rtl_fm'])
132+
if enable=='1':
133+
frecuency='161975000'
134+
if channel=='b': frecuency='162025000'
135+
rtl_fm=subprocess.Popen(['rtl_fm', '-f', frecuency, '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE)
136+
aisdecoder=subprocess.Popen(['aisdecoder', '-h', '127.0.0.1', '-p', '10110', '-a', 'file', '-c', 'mono', '-d', '-f', '/dev/stdin'], stdin = rtl_fm.stdout)

0 commit comments

Comments
 (0)