From 197f159cf8af44d22b0db607c7a966c92e89e1ca Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Sat, 23 Oct 2021 16:52:47 +1030 Subject: [PATCH 1/3] add "arrivalCircle" to "nextPoint" --- schemas/groups/navigation.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schemas/groups/navigation.json b/schemas/groups/navigation.json index 345e154b..e2c4a14e 100644 --- a/schemas/groups/navigation.json +++ b/schemas/groups/navigation.json @@ -94,6 +94,11 @@ "position": { "description": "The position of nextPoint in two dimensions", "$ref": "../definitions.json#/definitions/position" + }, + "arrivalCircle": { + "description": "The radius in meters of a circle centered around nextPoint position, when entered will signal arrival at destination", + "units": "m", + "$ref": "../definitions.json#/definitions/numberValue" } } } From ca667563a632975c2b13a4154d39d78d30f3a640 Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Mon, 1 Nov 2021 09:53:45 +1030 Subject: [PATCH 2/3] Add test --- test/data/full-valid/course-full_tree.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/data/full-valid/course-full_tree.json b/test/data/full-valid/course-full_tree.json index 3c93767c..0721b74a 100644 --- a/test/data/full-valid/course-full_tree.json +++ b/test/data/full-valid/course-full_tree.json @@ -79,6 +79,10 @@ "latitude": 49.287333333333336, "longitude": -123.1595 } + }, + "arrivalCircle": { + "value": 120, + "timestamp": "2017-01-25T00:23:05.230Z" } }, "previousPoint": { From 783f4174bba895791a174f4f234db630a8f4a1a4 Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Mon, 1 Nov 2021 09:56:41 +1030 Subject: [PATCH 3/3] added test to courseRhumbline --- test/data/full-valid/course-full_tree.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/data/full-valid/course-full_tree.json b/test/data/full-valid/course-full_tree.json index 0721b74a..61629d8e 100644 --- a/test/data/full-valid/course-full_tree.json +++ b/test/data/full-valid/course-full_tree.json @@ -82,7 +82,8 @@ }, "arrivalCircle": { "value": 120, - "timestamp": "2017-01-25T00:23:05.230Z" + "timestamp": "2017-01-25T00:23:05.230Z", + "$source": "a.suitable.path" } }, "previousPoint": { @@ -165,6 +166,11 @@ }, "timestamp": "2017-01-25T00:23:05.230Z", "$source": "a.suitable.path" + }, + "arrivalCircle": { + "value": 120, + "timestamp": "2017-01-25T00:23:05.230Z", + "$source": "a.suitable.path" } }, "previousPoint": {