Skip to content

Commit 58beb32

Browse files
author
Kristýna Kučerová
committed
fixed mistake with infinity speed
1 parent a01c09b commit 58beb32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AcceleratedDubins.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ end
743743

744744
function speed_profile(path::DubinsPathR2, v_min::Number, v_max::Number, a1::Float64, a2::Float64)
745745
# a1 = a_max, a2 = -a_min
746-
speeds = [speed_by_radius(r) for r in path.r]
746+
speeds = [min(v_max, speed_by_radius(r)) for r in path.r]
747747
lengths = path.lengths
748748

749749
times::Vector{Float64} = []

0 commit comments

Comments
 (0)