Trees | Indices | Help |
---|
|
Autogenerated python functions to serialize/deserialize binary messages.
Generated by: ./aisxmlbinmsg2py.py
Need to then wrap these functions with the outer AIS packet and then convert the whole binary blob to a NMEA string. Those functions are not currently provided in this file.
serialize: python to ais binary deserialize: ais binary to python
The generated code uses translators.py, binary.py, and aisstring.py which should be packaged with the resulting files.Requires:
Author: xmlbinmsg
Version: 4791
Status: under development
License: Generated code has no license
|
|||
|
Testposition Use testvalue tag text from each type to build test case the position message |
|
|||
BitVector
|
encode(params,
validate=False) Create a position binary message payload to pack into an AIS Msg position. |
||
dict
|
decode(bv,
validate=False) Unpack a position message |
||
| decodeMessageID(bv, validate=False) | ||
| decodeRepeatIndicator(bv, validate=False) | ||
| decodeUserID(bv, validate=False) | ||
| decodeNavigationStatus(bv, validate=False) | ||
| decodeROT(bv, validate=False) | ||
| decodeSOG(bv, validate=False) | ||
| decodePositionAccuracy(bv, validate=False) | ||
| decodePosition_longitude(bv, validate=False) | ||
| decodePosition_latitude(bv, validate=False) | ||
| decodeCOG(bv, validate=False) | ||
| decodeTrueHeading(bv, validate=False) | ||
| decodeTimeStamp(bv, validate=False) | ||
| decodeRegionalReserved(bv, validate=False) | ||
| decodeSpare(bv, validate=False) | ||
| decodeRAIM(bv, validate=False) | ||
| decodesyncstate(bv, validate=False) | ||
| decodeslotoffset(bv, validate=False) | ||
stdout
|
printFields(params,
out=sys.stdout,
format='std') Print a position message to stdout. |
||
dict
|
testParams() Return a params file base on the testvalue tags. |
||
| addMsgOptions(parser) |
|
|||
|
__date__ = '2007-01-02' Date of last svn commit |
||
|
TrueBV = <ais.BitVector.BitVector object at 0x223ba10> Why always rebuild the True bit? This should speed things up a bunch |
||
|
FalseBV = <ais.BitVector.BitVector object at 0x223ba90> Why always rebuild the False bit? This should speed things up a bunch |
||
|
typeChoices = 'binary', 'nmeapayload', 'nmea'
|
||
|
msgDict = {'MessageID': '3', 'RepeatIndicator': options.Repeat...
|
||
|
bitLen = len(bits)
|
||
|
bits = bits+ BitVector(size= (6-(bitLen % 6)))
|
|
Create a position binary message payload to pack into an AIS Msg position. Fields in params:
|
Unpack a position message Fields in params:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Print a position message to stdout. Fields in params:
|
|
|
|
__date__Date of last svn commit
|
TrueBVWhy always rebuild the True bit? This should speed things up a bunch
|
FalseBVWhy always rebuild the False bit? This should speed things up a bunch
|
typeChoicesNone
|
msgDictNone
|
bitLenNone
|
bitsNone
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Thu Jan 4 10:57:47 2007 | http://epydoc.sourceforge.net |