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-adapter-javascript
Commits
be220d3f
Unverified
Commit
be220d3f
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
test: update example messages to match new schema
parent
7efb283a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
46 deletions
+52
-46
test/mock/messages/Message_VehicleMission.json
test/mock/messages/Message_VehicleMission.json
+10
-8
test/mock/messages/Message_VehicleMissionActions.json
test/mock/messages/Message_VehicleMissionActions.json
+29
-27
test/mock/messages/Message_VehicleStatus.json
test/mock/messages/Message_VehicleStatus.json
+13
-11
No files found.
test/mock/messages/Message_VehicleMission.json
View file @
be220d3f
{
{
"message_type"
:
"VehicleMission"
,
"metadata"
:
{
"metadata"
:
{
"source"
:
"ae"
,
"source"
:
"ae"
,
"destination"
:
"soar.po.ecosub.eco1"
,
"destination"
:
"soar.po.ecosub.eco1"
,
"delivery_type"
:
"publish"
,
"delivery_type"
:
"publish"
,
"message_id"
:
"test"
"message_id"
:
"test"
},
},
"operator_id"
:
"po"
,
"payload"
:
{
"vehicle_id"
:
"eco1"
,
"message_type"
:
"VehicleMission"
,
"coordinates"
:
{
"operator_id"
:
"po"
,
"latitude"
:
59.234
,
"vehicle_id"
:
"eco1"
,
"longitude"
:
-10.432
,
"coordinates"
:
{
"depth"
:
50
,
"latitude"
:
59.234
,
"projection"
:
4326
"longitude"
:
-10.432
,
"depth"
:
50
,
"projection"
:
4326
}
}
}
}
}
This diff is collapsed.
Click to expand it.
test/mock/messages/Message_VehicleMissionActions.json
View file @
be220d3f
{
{
"message_type"
:
"VehicleMission"
,
"metadata"
:
{
"metadata"
:
{
"source"
:
"ae"
,
"source"
:
"ae"
,
"destination"
:
"soar.po.ecosub.eco1"
,
"destination"
:
"soar.po.ecosub.eco1"
,
"delivery_type"
:
"publish"
,
"delivery_type"
:
"publish"
,
"message_id"
:
"test"
"message_id"
:
"test"
},
},
"operator_id"
:
"po"
,
"payload"
:
{
"vehicle_id"
:
"eco1"
,
"message_type"
:
"VehicleMission"
,
"coordinates"
:
{
"operator_id"
:
"po"
,
"latitude"
:
59.234
,
"vehicle_id"
:
"eco1"
,
"longitude"
:
-10.432
,
"coordinates"
:
{
"depth"
:
50
,
"latitude"
:
59.234
,
"projection"
:
4326
"longitude"
:
-10.432
,
},
"depth"
:
50
,
"actions"
:
[
"projection"
:
4326
{
"action_type"
:
"GoToWaypoint"
,
"coordinates"
:
{
"latitude"
:
59.234
,
"longitude"
:
-10.432
,
"depth"
:
50
,
"projection"
:
4326
}
},
},
{
"actions"
:
[
"action_type"
:
"DescendToAltitude"
,
{
"coordinates"
:
{
"action_type"
:
"GoToWaypoint"
,
"latitude"
:
59.234
,
"coordinates"
:
{
"longitude"
:
-10.432
,
"latitude"
:
59.234
,
"altitude"
:
50
,
"longitude"
:
-10.432
,
"projection"
:
4326
"depth"
:
50
,
"projection"
:
4326
}
},
{
"action_type"
:
"DescendToAltitude"
,
"coordinates"
:
{
"latitude"
:
59.234
,
"longitude"
:
-10.432
,
"altitude"
:
50
,
"projection"
:
4326
}
}
}
}
]
]
}
}
}
This diff is collapsed.
Click to expand it.
test/mock/messages/Message_VehicleStatus.json
View file @
be220d3f
{
{
"message_type"
:
"VehicleStatus"
,
"metadata"
:
{
"metadata"
:
{
"source"
:
"ae"
,
"source"
:
"ae"
,
"destination"
:
"soar.po.ecosub.eco1"
,
"destination"
:
"soar.po.ecosub.eco1"
,
"delivery_type"
:
"publish"
,
"delivery_type"
:
"publish"
,
"message_id"
:
"test"
"message_id"
:
"test"
},
},
"operator_id"
:
"po"
,
"payload"
:
{
"vehicle_id"
:
"eco1"
,
"message_type"
:
"VehicleStatus"
,
"coordinates"
:
{
"operator_id"
:
"po"
,
"latitude"
:
57.234
,
"vehicle_id"
:
"eco1"
,
"longitude"
:
-8.432
,
"coordinates"
:
{
"depth"
:
50
,
"latitude"
:
57.234
,
"projection"
:
4326
"longitude"
:
-8.432
,
},
"depth"
:
50
,
"battery_percentage"
:
64
"projection"
:
4326
}
},
"battery_percentage"
:
64
}
}
\ No newline at end of file
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