Skip to content
Snippets Groups Projects
Commit 6db39413 authored by Armar6's avatar Armar6
Browse files

added deadzone for adaptivekp

parent 08eb457e
No related branches found
No related tags found
No related merge requests found
......@@ -356,7 +356,7 @@ namespace armarx
if (diff > cfg->phaseDist0)
{
isPhaseStop = true;
adaptK = ((float)exp(-fabs(diff - cfg->phaseDist0) * cfg->adaptCoeff)) * adaptK;
adaptK = ((float)exp(-(diff - cfg->phaseDist0) * cfg->adaptCoeff)) * adaptK;
adaptK(2) = kpos(2);
}
......
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