From 198dc1da8b622b3cd50daaa4e43569d31e66d76b Mon Sep 17 00:00:00 2001 From: Alexander Koufos Date: Fri, 5 Feb 2021 18:12:10 -0800 Subject: [PATCH] Issue #17: Updates the name of a file - Renames the constants file to include the _module notation, to better represent the file type. --- script/{constants.py => constants_module.py} | 2 +- script/controller.py | 6 +++--- script/trivial_planner.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename script/{constants.py => constants_module.py} (81%) diff --git a/script/constants.py b/script/constants_module.py similarity index 81% rename from script/constants.py rename to script/constants_module.py index 2631bf6..02e5e0f 100644 --- a/script/constants.py +++ b/script/constants_module.py @@ -1,4 +1,4 @@ - +# Module to define several constants used throughout the AV stack MAX_ACCELERATION = 3.0 # [m/s^2] (positive) MAX_DECELERATION = 9.0 # [m/s^2] (positive) MAX_JERK = 1.3 # [m/s^3] (positive) diff --git a/script/controller.py b/script/controller.py index 5985bce..924b8ac 100755 --- a/script/controller.py +++ b/script/controller.py @@ -14,9 +14,9 @@ from map_updater import OdometryState # Import some constants -from constants import MODE_EMERGENCY -from constants import MAX_ACCELERATION, MAX_DECELERATION, MAX_JERK -from constants import FREEFLOW_SPEED +from constants_module import MODE_EMERGENCY +from constants_module import MAX_ACCELERATION, MAX_DECELERATION, MAX_JERK +from constants_module import FREEFLOW_SPEED class AckermannController: diff --git a/script/trivial_planner.py b/script/trivial_planner.py index 3abb7b9..35d9259 100755 --- a/script/trivial_planner.py +++ b/script/trivial_planner.py @@ -14,8 +14,8 @@ from predictor_module import TrajectoryPredictor # Import some constants -from constants import MODE_NORMAL, MODE_EMERGENCY -from constants import MAX_ACCELERATION, MAX_DECELERATION +from constants_module import MODE_NORMAL, MODE_EMERGENCY +from constants_module import MAX_ACCELERATION, MAX_DECELERATION class TrivialPlanner: