Skip to content

Commit cb03101

Browse files
committed
Update arm_2d_helper.c
1 parent 00074c2 commit cb03101

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Helper/Source/arm_2d_helper.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,10 @@ bool arm_2d_helper_pi_slider( arm_2d_helper_pi_slider_t *ptThis,
444444
this.fOP += fProp * this.tCFG.fIntegration;
445445
this.iCurrent += (int32_t)(fProp + this.fOP);
446446
float fStableCheck = ABS(fProp) + ABS(this.fOP);
447-
if ( fStableCheck < 0.1f && ABS(nError) < 2 ) {
447+
if ( fStableCheck < 0.1f ) {
448448
/* has reached the final value */
449-
this.iCurrent = nTargetPosition; /* correct the residual error */
450-
this.fOP = 0.0f;
449+
//this.iCurrent = nTargetPosition; /* correct the residual error */
450+
//this.fOP = 0.0f;
451451
bResult = true;
452452
}
453453
}

0 commit comments

Comments
 (0)