Bitfield checksum mismatch3/2/2023 ![]() compute = compute # Pass value through this pre-dispatch subtypes = subtypes # Possible subtypes to dispatch to fieldname = fieldname # Value of view to dispatch on "Describes how to dispatch to a message type variant on a subfield value."ĭef _init_( self, fieldname, subtypes, compute = lambda x: x, "Describes spare bits, not to be interpreted."ĭef _init_( self, width, conditional = None): conditional = conditional # Evaluation guard for this field formatter = formatter # Custom reporting hook. validator = validator # Validation checker legend = legend # Human-friendly description of field oob = oob # Out-of-band value to be shown as n/a ![]() type = dtype # Data type: signed/unsigned/string/raw name = name # Fieldname, for internal use and JSON Validator = None, formatter = None, conditional = None): # handle the case where the field should be reported as an integerĭef _init_( self, name, width, dtype, oob, legend, # down on the number of custom formatting hooks. This isn't used in data extraction, but rather to cut # The only un-obvious detail is the use of the oob (out-of-band) "Object defining the interpretation of an AIS bitfield." # Here are the pseudoinstructions in the pseudolanguage. # Decoding for 1-15, 18-21, and 24 have been tested against live data. # * No support for IMO236 and IMO289 special messages in types 6 and 8 yet. # bits the data spec eats in order to recover the radio bits after it. We'd need new machinery to constrain how many # in the wild yet as of Jan 2010 not a lot of point in trying util # * Message type 26 is presently unsupported. # addressed field is located *after* the variant parts. # * Only handles the broadcast case of type 22. # * Doesn't join parts A and B of Type 24 together yet. # and a small amount of code for interpreting it. # message, a set of tables which contain instructions in the pseudolanguage, # to describe the process of extracting packed bitfields from an AIS # This decoder works by defining a declarative pseudolanguage in which # This code runs compatibly under Python 2 and 3.x for x >= 2.įrom _future_ import absolute_import, print_function, divisionĭef reraise_with_traceback( exc_type, exc_value, exc_traceback): # BSD terms apply: see the file COPYING in the distribution root for details. # This file is Copyright (c) 2010 by the GPSD project ![]() Reraise_with_traceback Function reraise_with_traceback Function bitfield Class _init_ Function spare Class _init_ Function dispatch Class _init_ Function cnb_rot_format Function cnb_latlon_format Function cnb_speed_format Function cnb_course_format Function cnb_second_format Function type8_latlon_format Function type8_dac1_fid11_airtemp_format Function type8_dac1_fid11_dewpoint_format Function type8_dac1_fid11_pressure_format Function type8_dac1_fid11_visibility_format Function type8_dac1_fid11_waterlevel_format Function type8_dac1_fid11_cspeed_format Function type8_dac1_fid11_waveheight_format Function type8_dac1_fid11_watertemp_format Function type8_dac1_fid11_salinity_format Function type9_alt_format Function type9_speed_format Function short_latlon_format Function BitVector Class _init_ Function extend_to Function from_sixbit Function ubits Function sbits Function _len_ Function _repr_ Function AISUnpackingException Class _init_ Function _repr_ Function aivdm_unpack Function packet_scanner Function postprocess Function parse_ais_messages Function quotify Function ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |