@Override public void command (char cmd) { if (cmd == 'q' || cmd == 'Q') { lmotor[0].setParamVel(0); lmotor[0].setParamVel2(0); lmotor[0].setParamVel3(0.1); } else if (cmd == 'a' || cmd == 'A') { lmotor[0].setParamVel(0); lmotor[0].setParamVel2(0); lmotor[0].setParamVel3(0); } else if (cmd == 'z' || cmd == 'Z') { lmotor[0].setParamVel(0); lmotor[0].setParamVel2(0); lmotor[0].setParamVel3(-10.1); } else if (cmd == 'w' || cmd == 'W') { lmotor[1].setParamVel(10.1); lmotor[1].setParamVel2(0); lmotor[1].setParamVel3(0); } else if (cmd == 'e' || cmd == 'E') { lmotor[1].setParamVel(0); lmotor[1].setParamVel2(0); lmotor[1].setParamVel3(0); } else if (cmd == 'r' || cmd == 'R') { lmotor[1].setParamVel(-10.1); lmotor[1].setParamVel2(0); lmotor[1].setParamVel3(0); } }