mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-24 07:42:05 +08:00
omg we flipped the logic
This commit is contained in:
@@ -125,7 +125,7 @@ class LateralPlanner:
|
||||
self.path_xyz[:, 1] += self.LP.path_offset
|
||||
self.dynamic_lane_profile_status = True
|
||||
|
||||
if self.dynamic_lane_profile_status:
|
||||
if not self.dynamic_lane_profile_status:
|
||||
self.lat_mpc.set_weights(PATH_COST, LATERAL_MOTION_COST,
|
||||
LATERAL_ACCEL_COST, LATERAL_JERK_COST,
|
||||
STEERING_RATE_COST)
|
||||
|
||||
Reference in New Issue
Block a user