Skip to main content
. 2021 Jun 26;21(13):4372. doi: 10.3390/s21134372
Algorithm 1 Active tracking control
Require:  ΓEMG1,...,EMG8: EMG vector; xref˙: velocity reference; θ: joint angles.
 1:  Calculate ||xm|| and ||xref||.
 2:  Calculate e(t) = ||xref||||xm||.
 3:  if e(t)1 then
 4:  U(t)ac=x˙ref×sng; go to 1.
 5:  else
 6:   U(t)ac=0
 7:  end if
 8:  if Motion direction change then
 9:   Update xref and sng. If the intention is motion 1, sng=1, otherwise, sng=1.
  10:  end if
  11:  go to 1.