Skip to content

Commit

Permalink
Fix unicycle desired control
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhcohen committed Sep 12, 2024
1 parent e8dee32 commit 26c6e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/unicycle_backstepping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Kψ = 3
qd = [0.0, 0.0]
k0norm(x) = normalize(k0(x)) # Convert safe velocity into safe speed
ψ0(x) = atan(k0norm(x)[2], k0norm(x)[1]) # Convert safe velocity into safe heading
kd(x) = [Kp * norm(x[1:2] - qd), -* (sin(x[3]) - sin(ψ0(x[1:2])))]
kd(x) = [Kp * norm(x[1:2] - qd), -* (sin(x[3] - ψ0(x[1:2])))]

# Safety filter for unicycle
k = ExplicitSafetyFilter(cbf, Σ, kd);
Expand Down

0 comments on commit 26c6e9a

Please sign in to comment.