Algorithm 2: Power assistance design user’s posture (v = PS or PL) |
Input variables: , , , v While = PS or PL If ( = L ⋀ = L) ⋁ ( = M ⋀ = L) ⋁ ( = M ⋀ = M), then controller output = forward fast else if ( = L ⋀ = M) ⋁ ( = L ⋀ = S) ⋁ ( = M ⋀ = S), then controller output = reverse (slow or fast) else stay the same While = ZO If = L ⋀ = L, then controller output = forward fast else if = M ⋀ = (L ⋁ M), then controller output = stay the same else reverse (slow or fast) While = NS or NL controller output = reverse slow (v = PS) or reverse fast (v = PL) End |