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
7785a061
Verified
Commit
7785a061
authored
1 year ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: remove placeholder comments
parent
9bf07ff3
dev
66-tag-current-dev-as-version-1
76-should-depth-and-altitude-be-coordinates
80-add-informational-type-primitive
87-remove-comment-for-platform-status-state
87-remove-todo-comment-from-platform-state
action-refactor-test
ci-js-test
master
v2.0.0
v2.0.0-beta.11
v2.0.0-beta.10
v2.0.0-beta.9
v2.0.0-beta.8
v2.0.0-beta.7
v2.0.0-beta.6
v2.0.0-beta.5
v2.0.0-beta.4
v2.0.0-beta.3
v2.0.0-beta.2
v2.0.0-beta.1
v1.0.0
v0.2.0
2 merge requests
!30
Resolve "Release v0.2"
,
!29
Resolve "SPINE Support"
Pipeline
#182005
passed with stages
in 1 minute and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
formats/alert.py
formats/alert.py
+2
-2
formats/platform_status.py
formats/platform_status.py
+1
-7
No files found.
formats/alert.py
View file @
7785a061
...
...
@@ -10,7 +10,7 @@ alert_schema = {
"example"
:
"alert"
,
"enum"
:
[
"alert"
],
},
"code"
:
{
# changed from alert_ID because reasons
"code"
:
{
"type"
:
"integer"
,
"description"
:
"Alert code"
,
"example"
:
345
,
...
...
@@ -26,7 +26,7 @@ alert_schema = {
"description"
:
"Timestamp for onboard platform status message"
,
"example"
:
"2022-12-21T00:00:00Z"
,
},
"subsystem"
:
{
# changed from suggested "source" could be device / subsystem or something
"subsystem"
:
{
"type"
:
"string"
,
"description"
:
"System that generated the alert"
,
"example"
:
"Onboard Fault Monitor"
,
...
...
This diff is collapsed.
Click to expand it.
formats/platform_status.py
View file @
7785a061
...
...
@@ -170,17 +170,12 @@ platform_status_schema = {
"description"
:
"Battery remaining % provided by respective C2"
,
"example"
:
80.2
,
},
# Battery power (kw / float)
"battery_output"
:
{
# changed from battery_power
"battery_output"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Battery output in kW"
,
"example"
:
80.2
,
},
# Bunkers remaining capacity (litres, float)
# Bunkers percentage full (percentage, float)
# battery_remaining_capacity is % full if we want both these fields
# these names are going to cause confusion
"fuel_remaining_capacity"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
...
...
@@ -193,7 +188,6 @@ platform_status_schema = {
"description"
:
"Litres of liquid fuel"
,
"example"
:
12.5
,
},
# Endurance (hours, float)
"endurance"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
...
...
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