Skip to content
Snippets Groups Projects
Unverified Commit 9e45792d authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix computation of slew rate cost function for 3D trapezoid

parent 01b8523a
No related branches found
No related tags found
1 merge request!4Resolve "Add secondary objective function"
...@@ -74,7 +74,7 @@ function (::Type{Trapezoid})(; orientation=nothing, rise_time=nothing, flat_time ...@@ -74,7 +74,7 @@ function (::Type{Trapezoid})(; orientation=nothing, rise_time=nothing, flat_time
get_free_variable.(slew_rate), get_free_variable.(slew_rate),
group group
) )
add_cost_function!(-sum(abs(res.slew_rate))) add_cost_function!(-sum(abs.(res.slew_rate)))
else else
res = Trapezoid1D( res = Trapezoid1D(
get_free_variable(rise_time), get_free_variable(rise_time),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment