Skip to content

Commit

Permalink
add the accelerate delay comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Zhe Shen <[email protected]>
  • Loading branch information
HansOersted committed Mar 28, 2024
1 parent 76d6e4c commit ebc38dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion control_src/consistency_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,20 @@ def read_yaml(file_path):
-simulator_model_params["vel_rate_lim"],
)
),
(
"[PID] accelerate_delay_difference: {}, (controller: {}, simulator: {})".format(
simulator_model_params["acc_time_delay"] - pid_params["delay_compensation_time"],
pid_params["delay_compensation_time"],
simulator_model_params["acc_time_delay"],
)
),
]

for item in results:
description = item.split(",")[0]
value = float(description.split(":")[1].strip())
error_message = ""
if "steer_delay_difference" in item or "steer_time_constant_difference" in item:
if "steer_delay_difference" in item or "steer_time_constant_difference" in item or "accelerate_delay_difference" in item:
if value != 0.0:
error_message = (
"[ERROR] The parameters of the controller and simulator should be identical.\033[0m"
Expand Down

0 comments on commit ebc38dd

Please sign in to comment.