From 9172e76c15aa20baee4c33f047b805a1414daf1a Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 20 Oct 2022 13:12:36 -0700 Subject: [PATCH 1/3] add brake percent/pressure --- hyundai_canfd.dbc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyundai_canfd.dbc b/hyundai_canfd.dbc index c7b802a04c..b1abbe7705 100644 --- a/hyundai_canfd.dbc +++ b/hyundai_canfd.dbc @@ -84,6 +84,7 @@ BO_ 101 BRAKE: 32 XXX SG_ CHECKSUM : 0|16@1+ (1,0) [0|65535] "" XXX SG_ COUNTER : 16|8@1+ (1,0) [0|255] "" XXX SG_ BRAKE_PRESSED : 57|1@1+ (1,0) [0|3] "" XXX + SG_ BRAKE_PRESSURE : 40|16@1+ (1,0) [0|695] "" XXX BO_ 160 WHEEL_SPEEDS: 24 XXX SG_ CHECKSUM : 0|16@1+ (1,0) [0|65535] "" XXX @@ -540,4 +541,4 @@ VAL_ 304 GEAR 1 "P" 2 "R" 3 "N" 4 "D" ; VAL_ 352 AEB_SETTING 1 "off" 2 "warning only" 3 "active assist" ; VAL_ 416 CRUISE_STATUS 0 "cruise_inactive" 2 "cruise_active" 4 "driver_override" ; VAL_ 426 CRUISE_BUTTONS 0 "none" 1 "res_accel" 2 "set_decel" 3 "gap_distance" 4 "pause_resume" ; -VAL_ 463 CRUISE_BUTTONS 0 "none" 1 "res_accel" 2 "set_decel" 3 "gap_distance" 4 "pause_resume" ; \ No newline at end of file +VAL_ 463 CRUISE_BUTTONS 0 "none" 1 "res_accel" 2 "set_decel" 3 "gap_distance" 4 "pause_resume" ; From 11eaba7923024dee380f8f237c7ed80ad1a02fdb Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 20 Oct 2022 13:52:43 -0700 Subject: [PATCH 2/3] This are actually swapped --- hyundai_canfd.dbc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyundai_canfd.dbc b/hyundai_canfd.dbc index b1abbe7705..5d73219241 100644 --- a/hyundai_canfd.dbc +++ b/hyundai_canfd.dbc @@ -77,14 +77,14 @@ BO_ 96 ESP_STATUS: 32 XXX SG_ CHECKSUM : 0|16@1+ (1,0) [0|65535] "" XXX SG_ COUNTER : 16|8@1+ (1,0) [0|255] "" XXX SG_ ESP_DISABLED : 42|3@1+ (1,0) [0|63] "" XXX - SG_ BRAKE_POSITION : 128|10@1+ (1,0) [0|65535] "" XXX + SG_ BRAKE_PRESSURE : 128|10@1+ (1,0) [0|65535] "" XXX SG_ BRAKE_PRESSED : 148|1@1+ (1,0) [0|3] "" XXX BO_ 101 BRAKE: 32 XXX SG_ CHECKSUM : 0|16@1+ (1,0) [0|65535] "" XXX SG_ COUNTER : 16|8@1+ (1,0) [0|255] "" XXX SG_ BRAKE_PRESSED : 57|1@1+ (1,0) [0|3] "" XXX - SG_ BRAKE_PRESSURE : 40|16@1+ (1,0) [0|695] "" XXX + SG_ BRAKE_POSITION : 40|16@1+ (1,0) [0|695] "" XXX BO_ 160 WHEEL_SPEEDS: 24 XXX SG_ CHECKSUM : 0|16@1+ (1,0) [0|65535] "" XXX From 87760921a2802b9df503f2a036ddfae4f46c3093 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 20 Oct 2022 14:06:41 -0700 Subject: [PATCH 3/3] add comments --- hyundai_canfd.dbc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hyundai_canfd.dbc b/hyundai_canfd.dbc index 5d73219241..5cf5edadb6 100644 --- a/hyundai_canfd.dbc +++ b/hyundai_canfd.dbc @@ -83,8 +83,8 @@ BO_ 96 ESP_STATUS: 32 XXX BO_ 101 BRAKE: 32 XXX SG_ CHECKSUM : 0|16@1+ (1,0) [0|65535] "" XXX SG_ COUNTER : 16|8@1+ (1,0) [0|255] "" XXX + SG_ BRAKE_POSITION : 40|16@1+ (1,0) [0|65535] "" XXX SG_ BRAKE_PRESSED : 57|1@1+ (1,0) [0|3] "" XXX - SG_ BRAKE_POSITION : 40|16@1+ (1,0) [0|695] "" XXX BO_ 160 WHEEL_SPEEDS: 24 XXX SG_ CHECKSUM : 0|16@1+ (1,0) [0|65535] "" XXX @@ -521,14 +521,14 @@ BO_ 485 BLINDSPOTS_FRONT_CORNER_1: 16 XXX SG_ NEW_SIGNAL_8 : 47|8@0+ (1,0) [0|255] "" XXX SG_ NEW_SIGNAL_9 : 55|8@0+ (1,0) [0|255] "" XXX - - - +CM_ SG_ 96 BRAKE_PRESSURE "User applied brake pedal pressure. Ramps from computer applied pressure on falling edge of cruise. Cruise cancels if !=0"; +CM_ SG_ 101 BRAKE_POSITION "User applied brake pedal position, max is ~700"; CM_ SG_ 373 PROBABLY_EQUIP "aeb equip?"; CM_ SG_ 352 SET_ME_9 "has something to do with AEB settings"; CM_ SG_ 961 COUNTER_ALT "only increments on change"; CM_ SG_ 1041 COUNTER_ALT "only increments on change"; CM_ SG_ 1043 COUNTER_ALT "only increments on change"; + VAL_ 53 GEAR 0 "P" 5 "D" 6 "N" 7 "R" ; VAL_ 64 GEAR 0 "P" 5 "D" 6 "N" 7 "R" ; VAL_ 69 GEAR 0 "P" 5 "D" 6 "N" 7 "R" ;