示例#1
0
    /**
     * Modifica la velocidad del comando "Movel" y "Movec" en el Scorbot. Límite de 1 a 300.
     * @param robot Scorbot
     * @param value Velocidad
     * @return void
     */
    public void SpeedL(IK robot, int value)
    {
        // Offline mode
        robot.SetSpeedL(value);
        stateMessageControl.WriteMessage("Done. SPEED \"" + robot.GetSpeedL() + "\"", true);

        // Online mode
        if (gameController.GetOnlineMode())
        {
            bool done = controller.RunCommandUIOnline("speedl", value.ToString());
            if (done)
            {
                stateMessageControl.WriteMessage("Done. Online SPEEDL \"" + value.ToString() + "\"", done);
            }
            else
            {
                stateMessageControl.WriteMessage("Error. Online SPEEDL \"" + value.ToString() + "\"", done);
            }
        }
    }
示例#2
0
 public void SpeedLInputEnd(string speed)
 {
     robot.SetSpeedL(int.Parse(speed));
     speedLText.text = speed;
 }