Skip to main content
. 2021 Mar 29;21(7):2371. doi: 10.3390/s21072371
Algorithm 2: Power assistance design user’s posture (v = PS or PL)
Input variables: Sg, ff, fd, v
While Sg = PS or PL
 If (ff = L ⋀ fd = L) ⋁ (ff = M ⋀ fd = L) ⋁ (ff = M ⋀ fd = M), then
  controller output = forward fast
 else if (ff = L ⋀ fd = M) ⋁ (ff = L ⋀ fd = S) ⋁ (ff = M ⋀ fd = S), then
controller output = reverse (slow or fast)
 else stay the same
While Sg = ZO
 If ff = L ⋀ fd = L, then
  controller output = forward fast
 else if ff = M ⋀ fd = (L ⋁ M), then
controller output = stay the same
 else reverse (slow or fast)
While Sg = NS or NL
  controller output = reverse slow (v = PS) or reverse fast (v = PL)
End