survey.py 1.94 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
"""
    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",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
18 19 20 21
            "description": (
                "Latitude of point A(intersection of normal)"
                + "from waypoint A to survey line"
            ),
22 23 24 25 26
            "example": 178.2,
        },
        "longitude_A": {
            "type": "number",
            "format": "float",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
27 28 29 30
            "description": (
                "Longitude of point A(intersection of normal)"
                + "from waypoint A to survey line"
            ),
31 32 33 34 35
            "example": -10.122,
        },
        "latitude_B": {
            "type": "number",
            "format": "float",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
36 37 38 39
            "description": (
                "Latitude of point B(intersection of normal)"
                + "from waypoint B to survey line"
            ),
40 41 42 43 44
            "example": 178.2,
        },
        "longitude_B": {
            "type": "number",
            "format": "float",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
45 46 47 48
            "description": (
                "Longitude of point B(intersection of normal)"
                + "from waypoint B to survey line"
            ),
49 50 51 52 53 54
            "example": -10.122,
        },
        "platform_ID": {
            "type": "string",
            "description": "Unique identifier for this platform",
            "example": "ecosub-2",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
55
        },
56 57 58 59 60 61
        "track_ID": {
            "type": "integer",
            "description": "Track number of action(s) currently executed by platform",
            "example": 1,
        },
    },
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
62 63 64 65 66 67 68
    "required": [
        "latitude_A",
        "longitude_A",
        "latitude_B",
        "longitude_B",
        "platform_ID",
    ],
69
}