omg we flipped the logic

This commit is contained in:
Jason Wen
2023-11-11 11:53:05 -05:00
parent 294b0ad038
commit 1349fa576e
+1 -1
View File
@@ -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)