Skip to content

Commit 6f394ab

Browse files
haraschaxrjsmith1999
authored andcommitted
New model: better laneless (commaai#24605)
* Fix ping pong * Fix hugging: e6fd3a62-aa86-46d1-a414-19137ed1babc/800 * Remove lateral toggle * a6da6265-1952-48dd-986b-2b5996dd2642/950 * Model replay commit * Revert "Remove lateral toggle" This reverts commit 69e57eb.
1 parent d95a6a9 commit 6f394ab

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

models/supercombo.dlc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:ba3fe3e61853cc1434e3e220f40c8e9d1f1b9bab8458196ba3bea6a10b82c6ed
3-
size 72718099
2+
oid sha256:027cbb1fabae369878271cb0e3505071a8bdaa07473fad9a0b2e8d695c5dc1ff
3+
size 76725611

models/supercombo.onnx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:bda57c1a66944f5a633ecd739a24d62702c717a234f2fdcc499dfa1d61c3c19e
3-
size 73147489
2+
oid sha256:484976ea5bd4ddcabc82e95faf30d7311a27802c1e337472558699fa2395a499
3+
size 77472267

selfdrive/controls/lib/lateral_planner.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ def update(self, sm):
6262
self.lat_mpc.set_weights(MPC_COST_LAT.PATH, MPC_COST_LAT.HEADING, self.steer_rate_cost)
6363
else:
6464
d_path_xyz = self.path_xyz
65-
path_cost = np.clip(abs(self.path_xyz[0, 1] / self.path_xyz_stds[0, 1]), 0.5, 1.5) * MPC_COST_LAT.PATH
6665
# Heading cost is useful at low speed, otherwise end of plan can be off-heading
67-
heading_cost = interp(v_ego, [5.0, 10.0], [MPC_COST_LAT.HEADING, 0.0])
68-
self.lat_mpc.set_weights(path_cost, heading_cost, self.steer_rate_cost)
66+
heading_cost = interp(v_ego, [5.0, 10.0], [MPC_COST_LAT.HEADING, 0.15])
67+
self.lat_mpc.set_weights(MPC_COST_LAT.PATH, heading_cost, self.steer_rate_cost)
6968

7069
y_pts = np.interp(v_ego * self.t_idxs[:LAT_MPC_N + 1], np.linalg.norm(d_path_xyz, axis=1), d_path_xyz[:, 1])
7170
heading_pts = np.interp(v_ego * self.t_idxs[:LAT_MPC_N + 1], np.linalg.norm(self.path_xyz, axis=1), self.plan_yaw)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5fb5cd71a6e878cf45593ecea22c93e932f70c31
1+
f74ab97371be93fdc28333e5ea12bbb78c3a32d0

0 commit comments

Comments
 (0)