Decentralized motor control