Set default SCALING to 1

This commit is contained in:
Tobias Eidelpes 2021-06-17 22:51:49 +02:00
parent f56bb7c4e7
commit 10f77c99f6
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ from pika.exceptions import AMQPConnectionError
SWITCHING_TIME = 15 SWITCHING_TIME = 15
# Scale speed of switching by factor x # Scale speed of switching by factor x
SCALING = int(os.environ['DSE2021_SCALING']) SCALING = int(os.environ.get('DSE2021_SCALING', 1))
class TrafficLight: class TrafficLight:

View File

@ -20,7 +20,7 @@ STARTING_POINT = geopy.Point(47.89053, 16.20703)
# Driving direction in degrees: 0=N, 90=E, 180=S, 270=W # Driving direction in degrees: 0=N, 90=E, 180=S, 270=W
BEARING = 2 BEARING = 2
# Scale speed of vehicles by factor x # Scale speed of vehicles by factor x
SCALING = int(os.environ['DSE2021_SCALING']) SCALING = int(os.environ.get('DSE2021_SCALING', 1))
# in km/h # in km/h
STARTING_VELOCITY = 130 * SCALING STARTING_VELOCITY = 130 * SCALING
# Interval between status updates in seconds (is not scaled) # Interval between status updates in seconds (is not scaled)

View File

@ -23,7 +23,7 @@ sys.modules['target_velocity'] = target_velocity
ENTITY_IDENT_URL = 'http://entityident:5002/api/v1/resources/' 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: class Orchestrator: