Skip to content

Commit

Permalink
PEP
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Nov 17, 2024
1 parent ffdd5db commit a658697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TerrestrialScan/src/TerrestrialScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ def setParamsFe(params):
params_fe.setDVBT(params)
return params_fe


def channel2freq(channel, bandwidth=8): # Europe channels
if 4 < channel < 13: # Band III
return (((177 + (bandwidth * (channel - 5))) * 1000000) + 500000)
elif 20 < channel < 70: # Bands IV,V
return ((474 + (bandwidth * (channel - 21))) * 1000000) # returns nine digits
return ((474 + (bandwidth * (channel - 21))) * 1000000) # returns nine digits


def getChannelNumber(frequency, descr):
Expand Down

0 comments on commit a658697

Please sign in to comment.