DEVELOPMENT OF A CONTROL DEVICE AND ALGORITHM FOR AUTONOMOUS-MOVING SYSTEMS