Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (3)
from . import updaters
imo236tidalDataBitengths = (27, 28, 5, 6, 5, 6, 9, 7)
imo236tidalDataBitlengths = (27, 28, 5, 6, 5, 6, 9, 7)
imo236tidalDataTypes = ("I4", "I4", "u", "u", "u", "u", "u", "U1")
class imo236_tidal():
def __init__(self, dataParts):
......@@ -90,6 +90,8 @@ class polygon_vertices():
updaters.updatePolygonVertices(self)
# to również jest typ kształtu dla wiadomości typu 6_6
associatedTextBitlengths = (84)
associatedTextDataTypes = ("t",)
class associated_text():
def __init__(self, text):
self.type = "Associated text"
......@@ -311,19 +313,50 @@ class reservedSlot():
self.fields = ["Offset number", "Reserved slots", "Time-out", "Increment"]
arraysDataBitlengths = {
1:imo236tidalDataBitengths, 2:copDataBitlengths, 3:rectangleDataBitlengths, 4:sectorDataBitlengths,
5:polylineDataBitlengths, 6:polylineWaypointDataBilengths, 7:polygonDataBitlengths, 8:verticesDataBilengths,
9:imo289tidalDataBitlengths, 10:cargoDataBitlengths, 11:waypointDataBilengths, 12:targetDataBitlengths,
13:reportDataBitLengths, 14:sitelocationDataBitlengths, 15:stationidDataBitlengths, 16:windDataBitLengths,
17:waterlevelDataBitlnegths, 18:currentflow2dDataBitlenghts, 19:currentflow3dDataBitlengths, 20:horizontalcurrentDataBitlengths,
21:seastateDataBitlengths, 22:salinityDataBitlengths, 23:weatherDataBitlengths, 24:airgapDataBitlengths, 25:gaugeDataBitlengths
1:imo236tidalDataBitlengths, 2:copDataBitlengths,
3:rectangleDataBitlengths, 4:sectorDataBitlengths,
5:polylineDataBitlengths, 6:polylineWaypointDataBilengths,
7:polygonDataBitlengths, 8:verticesDataBilengths,
9:associatedTextBitlengths, 10:cargoDataBitlengths,
11:waypointDataBilengths, 12:imo289tidalDataBitlengths,
13:destinationMMSIDataBitlengths, 14: targetDataBitlengths,
15:reportDataBitLengths, 16:sitelocationDataBitlengths,
17:stationidDataBitlengths, 18:windDataBitLengths,
19:waterlevelDataBitlnegths, 20:currentflow2dDataBitlenghts,
21:currentflow3dDataBitlengths, 22:horizontalcurrentDataBitlengths,
23:seastateDataBitlengths, 24:salinityDataBitlengths,
25:weatherDataBitlengths, 26:airgapDataBitlengths,
27:gaugeDataBitlengths, 28:reservedSlotDataBitlengths
}
arraysDataTypes = {
1:imo236tidalDataTypes, 2:copDataTypes, 3:rectangleDataTypes, 4:sectorDataTypes,
5:polylineDataTypes, 6:polylineWaypointDataTypes, 7:polygonDataTypes, 8:verticesDataTypes,
9:imo289tidalDataTypes, 10:cargoDataTypes, 11:waypointDataTypes, 12:targetDataTypes,
13:reportDataTypes, 14:sitelocationDataTypes, 15:stationidDataTypes, 16:windDataTypes,
17:waterlevelDataTypes, 18:currentflow2dDataTypes, 19:currentflow3dDataTypes, 20:horizontalcurrentDataTypes,
21:seastateDataTypes, 22:salinityDataTypes, 23:weatherDataTypes, 24:airgapDataTypes, 25:gaugeDataTypes
}
\ No newline at end of file
1:imo236tidalDataTypes, 2:copDataTypes,
3:rectangleDataTypes, 4:sectorDataTypes,
5:polylineDataTypes, 6:polylineWaypointDataTypes,
7:polygonDataTypes, 8:verticesDataTypes,# ?do którego typu
9:associatedTextDataTypes, 10:cargoDataTypes, # ?gdzie associated data
11:waypointDataTypes, 12:imo289tidalDataTypes,
13:destinationMMSITypes, 14:targetDataTypes,
15:reportDataTypes, 16:sitelocationDataTypes,
17:stationidDataTypes, 18:windDataTypes,
19:waterlevelDataTypes, 20:currentflow2dDataTypes,
21:currentflow3dDataTypes, 22:horizontalcurrentDataTypes,
23:seastateDataTypes, 24:salinityDataTypes,
25:weatherDataTypes, 26:airgapDataTypes,
27:gaugeDataTypes, 28:reservedSlotTypes
}
# 6_2 -> 1
# 6_7 -> 2, 3, 4, 5, 6, 7, 8, 9 # 8 i 9 na czuja
# 6_8 -> 10
# 6_9 -> 11
# 6_11 -> 12
# 7 -> 13
# 8_4 -> 14
# 8_7 -> 2, 3, 4, 5, 6, 7, 8, 9 # 8 i 9 na czuja
# 8_9 -> 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26
# 8_10 -> 11
# 8_15 -> 27
# 20 -> 28
\ No newline at end of file