Controlling joints with motors