(info)
Print summary of frequencies of interest
Print summary of frequencies of interest
Print summary of frequencies of interest
def _print_freq_info(info):
    """Print summary of frequencies of interest"""
    sat = info['sat']
    setup = info['setup']
    lnb = info['lnb']
    lo_freq = info['freqs']['lo']
    l_freq = info['freqs']['l_band']

    util.print_header("Frequencies")

    print("For your information, your setup relies on the following "
          "frequencies:\n")
    print("| Downlink %2s band frequency            | %8.2f MHz |" %
          (sat['band'], sat['dl_freq']))
    print("| LNB local oscillator (LO) frequency   | %8.2f MHz |" % (lo_freq))
    print("| Receiver L-band frequency             | %7.2f MHz  |" % (l_freq))
    print()

    if (lnb['universal'] and (setup['type'] == defs.sdr_setup_type)):
        if (sat['dl_freq'] > defs.ku_band_thresh):
            print("NOTE regarding Universal LNB:\n")

            print(
                textwrap.fill(
                    ("The DL frequency of {} is in Ku high "
                     "band (> {:.1f} MHz). Hence, you need to use "
                     "the higher frequency LO ({:.1f} MHz) of your "
                     "Universal LNB. This requires a 22 kHz tone "
                     "to be sent to the LNB.").format(sat['alias'],
                                                      defs.ku_band_thresh,
                                                      lo_freq)))
            print()
            print(
                textwrap.fill(("With a software-defined setup, you will "
                               "need to place a 22 kHz tone generator "
                               "inline between the LNB and the power "
                               "inserter. Typically the tone generator "
                               "uses power from the power inserter while "
                               "delivering the tone directly to the "
                               "LNB.")))

    util.prompt_for_enter()
def _print_freq_info ( info ) : sat = info [ 'sat' ] setup = info [ 'setup' ] lnb = info [ 'lnb' ] lo_freq = info [ 'freqs' ] [ 'lo' ] l_freq = info [ 'freqs' ] [ 'l_band' ] util . print_header ( "Frequencies" ) print ( "For your information, your setup relies on the following " "frequencies:\n" ) print ( "| Downlink %2s band frequency            | %8.2f MHz |" % ( sat [ 'band' ] , sat [ 'dl_freq' ] ) ) print ( "| LNB local oscillator (LO) frequency   | %8.2f MHz |" % ( lo_freq ) ) print ( "| Receiver L-band frequency             | %7.2f MHz  |" % ( l_freq ) ) print ( ) if ( lnb [ 'universal' ] and ( setup [ 'type' ] == defs . sdr_setup_type ) ) : if ( sat [ 'dl_freq' ] > defs . ku_band_thresh ) : print ( "NOTE regarding Universal LNB:\n" ) print ( textwrap . fill ( ( "The DL frequency of {} is in Ku high " "band (> {:.1f} MHz). Hence, you need to use " "the higher frequency LO ({:.1f} MHz) of your " "Universal LNB. This requires a 22 kHz tone " "to be sent to the LNB." ) . format ( sat [ 'alias' ] , defs . ku_band_thresh , lo_freq ) ) ) print ( ) print ( textwrap . fill ( ( "With a software-defined setup, you will " "need to place a 22 kHz tone generator " "inline between the LNB and the power " "inserter. Typically the tone generator " "uses power from the power inserter while " "delivering the tone directly to the " "LNB." ) ) ) util . prompt_for_enter ( )