Implement dynamic adjustment of velocity
This commit is contained in:
@@ -11,7 +11,7 @@ from dse_shared_libs.message_broker_wrapper import MBWrapper
|
||||
from dse_shared_libs.traffic_light_state import TrafficLightState
|
||||
from pika.exceptions import AMQPConnectionError
|
||||
|
||||
SWITCHING_TIME = 10
|
||||
SWITCHING_TIME = 15
|
||||
# Scale speed of switching by factor x
|
||||
SCALING = 1
|
||||
|
||||
|
||||
@@ -16,18 +16,18 @@ from dse_shared_libs.target_velocity import TargetVelocity
|
||||
from pika.exceptions import AMQPConnectionError
|
||||
|
||||
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
|
||||
BEARING = 0
|
||||
# Scale speed of vehicles by factor x
|
||||
SCALING = 2
|
||||
SCALING = 1
|
||||
# in km/h
|
||||
STARTING_VELOCITY = 130 * SCALING
|
||||
# Interval between status updates in seconds (is not scaled)
|
||||
UPDATE_INTERVAL = 1
|
||||
# At x km the NCE shall happen
|
||||
NCE_KM = 2.4
|
||||
# Time in seconds to recover from NCE (will be scaled)
|
||||
TIME_TO_RECOVER = 10
|
||||
TIME_TO_RECOVER = 5
|
||||
# Resets vehicle at km x
|
||||
RESET_KM = 4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user