From c3aa4d83b9fd344ddc73cff07fc763d288587314 Mon Sep 17 00:00:00 2001 From: Dan Jones <danjon@noc.ac.uk> Date: Thu, 29 Aug 2024 11:06:12 +0100 Subject: [PATCH] refactor: revert change to emergency schema --- formats/planning_configuration.py | 20 ++++++++++++++++++-- project/soar/swagger.json | 19 +++++++++++++++++-- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/formats/planning_configuration.py b/formats/planning_configuration.py index 351e342..a7adf71 100644 --- a/formats/planning_configuration.py +++ b/formats/planning_configuration.py @@ -13,8 +13,24 @@ emergency_schema = { + " partner's platform/C2", "example": "go_home", }, - "target_waypoint": { - "$ref": "https://geojson.org/schema/Point.json", + "target_waypoint_latitude": { + "type": "number", + "format": "float", + "description": "Y-coordinate safe place for respective platform", + "example": 50.365, + }, + "target_waypoint_longitude": { + "type": "number", + "format": "float", + "description": "X-coordinate safe place for respective platform", + "example": -7.432, + }, + "target_depth": { + "type": "number", + "format": "float", + "description": "Z-coordinate safe place for respective platform" + + " . If platform to NOT stay at depth, key in `0.0`", + "example": 10.0, }, }, "required": [ diff --git a/project/soar/swagger.json b/project/soar/swagger.json index 99672c8..bc4367d 100644 --- a/project/soar/swagger.json +++ b/project/soar/swagger.json @@ -1794,8 +1794,23 @@ "example": "go_home", "type": "string" }, - "target_waypoint": { - "$ref": "#/components/schemas/geojson.org.schema.Point.json" + "target_depth": { + "description": "Z-coordinate safe place for respective platform . If platform to NOT stay at depth, key in `0.0`", + "example": 10.0, + "format": "float", + "type": "number" + }, + "target_waypoint_latitude": { + "description": "Y-coordinate safe place for respective platform", + "example": 50.365, + "format": "float", + "type": "number" + }, + "target_waypoint_longitude": { + "description": "X-coordinate safe place for respective platform", + "example": -7.432, + "format": "float", + "type": "number" } }, "required": [ -- GitLab