Algorithm 1 Active tracking control |
Require: : EMG vector; : velocity reference; : joint angles. |
1: Calculate and . |
2: Calculate = −. |
3: if then |
4: ; go to 1. |
5: else |
6: |
7: end if |
8: if Motion direction change then |
9: Update and . If the intention is motion 1, , otherwise, . |
10: end if |
11: go to 1. |