@@ -14,15 +14,15 @@ def create_steer_command(packer, angle_deg: float, curvature: float):
14
14
"LkaDrvOvrrd_D_Rq" : 0 , # driver override level? [0|3]
15
15
"LkaActvStats_D2_Req" : 0 , # action [0|7]
16
16
"LaRefAng_No_Req" : angle_deg , # angle [-102.4|102.3] degrees
17
- "LaRampType_B_Req" : 0 , # ramp type [0|1]
17
+ "LaRampType_B_Req" : 0 , # Ramp speed: 0=Smooth, 1=Quick
18
18
"LaCurvature_No_Calc" : curvature , # curvature [-0.01024|0.01023] 1/meter
19
19
"LdwActvStats_D_Req" : 0 , # LDW status [0|7]
20
- "LdwActvIntns_D_Req" : 0 , # LDW intensity [0|3]
20
+ "LdwActvIntns_D_Req" : 0 , # LDW intensity [0|3], shake alert strength
21
21
}
22
22
return packer .make_can_msg ("Lane_Assist_Data1" , 0 , values )
23
23
24
24
25
- def create_steer2_command (packer , lca_rq : int , ramp_type : int , angle_rad : float , curvature : float ):
25
+ def create_steer2_command (packer , lca_rq : int , angle_rad : float , curvature : float ):
26
26
"""
27
27
Creates a CAN message for the Ford LCA Command.
28
28
@@ -44,8 +44,8 @@ def create_steer2_command(packer, lca_rq: int, ramp_type: int, angle_rad: float,
44
44
"LatCtlRng_L_Max" : 0 , # [0|126] meter
45
45
"HandsOffCnfm_B_Rq" : 0 , # [0|1]
46
46
"LatCtl_D_Rq" : lca_rq , # Mode: 0=None, 1=Continuous [0|7]
47
- "LatCtlRampType_D_Rq" : ramp_type , # Ramp speed: 0=Slow, 1=Medium, 2=Fast, 3=Immediate
48
- "LatCtlPrecision_D_Rq" : 0 , # Precision: 0=Comfortable, 1=Precise [0|3]
47
+ "LatCtlRampType_D_Rq" : 3 , # Ramp speed: 0=Slow, 1=Medium, 2=Fast, 3=Immediate
48
+ "LatCtlPrecision_D_Rq" : 1 , # Precision: 0=Comfortable, 1=Precise [0|3]
49
49
"LatCtlPathOffst_L_Actl" : 0 , # Path offset [-5.12|5.11] meter
50
50
"LatCtlPath_An_Actl" : angle_rad , # Path angle [-0.5|0.5235] radians
51
51
"LatCtlCurv_NoRate_Actl" : 0 , # Curvature rate [-0.001024|0.00102375] 1/meter
0 commit comments