Skip to content

Commit 5169c8d

Browse files
committed
Update algo in Sot
1 parent be17de8 commit 5169c8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sot/sot.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,13 @@ computeControlLaw( dynamicgraph::Vector& control,const int& iterTime )
606606
}
607607
/***/sotCOUNTER(6,7); // TRACE
608608

609+
if (rankJ == 0) break;
609610

610611
/* --- COMPUTE QDOT AND P --- */
611612
/*DEBUG: normally, the first iter (ie the test below)
612613
* is the same than the other, starting with control_0 = q0SIN. */
613614
if( iterTask==0 ) control.noalias() += Jp*err;
614-
else control += Jp*(err - JK*control);
615+
else control += Proj * (Jp*(err - JK*control));
615616
/***/sotCOUNTER(7,8); // QDOT
616617

617618
/* --- OPTIMAL FORM: To debug. --- */

0 commit comments

Comments
 (0)