Skip to content

Commit aa1b008

Browse files
committed
fix
1 parent 5b778f2 commit aa1b008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/rcsTools.jl

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

275275
function rcsAllocationSimplex!(y, u, My; maxIter=30)
276276
m, n = size(My) # m = number of dof, n = number of thrusters
277-
if iszero(u); return zeros(n); end
277+
if iszero(u); y .= 0.0; return; end
278278

279279
# # Variable change to have ylb = 0
280280
# off = false;

0 commit comments

Comments
 (0)