kopia lustrzana https://github.com/proto17/dji_droneid
40 wiersze
938 B
Python
Executable File
40 wiersze
938 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright 2022 gr-droneid author.
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
|
|
from gnuradio import gr, gr_unittest
|
|
# from gnuradio import blocks
|
|
try:
|
|
from gnuradio.droneid import demodulation
|
|
except ImportError:
|
|
import os
|
|
import sys
|
|
dirname, filename = os.path.split(os.path.abspath(__file__))
|
|
sys.path.append(os.path.join(dirname, "bindings"))
|
|
from gnuradio.droneid import demodulation
|
|
|
|
class qa_demodulation(gr_unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
self.tb = gr.top_block()
|
|
|
|
def tearDown(self):
|
|
self.tb = None
|
|
|
|
def test_instance(self):
|
|
# FIXME: Test will fail until you pass sensible arguments to the constructor
|
|
instance = demodulation()
|
|
|
|
def test_001_descriptive_test_name(self):
|
|
# set up fg
|
|
self.tb.run()
|
|
# check data
|
|
|
|
|
|
if __name__ == '__main__':
|
|
gr_unittest.run(qa_demodulation)
|