Ambulatory computer system for recording and controlling locomotion