From 07aa0a1c83f5d924272371d92bb36c0a961d9b55 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 4 May 2022 20:55:05 -0700 Subject: [PATCH] clean up and make a diff --- selfdrive/car/toyota/interface.py | 2 +- selfdrive/test/process_replay/ref_commit | 2 +- .../test/process_replay/test_processes.py | 30 +++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/selfdrive/car/toyota/interface.py b/selfdrive/car/toyota/interface.py index 433058b3c0..c2e66dd09c 100644 --- a/selfdrive/car/toyota/interface.py +++ b/selfdrive/car/toyota/interface.py @@ -136,7 +136,7 @@ class CarInterface(CarInterfaceBase): ret.steerRatio = 13.9 tire_stiffness_factor = 0.444 # not optimized yet ret.mass = 3060. * CV.LB_TO_KG + STD_CARGO_KG - set_lat_tune(ret.lateralTuning, LatTunes.TORQUE, MAX_LAT_ACCEL=2.0, FRICTION=0.07) + set_lat_tune(ret.lateralTuning, LatTunes.TORQUE, MAX_LAT_ACCEL=2.5, FRICTION=0.07) elif candidate in (CAR.LEXUS_ES_TSS2, CAR.LEXUS_ESH_TSS2, CAR.LEXUS_ESH): stop_and_go = True diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 65a1555383..6a795d9093 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -70d79fbcc2b9ab0af867a7dff138b58bcaaa3aa8 +70d79fbcc2b9ab0af867a7d6f138b58bcaaa3aa8 diff --git a/selfdrive/test/process_replay/test_processes.py b/selfdrive/test/process_replay/test_processes.py index 855c56d602..d0818ad8f6 100755 --- a/selfdrive/test/process_replay/test_processes.py +++ b/selfdrive/test/process_replay/test_processes.py @@ -32,19 +32,19 @@ original_segments = [ ] segments = [ - # ("BODY", "bd6a637565e91581|2022-04-04--22-05-08--0"), - # ("HYUNDAI", "fakedata|2022-01-20--17-49-04--0"), - # ("TOYOTA", "fakedata|2022-04-29--15-57-12--0"), - # ("TOYOTA2", "fakedata|2022-04-29--16-08-01--0"), + ("BODY", "bd6a637565e91581|2022-04-04--22-05-08--0"), + ("HYUNDAI", "fakedata|2022-01-20--17-49-04--0"), + ("TOYOTA", "fakedata|2022-04-29--15-57-12--0"), + ("TOYOTA2", "fakedata|2022-04-29--16-08-01--0"), ("TOYOTA3", "fakedata|2022-04-29--16-17-39--0"), - # ("HONDA", "fakedata|2022-01-20--17-56-40--0"), - # ("HONDA2", "fakedata|2022-04-29--16-31-55--0"), - # ("CHRYSLER", "fakedata|2022-01-20--18-00-11--0"), - # ("SUBARU", "fakedata|2022-01-20--18-01-57--0"), - # ("GM", "fakedata|2022-01-20--18-03-41--0"), - # ("NISSAN", "fakedata|2022-01-20--18-05-29--0"), - # ("VOLKSWAGEN", "fakedata|2022-01-20--18-07-15--0"), - # ("MAZDA", "fakedata|2022-01-20--18-09-32--0"), + ("HONDA", "fakedata|2022-01-20--17-56-40--0"), + ("HONDA2", "fakedata|2022-04-29--16-31-55--0"), + ("CHRYSLER", "fakedata|2022-01-20--18-00-11--0"), + ("SUBARU", "fakedata|2022-01-20--18-01-57--0"), + ("GM", "fakedata|2022-01-20--18-03-41--0"), + ("NISSAN", "fakedata|2022-01-20--18-05-29--0"), + ("VOLKSWAGEN", "fakedata|2022-01-20--18-07-15--0"), + ("MAZDA", "fakedata|2022-01-20--18-09-32--0"), ] BASE_URL = "https://commadataci.blob.core.windows.net/openpilotci/" @@ -52,7 +52,7 @@ BASE_URL = "https://commadataci.blob.core.windows.net/openpilotci/" # dashcamOnly makes don't need to be tested until a full port is done excluded_interfaces = ["mock", "ford", "mazda", "tesla"] # run the full test (including checks) when no args given -FULL_TEST = False # len(sys.argv) <= 1 or CI +FULL_TEST = len(sys.argv) <= 1 def test_process(cfg, lr, cmp_log_fn, ignore_fields=None, ignore_msgs=None): @@ -134,12 +134,12 @@ if __name__ == "__main__": try: ref_commit = open(os.path.join(PROC_REPLAY_DIR, "ref_commit")).read().strip() except FileNotFoundError: - print("couldn't find reference commit") + print("Couldn't find reference commit") sys.exit(1) cur_commit = get_commit() if cur_commit is None: - raise Exception("couldn't get current commit") + raise Exception("Couldn't get current commit") print(f"***** testing against commit {ref_commit} *****")