Skip to content

Commit e3d3fd0

Browse files
committed
Try to set hardware timestamp with soapy
1 parent 5d440a6 commit e3d3fd0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

python/iridium_extractor_flowgraph.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import sys
1414
import math
15+
import time
1516

1617
import numpy as np
1718

@@ -195,6 +196,11 @@ def match_gain(gain, gain_names):
195196

196197
source.set_sample_rate(0, self._input_sample_rate)
197198
source.set_frequency(0, self._center_frequency)
199+
try:
200+
source.set_hardware_time(time.time_ns(),'')
201+
except ValueError as e:
202+
print(e)
203+
pass
198204

199205
if 'gain' in d:
200206
gain = int(d['gain'])

0 commit comments

Comments
 (0)