Skip to content

Commit d871ed4

Browse files
Correct the time incrementation for control recomputation
This modification allows to avoid a strange stairs shape of the controller.
1 parent dd03d5c commit d871ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ increment( const double & dt )
299299

300300

301301
/* Force the recomputation of the control. */
302-
controlSIN( time+1 );
302+
controlSIN( time );
303303
sotDEBUG(25) << "u" <<time<<" = " << controlSIN.accessCopy() << endl;
304304

305305
/* Integration of numerical values. This function is virtual. */

0 commit comments

Comments
 (0)