added interface so robot can be controlled by joystick