From 5e533704609086a0756518ed99cf46e9010d4832 Mon Sep 17 00:00:00 2001
From: Trishna Saeharaseelan <trishna.saeharaseelan@noc.ac.uk>
Date: Fri, 22 Nov 2024 11:10:06 +0000
Subject: [PATCH] fix: merge conflicts

---
 CHANGELOG.md                                |  4 +---
 examples/mas-dt/platform_status_branch.json | 14 +++++++++++++-
 examples/mas-dt/platform_status_commit.json | 12 +++++++++++-
 examples/mas-dt/platform_status_semver.json | 14 ++++++++++++--
 formats/platform_status.py                  |  5 +++++
 project/soar/swagger.json                   |  7 +++++++
 6 files changed, 49 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5888624..8c93a2d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,12 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
 
 ### Added
 
-<<<<<<< HEAD
+- Additional_data field to platform_status to input any other data from a platform to be published
 - Goal object in mission_plan message that consists of a GeoJSON feature (representing the part of primitive that is currently the goal of the given mission plan).
 - A `partial` flag that indicates if a mission plan is a partial plan or the entire mission plan
-=======
 - Added "informational" to enum for primitive's instruction enum (planning configuration)
->>>>>>> 7f768c7 (refactor(planning_configuration): update primitive instruction's enum and new goal obj)
 - Options to primitives (under planning_configuration message) which is only a property when a primitive has an instruction of "follow" or "navigate_to"
 - Validate message_ID matches uuid format
 - Add definition of instruction_set message
diff --git a/examples/mas-dt/platform_status_branch.json b/examples/mas-dt/platform_status_branch.json
index 6b24ced..e21356d 100644
--- a/examples/mas-dt/platform_status_branch.json
+++ b/examples/mas-dt/platform_status_branch.json
@@ -19,6 +19,18 @@
         "latitude": 78.2,
         "longitude": -10.122,
         "depth": 50.0,
-        "altitude": 20
+        "altitude": 20,
+        "additional_data": {
+            "m_coulomb_amphr_total_amp-hrs": 95.45837241,
+            "m_surf_water_vx_m/s": 0.14628909,
+            "m_surf_water_vy_m/s": -0.29900273,
+            "x_last_wpt_lat": 5918.8097,
+            "x_last_wpt_lon": -33.7354,
+            "m_water_vx_m/s": 0.02802813404,
+            "m_water_vy_m/s": -0.158598628590847
+
+        }
     }
 }
+
+
diff --git a/examples/mas-dt/platform_status_commit.json b/examples/mas-dt/platform_status_commit.json
index 1ae1a6a..27e0e5c 100644
--- a/examples/mas-dt/platform_status_commit.json
+++ b/examples/mas-dt/platform_status_commit.json
@@ -19,6 +19,16 @@
         "latitude": 78.2,
         "longitude": -10.122,
         "depth": 50.0,
-        "altitude": 20
+        "altitude": 20,
+        "additional_data": {
+            "m_coulomb_amphr_total_amp-hrs": 95.45837241,
+            "m_surf_water_vx_m/s": 0.14628909,
+            "m_surf_water_vy_m/s": -0.29900273,
+            "x_last_wpt_lat": 5918.8097,
+            "x_last_wpt_lon": -33.7354,
+            "m_water_vx_m/s": 0.02802813404,
+            "m_water_vy_m/s": -0.158598628590847
+
+        }
     }
 }
diff --git a/examples/mas-dt/platform_status_semver.json b/examples/mas-dt/platform_status_semver.json
index ec22bbf..a620dae 100644
--- a/examples/mas-dt/platform_status_semver.json
+++ b/examples/mas-dt/platform_status_semver.json
@@ -2,7 +2,7 @@
     "header":{
         "message_ID": "b427003c-0000-11aa-a1eb-b1cdf2342fdd",
         "timestamp": "2024-09-05T00:00:00Z",
-        "version": "v2.0.0-beta.1",
+        "version": "v2.0.0-beta.9",
         "source": "noc-sfmc",
         "destination": "mas-dt.noc.slocum.unit_xxx.from_platform.platform_status",
         "delivery_type": "publish",
@@ -19,6 +19,16 @@
         "latitude": 78.2,
         "longitude": -10.122,
         "depth": 50.0,
-        "altitude": 20
+        "altitude": 20,
+        "additional_data": {
+            "m_coulomb_amphr_total_amp-hrs": 95.45837241,
+            "m_surf_water_vx_m/s": 0.14628909,
+            "m_surf_water_vy_m/s": -0.29900273,
+            "x_last_wpt_lat": 5918.8097,
+            "x_last_wpt_lon": -33.7354,
+            "m_water_vx_m/s": 0.02802813404,
+            "m_water_vy_m/s": -0.158598628590847
+
+        }
     }
 }
diff --git a/formats/platform_status.py b/formats/platform_status.py
index 52c34c5..6bb0dcc 100644
--- a/formats/platform_status.py
+++ b/formats/platform_status.py
@@ -175,6 +175,11 @@ platform_status_schema = {
             + "based on present output or performance",
             "example": 7.4,
         },
+        "additional_data": {
+            "type": "object",
+            "description": "Any addition fields/data to be added here",
+            "example": {"m_coulomb_amphr_total": 95.45837},
+        },
         "sensor_config": sensor_schema,
     },
     "oneOf": [
diff --git a/project/soar/swagger.json b/project/soar/swagger.json
index 734c742..94698e0 100644
--- a/project/soar/swagger.json
+++ b/project/soar/swagger.json
@@ -2465,6 +2465,13 @@
           }
         ],
         "properties": {
+          "additional_data": {
+            "description": "Any addition fields/data to be added here",
+            "example": {
+              "m_coulomb_amphr_total": 95.45837
+            },
+            "type": "object"
+          },
           "autonomy_engine_plan_ID": {
             "description": "Last mission plan ID (according to Autonomy Engine's mission plan number sent) executed by platform",
             "example": 1,
-- 
GitLab