From cc802d344b1a42c45e25cdb28c1ac4958f325115 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Tue, 8 Jun 2021 16:18:49 +0200 Subject: [PATCH] Add realistic starting coordinates --- .../src/app/component/landing/landing.component.ts | 10 +++++----- components/entitiy_ident/mongo/traffic_lights.json | 6 +++--- components/i_feed/devices/vehicle.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/components/control_center/src/app/component/landing/landing.component.ts b/components/control_center/src/app/component/landing/landing.component.ts index e8a24fe..0fc0ca4 100644 --- a/components/control_center/src/app/component/landing/landing.component.ts +++ b/components/control_center/src/app/component/landing/landing.component.ts @@ -18,23 +18,23 @@ export class LandingComponent implements OnInit { zoom = 14; - center = {lat: 53.531248, lng: 13.409038}; + center = {lat: 47.90620, lng: 16.20785}; // Test Data markers = [ { Id: 1, name: 'Car-1', - lat: 53.521248, - lng: 13.399038, + lat: 47.89053, + lng: 16.20703, visible: true, iconUrl: 'assets/pictures/car.png' }, { Id: 2, name: 'Car-2', - lat: 53.531248, - lng: 13.409038, + lat: 47.89853, + lng: 16.20703, visible: true, iconUrl: 'assets/pictures/car.png' }, diff --git a/components/entitiy_ident/mongo/traffic_lights.json b/components/entitiy_ident/mongo/traffic_lights.json index c641bdc..3c9ea67 100644 --- a/components/entitiy_ident/mongo/traffic_lights.json +++ b/components/entitiy_ident/mongo/traffic_lights.json @@ -1,21 +1,21 @@ [ { "id": "1", - "location": [16.0, 48.0], + "location": [47.90853, 16.20703], "range": 2000, "switchingTime": 500, "initialColor": "RED" }, { "id": "2", - "location": [16.0, 48.1], + "location": [47.91572, 16.20703], "range": 800, "switchingTime": 240, "initialColor": "GREEN" }, { "id": "3", - "location": [16.0, 48.2], + "location": [47.92471, 16.20703], "range": 1000, "switchingTime": 360, "initialColor": "RED" diff --git a/components/i_feed/devices/vehicle.py b/components/i_feed/devices/vehicle.py index 1d75293..db0f354 100644 --- a/components/i_feed/devices/vehicle.py +++ b/components/i_feed/devices/vehicle.py @@ -15,7 +15,7 @@ from dse_shared_libs.message_broker_wrapper import MBWrapper from dse_shared_libs.target_velocity import TargetVelocity from pika.exceptions import AMQPConnectionError -STARTING_POINT = geopy.Point(48.853, 2.349) +STARTING_POINT = geopy.Point(47.89053, 16.20703) # in km/h STARTING_VELOCITY = 130 # Driving direction in degrees: 0=N, 90=E, 180=S, 270=W