diff --git a/generated/acura_ilx_2016_can.dbc b/acura_ilx_2016_can_generated.dbc similarity index 100% rename from generated/acura_ilx_2016_can.dbc rename to acura_ilx_2016_can_generated.dbc diff --git a/generator/generator.py b/generator/generator.py index 55588af85afbe5..81e3b1ce9bab7c 100755 --- a/generator/generator.py +++ b/generator/generator.py @@ -3,7 +3,7 @@ import re cur_path = os.path.dirname(os.path.realpath(__file__)) -generator_path = os.path.join(cur_path, '../generated') +generator_path = os.path.join(cur_path, '../') for dir_name, _, _ in os.walk(cur_path): if dir_name == cur_path: @@ -28,6 +28,8 @@ dbc_file = include_file + dbc_file dbc_file = 'CM_ "AUTOGENERATED FILE, DO NOT EDIT"\n' + dbc_file - output_dbc_file = open(os.path.join(generator_path, filename), 'w') + + output_filename = filename.replace('.dbc', '_generated.dbc') + output_dbc_file = open(os.path.join(generator_path, output_filename), 'w') output_dbc_file.write(dbc_file) output_dbc_file.close() diff --git a/generated/honda_civic_touring_2016_can.dbc b/honda_civic_touring_2016_can_generated.dbc similarity index 100% rename from generated/honda_civic_touring_2016_can.dbc rename to honda_civic_touring_2016_can_generated.dbc diff --git a/generated/honda_crv_touring_2016_can.dbc b/honda_crv_touring_2016_can_generated.dbc similarity index 99% rename from generated/honda_crv_touring_2016_can.dbc rename to honda_crv_touring_2016_can_generated.dbc index b8b574fa77a8df..039d8278c1f03a 100644 --- a/generated/honda_crv_touring_2016_can.dbc +++ b/honda_crv_touring_2016_can_generated.dbc @@ -218,7 +218,7 @@ BO_ 399 STEER_STATUS: 6 EPS SG_ STEER_CONTROL_ACTIVE : 36|1@0+ (1,0) [0|1] "" EON SG_ STEER_STATUS : 35|4@0+ (1,0) [0|15] "" EON SG_ COUNTER : 45|2@0+ (1,0) [0|3] "" EON - SG_ CHECKSUM : 43|4@0+ (1,0) [0|15] "" NE + SG_ CHECKSUM : 43|4@0+ (1,0) [0|15] "" EON BO_ 401 GEARBOX: 8 PCM SG_ GEAR_SHIFTER : 5|6@0+ (1,0) [0|63] "" EON diff --git a/generated/honda_odyssey_exl_2018.dbc b/honda_odyssey_exl_2018_generated.dbc similarity index 100% rename from generated/honda_odyssey_exl_2018.dbc rename to honda_odyssey_exl_2018_generated.dbc diff --git a/generated/toyota_corolla_2017_pt.dbc b/toyota_corolla_2017_pt_generated.dbc similarity index 100% rename from generated/toyota_corolla_2017_pt.dbc rename to toyota_corolla_2017_pt_generated.dbc diff --git a/generated/toyota_prius_2017_pt.dbc b/toyota_prius_2017_pt_generated.dbc similarity index 100% rename from generated/toyota_prius_2017_pt.dbc rename to toyota_prius_2017_pt_generated.dbc diff --git a/generated/toyota_rav4_2017_pt.dbc b/toyota_rav4_2017_pt_generated.dbc similarity index 100% rename from generated/toyota_rav4_2017_pt.dbc rename to toyota_rav4_2017_pt_generated.dbc diff --git a/generated/toyota_rav4_hybrid_2017_pt.dbc b/toyota_rav4_hybrid_2017_pt_generated.dbc similarity index 100% rename from generated/toyota_rav4_hybrid_2017_pt.dbc rename to toyota_rav4_hybrid_2017_pt_generated.dbc