|
|
@ -48,7 +48,7 @@ def create_mqb_acc_buttons_control(packer, bus, buttonStatesToSend, CS, idx): |
|
|
|
} |
|
|
|
} |
|
|
|
return packer.make_can_msg("GRA_ACC_01", bus, values, idx) |
|
|
|
return packer.make_can_msg("GRA_ACC_01", bus, values, idx) |
|
|
|
|
|
|
|
|
|
|
|
def create_mqb_acc_06_control(packer, bus, enabled, acc_status, accel, jerk, acc_stopping, acc_starting, |
|
|
|
def create_mqb_acc_06_control(packer, bus, enabled, acc_status, accel, acc_stopping, acc_starting, |
|
|
|
idx): |
|
|
|
idx): |
|
|
|
values = { |
|
|
|
values = { |
|
|
|
"ACC_Typ": 2, # FIXME: locked to stop and go, need to tweak for cars that only support follow-to-stop |
|
|
|
"ACC_Typ": 2, # FIXME: locked to stop and go, need to tweak for cars that only support follow-to-stop |
|
|
@ -57,8 +57,8 @@ def create_mqb_acc_06_control(packer, bus, enabled, acc_status, accel, jerk, acc |
|
|
|
"ACC_Sollbeschleunigung_02": accel if enabled else 3.01, |
|
|
|
"ACC_Sollbeschleunigung_02": accel if enabled else 3.01, |
|
|
|
"ACC_zul_Regelabw_unten": 0.1 if enabled else 0, # FIXME: need comfort regulation logic here |
|
|
|
"ACC_zul_Regelabw_unten": 0.1 if enabled else 0, # FIXME: need comfort regulation logic here |
|
|
|
"ACC_zul_Regelabw_oben": 0.1 if enabled else 0, # FIXME: need comfort regulation logic here |
|
|
|
"ACC_zul_Regelabw_oben": 0.1 if enabled else 0, # FIXME: need comfort regulation logic here |
|
|
|
"ACC_neg_Sollbeschl_Grad_02": jerk if enabled else 0, |
|
|
|
"ACC_neg_Sollbeschl_Grad_02": 5.0 if enabled else 0, |
|
|
|
"ACC_pos_Sollbeschl_Grad_02": jerk if enabled else 0, |
|
|
|
"ACC_pos_Sollbeschl_Grad_02": 5.0 if enabled else 0, |
|
|
|
"ACC_Anfahren": acc_starting, |
|
|
|
"ACC_Anfahren": acc_starting, |
|
|
|
"ACC_Anhalten": acc_stopping, |
|
|
|
"ACC_Anhalten": acc_stopping, |
|
|
|
} |
|
|
|
} |
|
|
|