Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
db639711
Commit
db639711
authored
2 years ago
by
Trishna Saeharaseelan
Browse files
Options
Download
Email Patches
Plain Diff
refactor: add heading field to platform status
parent
d5cf284f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
7 deletions
+23
-7
examples/ecosub_c2/platform_status.json
examples/ecosub_c2/platform_status.json
+1
-0
examples/hydrosurv_adapter/platform_status.json
examples/hydrosurv_adapter/platform_status.json
+1
-0
formats/planning_configuration.py
formats/planning_configuration.py
+14
-5
formats/platform_status.py
formats/platform_status.py
+6
-0
generate_swagger.py
generate_swagger.py
+1
-2
No files found.
examples/ecosub_c2/platform_status.json
View file @
db639711
...
...
@@ -20,6 +20,7 @@
"longitude"
:
-10.122
,
"depth"
:
50
,
"altitude"
:
20
,
"heading"
:
90.0
,
"health_status"
:
"Warning"
,
"localisation_error"
:
null
,
"usbl_fix_seconds_ago"
:
null
,
...
...
This diff is collapsed.
Click to expand it.
examples/hydrosurv_adapter/platform_status.json
View file @
db639711
...
...
@@ -11,6 +11,7 @@
"active"
:
true
,
"status_source"
:
"onboard_platform"
,
"battery_remaining_capacity"
:
80.2
,
"heading"
:
310.0
,
"health_status"
:
"Lost Connection"
,
"latitude"
:
178.2
,
"longitude"
:
-10.122
,
...
...
This diff is collapsed.
Click to expand it.
formats/planning_configuration.py
View file @
db639711
...
...
@@ -11,22 +11,23 @@ emergency_schema = {
"safe_command"
:
{
"type"
:
"string"
,
"enum"
:
[
"go_home"
,
"abort_now"
,
"stop_mission"
],
"description"
:
"Command/Action that is native to respective partner's platform/C2"
,
"description"
:
"Command/Action that is native to respective"
+
" partner's platform/C2"
,
"example"
:
"go_home"
,
},
"latitude_waypoint"
:
{
"type"
:
"number"
,
"description"
:
"X-coordinate
of
safe place for respective platform"
,
"description"
:
"X-coordinate safe place for respective platform"
,
"example"
:
-
7.432
,
},
"longitude_waypoint"
:
{
"type"
:
"number"
,
"description"
:
"Y-coordinate
of
safe place for respective platform"
,
"description"
:
"Y-coordinate safe place for respective platform"
,
"example"
:
50.365
,
},
"target_depth"
:
{
"type"
:
"number"
,
"description"
:
"Z-coordinate
of
safe place for respective platform"
"description"
:
"Z-coordinate safe place for respective platform"
+
" . If platform to NOT stay at depth, key in `0.0`"
,
"example"
:
10
,
},
...
...
@@ -79,7 +80,15 @@ platform_schema = {
"example"
:
{
"swath_width"
:
10.0
,
"scan_type"
:
"DVL"
},
},
},
"required"
:
[
"platform_ID"
,
"serial"
,
"model"
,
"emergency"
,
"min_altitude"
,
"min_velocity"
,
"max_velocity"
],
"required"
:
[
"platform_ID"
,
"serial"
,
"model"
,
"emergency"
,
"min_altitude"
,
"min_velocity"
,
"max_velocity"
,
],
}
region_schema
=
{
...
...
This diff is collapsed.
Click to expand it.
formats/platform_status.py
View file @
db639711
...
...
@@ -117,6 +117,12 @@ platform_status_message_schema = {
"description"
:
"TODO: Needs further consideration"
,
"example"
:
124.3
,
},
"heading"
:
{
"type"
:
"number"
,
"description"
:
"Angular distance relative to north, usually 000°"
+
" at north, clockwise through 359°, in degrees"
,
"example"
:
124.3
,
},
"health_status"
:
{
"type"
:
"string"
,
"description"
:
"Health status extracted by respective platform "
...
...
This diff is collapsed.
Click to expand it.
generate_swagger.py
View file @
db639711
...
...
@@ -109,8 +109,7 @@ for item in message_types:
"schema"
:
{
"allOf"
:
[
{
"$ref"
:
"#/components/schemas"
+
"/"
+
item
,
"$ref"
:
"#/components/schemas/"
+
item
,
},
],
"discriminator"
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment