Exemplo n.º 1
0
 def test_position_with_timestamp_with_messaging(self):
     # TODO this message looks to have other stuff we should parse
     self.__check_parsed(
         'KA6UPU-1>APRS,N6ZX-3*,WIDE1*:@160256z3755.50N/12205.43W_204/003g012t059r000p000P000h74b10084.DsVP',
         facts=[
             Messaging(True),
             Timestamp(_dummy_receive_datetime.replace(day=16, hour=2, minute=56, second=0, microsecond=0)),
             Position((37 + 55.50 / 60), -(122 + 05.43 / 60)),
             Symbol('/_'),
             Velocity(speed_knots=3, course_degrees=204),
         ],
         errors=[],
         comment='g012t059r000p000P000h74b10084.DsVP')
Exemplo n.º 2
0
 def test_position_with_timestamp_without_messaging(self):
     self.__check_parsed(
         'KMEP1>APT311,N6ZX-3*,WIDE1*,WIDE2-1:/160257z3726.79N\\12220.18Wv077/000/A=001955/N6ZX, Kings Mt. Eme',
         facts=[
             Messaging(False),
             Timestamp(_dummy_receive_datetime.replace(day=16, hour=2, minute=57, second=0, microsecond=0)),
             Position((37 + 26.79 / 60), -(122 + 20.18 / 60)),
             Symbol(u'\\v'),
             Velocity(speed_knots=0, course_degrees=77),
             Altitude(1955, True),
         ],
         errors=[],
         comment='/N6ZX, Kings Mt. Eme')
Exemplo n.º 3
0
 def test_object_report_kill(self):
     # Never seen a kill report live, so faked up from the test_object_report sample data
     self.__check_parsed(
         'FOO>BAR:;THEOBJECT_061508z3803.13N/12017.88Wr',
         facts=[ObjectItemReport(
             object=True,
             name='THEOBJECT',
             live=False,
             facts=[
                 Timestamp(_dummy_receive_datetime.replace(day=6, hour=15, minute=8, second=0, microsecond=0)),
                 Position(latitude=38.052166666666665, longitude=-120.298),
                 Symbol('/r'),
             ])],
         errors=[],
         comment='')
Exemplo n.º 4
0
 def test_object_report(self):
     # TODO: test case w/ compressed position
     # TODO: test case w/ data-in-comment-field
     self.__check_parsed(
         'KE6KYI>APU25N,K6TUO-3*,N6ZX-3*,WIDE2*:;FD TCARES*061508z3803.13N/12017.88WrTCARES Field Day Site June 28-29',
         facts=[ObjectItemReport(
             object=True,
             name='FD TCARES',
             live=True,
             facts=[
                 Timestamp(_dummy_receive_datetime.replace(day=6, hour=15, minute=8, second=0, microsecond=0)),
                 Position(latitude=38.052166666666665, longitude=-120.298),
                 Symbol('/r'),
             ])],
         errors=[],
         comment='TCARES Field Day Site June 28-29')
Exemplo n.º 5
0
 def test_position_with_timestamp_without_messaging(self):
     # TODO this message looks to have other stuff we should parse
     self.__check_parsed(
         'KMEP1>APT311,N6ZX-3*,WIDE1*,WIDE2-1:/160257z3726.79N\\12220.18Wv077/000/A=001955/N6ZX, Kings Mt. Eme',
         facts=[
             Messaging(False),
             Timestamp(
                 _dummy_receive_datetime.replace(day=16,
                                                 hour=2,
                                                 minute=57,
                                                 second=0,
                                                 microsecond=0)),
             Position((37 + 26.79 / 60), -(122 + 20.18 / 60)),
             Symbol('\\v'),
         ],
         errors=[],
         comment='077/000/A=001955/N6ZX, Kings Mt. Eme')