use installable shared lib for shared code

This commit is contained in:
Marco Zeisler
2021-05-27 19:53:41 +02:00
parent 37bffd5ce8
commit 73174858d6
21 changed files with 50 additions and 15 deletions
+3 -4
View File
@@ -6,10 +6,9 @@ from datetime import datetime
from circuitbreaker import circuit
# Default switching time in seconds
from shared import traffic_light_color
from shared.traffic_light_color import TrafficLightColor
from shared.message_broker_wrapper import MBWrapper
from shared.traffic_light_state import TrafficLightState
from dse_shared_libs.traffic_light_color import TrafficLightColor
from dse_shared_libs.message_broker_wrapper import MBWrapper
from dse_shared_libs.traffic_light_state import TrafficLightState
SWITCHING_TIME = 500
# Scale speed of switching by factor x
+3 -3
View File
@@ -7,12 +7,12 @@ from typing import Union
import geopy
import geopy.distance
from circuitbreaker import circuit
from shared.daf import DAF
from dse_shared_libs.daf import DAF
from shared.message_broker_wrapper import MBWrapper
from dse_shared_libs.message_broker_wrapper import MBWrapper
# Lat, Long
from shared.target_velocity import TargetVelocity
from dse_shared_libs.target_velocity import TargetVelocity
STARTING_POINT = geopy.Point(48.853, 2.349)
# in km/h