Skip to content

Commit f2b89c9

Browse files
authored
Merge pull request #5 from comrob/fix-speedparse
fixed mistake with infinity speed
2 parents 3909638 + 58beb32 commit f2b89c9

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)