better support simplex channel selection via iden table; update iden_channel_calc.py helper to support doing conversion to channel no and FROM channel no;
parser.add_argument('--spacing',action='store',dest='Spacing',type=float,help='Channel Spacing (in KHz)',required=True)
parser.add_argument('--spacing',action='store',dest='Spacing',type=float,help='Channel Spacing (in KHz)',required=True)
parser.add_argument('--offset',action='store',dest='InputOffset',type=float,help='Input Offset (in MHz)',required=True)
parser.add_argument('--offset',action='store',dest='InputOffset',type=float,help='Input Offset (in MHz)',required=True)
parser.add_argument('--bandwidth',action='store',dest='Bandwidth',type=float,help='Bandwidth (in KHz)',required=True)
parser.add_argument('--bandwidth',action='store',dest='Bandwidth',type=float,help='Bandwidth (in KHz)',required=True)
parser.add_argument('--tx',action='store',dest='TxFrequency',type=int,help='Transmit Frequency (in Hz, this should be within the band of the Base Frequency)',required=True)
parser.add_argument('--tx',action='store',dest='TxFrequency',type=int,help='Transmit Frequency (in Hz, this should be within the band of the Base Frequency)',required=False)
print('ERROR: Tx Frequency ('+'%.5f'%float(cli_args.TxFrequency/HZ_MHZ)+') is out of band range for base frequency ('+'%.5f'%float(cli_args.BaseFrequency/HZ_MHZ)+'). '+ \
print('ERROR: Tx Frequency or Channel Number must be spcified!')
'Tx Frequency must be greater then the base frequency!')
print('ERROR: Tx Frequency ('+'%.5f'%float(cli_args.TxFrequency/HZ_MHZ)+') is out of band range for base frequency ('+'%.5f'%float(cli_args.BaseFrequency/HZ_MHZ)+'). '+ \
print('ERROR: Tx Frequency or Channel Number must be spcified!')
'Tx Frequency must be no more then 25.5 Mhz higher then the base frequency!')
quit()
quit()
if(cli_args.TxFrequency):
if(cli_args.TxFrequency<cli_args.BaseFrequency):
print('ERROR: Tx Frequency ('+'%.5f'%float(cli_args.TxFrequency/HZ_MHZ)+') is out of band range for base frequency ('+'%.5f'%float(cli_args.BaseFrequency/HZ_MHZ)+'). '+ \
'Tx Frequency must be greater then the base frequency!')
print('ERROR: Tx Frequency ('+'%.5f'%float(cli_args.TxFrequency/HZ_MHZ)+') is out of band range for base frequency ('+'%.5f'%float(cli_args.BaseFrequency/HZ_MHZ)+'). '+ \
'Tx Frequency must be no more then 25.5 Mhz higher then the base frequency!')