Ejemplo n.º 1
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'seqno': Member(type='x', offset=38, length=2),
            'text': Member(type='t', offset=40, length=968),
        }
Ejemplo n.º 2
0
    def __init__(self):
        super().__init__()

        self.member: Dict[str, Member] = {
            'type': Member(type='u', offset=0, length=6),
            'repeat': Member(type='u', offset=6, length=2),
            'mmsi': Member(type='u', offset=8, length=30),
        }
Ejemplo n.º 3
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'partno': Member(type='u', offset=38, length=2),
            'shipname': Member(type='t', offset=40, length=120),
            'spare': Member(type='x', offset=160, length=8),
        }
Ejemplo n.º 4
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'spare1': Member(type='x', offset=38, length=2),
            'lon': Member(type='I4', offset=40, length=18),
            'lat': Member(type='I4', offset=58, length=17),
            'spare2': Member(type='x', offset=75, length=5),
            'data': Member(type='d', offset=80, length=736),
        }
Ejemplo n.º 5
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'seqno': Member(type='x', offset=38, length=2),
            'dest_mmsi': Member(type='u', offset=40, length=30),
            'retransmit': Member(type='b', offset=70, length=1),
            'spare': Member(type='x', offset=71, length=1),
            'text': Member(type='t', offset=72, length=936),
        }
Ejemplo n.º 6
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'accuracy': Member(type='b', offset=38, length=1),
            'raim': Member(type='b', offset=39, length=1),
            'status': Member(type='e', offset=40, length=4),
            'lon': Member(type='I4', offset=44, length=28),
            'lat': Member(type='I4', offset=62, length=27),
            'speed': Member(type='U1', offset=79, length=6),
            'course': Member(type='U1', offset=85, length=9),
            'gnss': Member(type='b', offset=94, length=1),
            'spare': Member(type='x', offset=95, length=1),
        }
Ejemplo n.º 7
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'spare': Member(type='x', offset=38, length=2),
            'mmsi1': Member(type='u', offset=40, length=30),
            'mmsiseq1': Member(type='u', offset=70, length=2),
            'mmsi2': Member(type='u', offset=72, length=30),
            'mmsiseq2': Member(type='u', offset=102, length=2),
            'mmsi3': Member(type='u', offset=104, length=30),
            'mmsiseq3': Member(type='u', offset=134, length=2),
            'mmsi4': Member(type='u', offset=136, length=30),
            'mmsiseq4': Member(type='u', offset=166, length=2),
        }
Ejemplo n.º 8
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'spare1': Member(type='x', offset=38, length=2),
            'mmsi1': Member(type='u', offset=40, length=30),
            'offset1': Member(type='u', offset=70, length=12),
            'increment1': Member(type='u', offset=82, length=10),
            'mmsi2': Member(type='u', offset=92, length=30),
            'offset2': Member(type='u', offset=122, length=12),
            'increment2': Member(type='u', offset=134, length=10),
        }
Ejemplo n.º 9
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, any] = {
            'year': Member(type='u', offset=38, length=14),
            'month': Member(type='u', offset=52, length=4),
            'day': Member(type='u', offset=56, length=5),
            'hour': Member(type='u', offset=61, length=5),
            'minute': Member(type='u', offset=66, length=6),
            'second': Member(type='u', offset=72, length=6),
            'accuracy': Member(type='b', offset=78, length=1),
            'lon': Member(type='I4', offset=79, length=28),
            'lat': Member(type='I4', offset=107, length=27),
            'epfd': Member(type='e', offset=134, length=4),
            'spare': Member(type='x', offset=138, length=10),
            'raim': Member(type='b', offset=148, length=1),
            'radio': Member(type='u', offset=149, length=19),
        }
Ejemplo n.º 10
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'reserved': Member(type='x', offset=38, length=8),
            'speed': Member(type='U1', offset=46, length=10),
            'accuracy': Member(type='b', offset=56, length=1),
            'lon': Member(type='I4', offset=57, length=28),
            'lat': Member(type='I4', offset=85, length=27),
            'course': Member(type='U1', offset=112, length=12),
            'heading': Member(type='u', offset=124, length=9),
            'second': Member(type='u', offset=133, length=6),
            'regional': Member(type='u', offset=139, length=2),
            'cs': Member(type='b', offset=141, length=1),
            'display': Member(type='b', offset=142, length=1),
            'dsc': Member(type='b', offset=143, length=1),
            'band': Member(type='b', offset=144, length=1),
            'msg22': Member(type='b', offset=145, length=1),
            'assigned': Member(type='b', offset=146, length=1),
            'raim': Member(type='b', offset=147, length=1),
            'radio': Member(type='u', offset=148, length=20),
        }
Ejemplo n.º 11
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'partno': Member(type='u', offset=38, length=2),
            'shiptype': Member(type='e', offset=40, length=8),
            'vendorid': Member(type='t', offset=48, length=18),
            'model': Member(type='u', offset=66, length=4),
            'serial': Member(type='u', offset=70, length=20),
            'callsign': Member(type='t', offset=90, length=42),
            'to_bow': Member(type='u', offset=132, length=9),
            'to_stern': Member(type='u', offset=141, length=9),
            'to_port': Member(type='u', offset=150, length=6),
            'to_starboard': Member(type='u', offset=156, length=6),
            'mothership_mmsi': Member(type='u', offset=132, length=30),
        }
Ejemplo n.º 12
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'spare': Member(type='x', offset=38, length=2),
            'offset1': Member(type='u', offset=40, length=12),
            'number1': Member(type='u', offset=52, length=4),
            'timeout1': Member(type='u', offset=56, length=3),
            'increment1': Member(type='u', offset=59, length=11),
            'offset2': Member(type='u', offset=70, length=12),
            'number2': Member(type='u', offset=82, length=4),
            'timeout2': Member(type='u', offset=86, length=3),
            'increment2': Member(type='u', offset=89, length=11),
            'offset3': Member(type='u', offset=100, length=12),
            'number3': Member(type='u', offset=112, length=4),
            'timeout3': Member(type='u', offset=116, length=3),
            'increment3': Member(type='u', offset=119, length=11),
            'offset4': Member(type='u', offset=130, length=12),
            'number4': Member(type='u', offset=142, length=4),
            'timeout4': Member(type='u', offset=146, length=3),
            'increment4': Member(type='u', offset=149, length=11),
        }
Ejemplo n.º 13
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'status': Member(type='e', offset=38, length=4),
            'turn': Member(type='I3', offset=42, length=8),
            'speed': Member(type='U1', offset=50, length=10),
            'accuracy': Member(type='b', offset=60, length=1),
            'lon': Member(type='I4', offset=61, length=28),
            'lat': Member(type='I4', offset=89, length=27),
            'course': Member(type='U1', offset=116, length=12),
            'heading': Member(type='u', offset=128, length=9),
            'second': Member(type='u', offset=137, length=6),
            'maneuver': Member(type='e', offset=143, length=2),
            'spare': Member(type='x', offset=145, length=3),
            'raim': Member(type='b', offset=146, length=1),
            'radio': Member(type='u', offset=147, length=19),
        }
Ejemplo n.º 14
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'ais_version': Member(type='u', offset=38, length=2),
            'imo': Member(type='u', offset=40, length=30),
            'callsign': Member(type='t', offset=70, length=42),
            'shipname': Member(type='t', offset=112, length=120),
            'shiptype': Member(type='u', offset=232, length=8),
            'to_bow': Member(type='u', offset=240, length=9),
            'to_stern': Member(type='u', offset=249, length=9),
            'to_port': Member(type='u', offset=258, length=6),
            'to_starboard': Member(type='u', offset=264, length=6),
            'epfd': Member(type='u', offset=270, length=4),
            'month': Member(type='u', offset=274, length=4),
            'day': Member(type='u', offset=278, length=5),
            'hour': Member(type='u', offset=283, length=5),
            'minute': Member(type='u', offset=288, length=6),
            'draught': Member(type='U1', offset=294, length=8),
            'destination': Member(type='t', offset=302, length=120),
            'dte': Member(type='u', offset=422, length=1),
        }
Ejemplo n.º 15
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'spare1': Member(type='x', offset=38, length=2),
            'mmsi1': Member(type='u', offset=40, length=30),
            'type1_1': Member(type='u', offset=70, length=6),
            'offset1_1': Member(type='u', offset=76, length=12),
            'spare2': Member(type='x', offset=88, length=2),
            'type1_2': Member(type='u', offset=90, length=6),
            'offset1_2': Member(type='u', offset=96, length=12),
            'mmsi2': Member(type='u', offset=110, length=30),
            'type2_1': Member(type='u', offset=140, length=6),
            'offset2_1': Member(type='u', offset=146, length=12),
            'spare3': Member(type='x', offset=158, length=2),
        }
Ejemplo n.º 16
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'aid_type': Member(type='e', offset=38, length=5),
            'name': Member(type='t', offset=43, length=120),
            'accuracy': Member(type='b', offset=163, length=1),
            'lon': Member(type='I4', offset=164, length=28),
            'lat': Member(type='I4', offset=192, length=27),
            'to_bow': Member(type='u', offset=219, length=9),
            'to_stern': Member(type='u', offset=228, length=9),
            'to_port': Member(type='u', offset=237, length=6),
            'to_starboard': Member(type='u', offset=243, length=6),
            'epfd': Member(type='e', offset=249, length=4),
            'second': Member(type='x', offset=253, length=6),
            'off_position': Member(type='b', offset=259, length=1),
            'regional': Member(type='u', offset=260, length=8),
            'raim': Member(type='b', offset=268, length=1),
            'virtual_aid': Member(type='b', offset=269, length=1),
            'assigned': Member(type='b', offset=270, length=1),
            'spare': Member(type='x', offset=271, length=1),
            'extension': Member(type='t', offset=272, length=88),
        }
Ejemplo n.º 17
0
    def __init__(self):

        super().__init__()

        self.member: Dict[str, Member] = {
            'reserved': Member(type='x', offset=38, length=8),
            'speed': Member(type='U1', offset=46, length=10),
            'accuracy': Member(type='b', offset=56, length=1),
            'lon': Member(type='I4', offset=57, length=28),
            'lat': Member(type='I4', offset=85, length=27),
            'course': Member(type='U1', offset=112, length=12),
            'heading': Member(type='u', offset=124, length=9),
            'second': Member(type='u', offset=133, length=6),
            'regional': Member(type='u', offset=139, length=4),
            'shipname': Member(type='t', offset=143, length=120),
            'shiptype': Member(type='u', offset=263, length=8),
            'to_bow': Member(type='u', offset=271, length=9),
            'to_stern': Member(type='u', offset=280, length=9),
            'to_port': Member(type='u', offset=289, length=6),
            'to_starboard': Member(type='u', offset=295, length=6),
            'epfd': Member(type='e', offset=301, length=4),
            'raim': Member(type='b', offset=305, length=1),
            'assigned': Member(type='b', offset=307, length=1),
            'spare': Member(type='x', offset=308, length=4),
        }