Skip to content

Commit 956c88b

Browse files
committed
Fix derivDistance typo
1 parent 45a8512 commit 956c88b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynsys/@DubinsCar/defineCbf.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
d = params.d;
99

1010
distance = (p_x - xo)^2 + (p_y - yo)^2 - d^2;
11-
derivDistance = 2*(p_x-xo)*v*cos(theta) + 2*(p_y-yo)*sin(theta);
11+
derivDistance = 2*(p_x-xo)*v*cos(theta) + 2*(p_y-yo)*v*sin(theta);
1212
cbf = derivDistance + params.cbf_gamma0 * distance;
1313
end

0 commit comments

Comments
 (0)