Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to set hardware timestamp with soapy #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Try to set hardware timestamp with soapy
  • Loading branch information
Sec42 authored and schneider42 committed May 13, 2022
commit 8cc21baab36650f96cdde6affee52ac99e5cf522
5 changes: 5 additions & 0 deletions python/iridium_extractor_flowgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ def sanitize(s):

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