1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-14 20:31:53 -05:00

Web API: scanner example updates

This commit is contained in:
f4exb 2018-03-22 09:18:49 +01:00
parent 1204734b58
commit ee027eda6a
2 changed files with 3 additions and 1 deletions

View File

@ -183,6 +183,8 @@ Simple AM and NFM scanner with multiple equally spaced channels. Stops whenever
Requires numpy Requires numpy
☞ Try to first run with the `-m` (mock) option to see what the scanner parameters will be. In particular pay attention to the computed sample rate that should be within range for your hardware. For devices with fixed or discrete rates make sure the computed sample rate does not exceed the unique device sample rate or the highest possible sample rate.
In addition to some APIs being used in other script it uses: In addition to some APIs being used in other script it uses:
- Get channels reports: - Get channels reports:

View File

@ -198,7 +198,7 @@ def checkScanning(fc, options):
if reportKey in channel["report"]: if reportKey in channel["report"]:
if channel["report"][reportKey]["squelch"] == 1: if channel["report"][reportKey]["squelch"] == 1:
f_channel = channel["deltaFrequency"]+fc f_channel = channel["deltaFrequency"]+fc
if f_channel not in options.excl_flist: if round(f_channel) not in options.excl_flist:
print("Stopped at %d Hz" % f_channel) print("Stopped at %d Hz" % f_channel)
return False # stop scanning return False # stop scanning
return True # continue scanning return True # continue scanning