survey.py 1.77 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
"""
    schema: Survey Message that is decoded sent by platforms
    to track progress
"""

survey_schema = {
    "type": "object",
    "properties": {
        "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp for onboard message",
            "example": "2022-12-21T00:00:00Z",
        },
        "latitude_A": {
            "type": "number",
            "format": "float",
            "description": ("Latitude of point A(intersection of normal)"
            + "from waypoint A to survey line"),
            "example": 178.2,
        },
        "longitude_A": {
            "type": "number",
            "format": "float",
            "description": ("Longitude of point A(intersection of normal)"
            + "from waypoint A to survey line"),
            "example": -10.122,
        },
        "latitude_B": {
            "type": "number",
            "format": "float",
            "description": ("Latitude of point B(intersection of normal)"
            + "from waypoint B to survey line"),
            "example": 178.2,
        },
        "longitude_B": {
            "type": "number",
            "format": "float",
            "description": ("Longitude of point B(intersection of normal)"
            + "from waypoint B to survey line"),
            "example": -10.122,
        },
        "platform_ID": {
            "type": "string",
            "description": "Unique identifier for this platform",
            "example": "ecosub-2",
        },  
        "track_ID": {
            "type": "integer",
            "description": "Track number of action(s) currently executed by platform",
            "example": 1,
        },
    },
    "required": ["latitude_A", "longitude_A", "latitude_B", "longitude_B", "platform_ID"],
}