Skip to content

Commit

Permalink
Try to set hardware timestamp with soapy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Oct 24, 2021
1 parent 5d440a6 commit e3d3fd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/iridium_extractor_flowgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import sys
import math
import time

import numpy as np

Expand Down Expand Up @@ -195,6 +196,11 @@ def match_gain(gain, gain_names):

source.set_sample_rate(0, self._input_sample_rate)
source.set_frequency(0, self._center_frequency)
try:
source.set_hardware_time(time.time_ns(),'')
except ValueError as e:
print(e)
pass

if 'gain' in d:
gain = int(d['gain'])
Expand Down

0 comments on commit e3d3fd0

Please sign in to comment.