예제 #1
0
파일: Ndb.py 프로젝트: congocongo/pygear
 def __init__(self, Lat, Lon, Ele, Freq, ReceptionRange, Ident, Name):
     if not Airband.isNDB(Freq):
         print Freq, type(Freq)
         raise FormatError('Invalid NDB Freq: %sKhz' % (Freq/1000,))
     super(Ndb, self).__init__(Ident, Name, Lat, Lon, Ele)
     self.Freq = int(Freq)
     self.ReceptionRange = int(ReceptionRange)
예제 #2
0
파일: Vor.py 프로젝트: congocongo/pygear
 def __init__(self, Lat, Lon, Ele, Freq, ReceptionRange, 
              SlavedVariation, Ident, Name):
     if not Airband.isVOR(Freq):
         raise ValueError
     super(Vor, self).__init__(Ident, Name, Lat, Lon, Ele, Freq)
     self.ReceptionRange = int(ReceptionRange)
     self.SlavedVariation = float(SlavedVariation)
예제 #3
0
파일: Dme.py 프로젝트: congocongo/pygear
 def __init__(self, Lat, Lon, Ele, Freq, ReceptionRange, Bias, Ident,  Name):
     if not Airband.isDME(Freq):
         raise ValueError
     super(Dme, self).__init__(Ident, Name, Lat, Lon, Ele, Freq)
     self.ReceptionRange = int(ReceptionRange)
     self.Bias = float(Bias)