Skip to content

Commit 26c6e9a

Browse files
committed
Fix unicycle desired control
1 parent e8dee32 commit 26c6e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/unicycle_backstepping.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Kψ = 3
4545
qd = [0.0, 0.0]
4646
k0norm(x) = normalize(k0(x)) # Convert safe velocity into safe speed
4747
ψ0(x) = atan(k0norm(x)[2], k0norm(x)[1]) # Convert safe velocity into safe heading
48-
kd(x) = [Kp * norm(x[1:2] - qd), -* (sin(x[3]) - sin(ψ0(x[1:2])))]
48+
kd(x) = [Kp * norm(x[1:2] - qd), -* (sin(x[3] - ψ0(x[1:2])))]
4949

5050
# Safety filter for unicycle
5151
k = ExplicitSafetyFilter(cbf, Σ, kd);

0 commit comments

Comments
 (0)