Finite state controller for functional electrical stimulation: software implementation | IEEE Conference Publication | IEEE Xplore