Update mqbcan.py

This commit is contained in:
马威 2024-11-22 23:08:33 +08:00 committed by GitHub
parent 26581087e5
commit b5e840730d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ def create_steering_control(packer, bus, apply_steer, lkas_enabled):
"HCA_01_Sendestatus": 1 if lkas_enabled else 0,
"EA_ACC_Wunschgeschwindigkeit": 327.36,
}
return packer.make_can_msg("HCA_01", bus, values)
return packer.make_can_msg("HCA_01", 0, values)
def create_eps_update(packer, bus, eps_stock_values, ea_simulated_torque):
@ -25,7 +25,7 @@ def create_eps_update(packer, bus, eps_stock_values, ea_simulated_torque):
"EPS_VZ_Lenkmoment": 1 if ea_simulated_torque < 0 else 0,
})
return packer.make_can_msg("LH_EPS_03", bus, values)
return packer.make_can_msg("LH_EPS_03", 0, values)
def create_lka_hud_control(packer, bus, ldw_stock_values, lat_active, steering_pressed, hud_alert, hud_control):
@ -46,7 +46,7 @@ def create_lka_hud_control(packer, bus, ldw_stock_values, lat_active, steering_p
"LDW_Lernmodus_rechts": 3 if hud_control.rightLaneDepart else 1 + hud_control.rightLaneVisible,
"LDW_Texte": hud_alert,
})
return packer.make_can_msg("LDW_02", bus, values)
return packer.make_can_msg("LDW_02", 0, values)
def create_acc_buttons_control(packer, bus, gra_stock_values, cancel=False, resume=False):