Set default SCALING to 1
This commit is contained in:
parent
f56bb7c4e7
commit
10f77c99f6
@ -14,7 +14,7 @@ from pika.exceptions import AMQPConnectionError
|
||||
|
||||
SWITCHING_TIME = 15
|
||||
# Scale speed of switching by factor x
|
||||
SCALING = int(os.environ['DSE2021_SCALING'])
|
||||
SCALING = int(os.environ.get('DSE2021_SCALING', 1))
|
||||
|
||||
|
||||
class TrafficLight:
|
||||
|
||||
@ -20,7 +20,7 @@ STARTING_POINT = geopy.Point(47.89053, 16.20703)
|
||||
# Driving direction in degrees: 0=N, 90=E, 180=S, 270=W
|
||||
BEARING = 2
|
||||
# Scale speed of vehicles by factor x
|
||||
SCALING = int(os.environ['DSE2021_SCALING'])
|
||||
SCALING = int(os.environ.get('DSE2021_SCALING', 1))
|
||||
# in km/h
|
||||
STARTING_VELOCITY = 130 * SCALING
|
||||
# Interval between status updates in seconds (is not scaled)
|
||||
|
||||
@ -23,7 +23,7 @@ sys.modules['target_velocity'] = target_velocity
|
||||
|
||||
ENTITY_IDENT_URL = 'http://entityident:5002/api/v1/resources/'
|
||||
|
||||
SCALING = int(os.environ['DSE2021_SCALING'])
|
||||
SCALING = int(os.environ.get('DSE2021_SCALING', 1))
|
||||
|
||||
|
||||
class Orchestrator:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user