UNPKG

sensorium

Version:

makeblock mainboards protocol api

1,953 lines (1,844 loc) 2.18 MB
<?xml version="1.0" encoding="UTF-8"?> <testsuite id="" name="" > <node_order><![CDATA[]]></node_order> <details><![CDATA[]]></details> <testsuite id="47991" name="Statement block_语句块" > <node_order><![CDATA[1]]></node_order> <details><![CDATA[]]></details> <testsuite id="47992" name="mbot" > <node_order><![CDATA[0]]></node_order> <details><![CDATA[]]></details> <testsuite id="47993" name="On-line_在线执行" > <node_order><![CDATA[0]]></node_order> <details><![CDATA[<p> mblock通过串口连上机器人,在线执行语句块,机器人有相对应的操作</p> ]]></details> <testsuite id="47994" name="control_控制语句块" > <node_order><![CDATA[1]]></node_order> <details><![CDATA[]]></details> <testsuite id="47995" name="Settings motor_001_板载直流电机方向转速" > <node_order><![CDATA[1]]></node_order> <details><![CDATA[<p> 语句块:【前进、后退、左转、右转】转速为【255~-255】</p> ]]></details> <testcase internalid="47996" name="Settings motor_001_前进~255"> <node_order><![CDATA[0]]></node_order> <externalid><![CDATA[1]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.VirtualJoystick().speed(255,255)`ff 55 07 00 02 05 ff 00 ff 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置为【前进】转速为【255】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人向前移动,速度为255</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48001" name="Settings motor_002_前进~-100"> <node_order><![CDATA[1]]></node_order> <externalid><![CDATA[2]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.VirtualJoystick().speed(-100,-100)`ff 55 07 00 02 05 9c ff 9c ff</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置为【前进】转速为【-100】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人向后移动,速度为100</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48006" name="Settings motor_003_后退~-255"> <node_order><![CDATA[2]]></node_order> <externalid><![CDATA[3]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.VirtualJoystick().speed(-255,-255)`ff 55 07 00 02 05 01 ff 01 ff</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置为【后退】转速为【-255】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人向前移动,速度为255</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48011" name="Settings motor_004_后退~0"> <node_order><![CDATA[3]]></node_order> <externalid><![CDATA[4]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.VirtualJoystick().speed(0,0)`ff 55 07 00 02 05 00 00 00 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置为【后退】转速为【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人停止运动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48016" name="Settings motor_005_右转~-100"> <node_order><![CDATA[4]]></node_order> <externalid><![CDATA[5]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.VirtualJoystick().speed(-100,-100)`ff 55 07 00 02 05 9c ff 9c ff</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置为【右转】转速为【100】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人向右转动,速度为100</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48021" name="Settings motor_006_左转~200"> <node_order><![CDATA[5]]></node_order> <externalid><![CDATA[6]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.VirtualJoystick().speed(200,200)`ff 55 07 00 02 05 c8 00 c8 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置为【左转】转速为【-50】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人向右移动,速度为50</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48026" name="Settings motor_006_左转~-50"> <node_order><![CDATA[6]]></node_order> <externalid><![CDATA[7]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.VirtualJoystick().speed(-50,-50)`ff 55 07 00 02 05 ce ff ce ff</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置为【左转】转速为【200】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人向左移动,速度为200</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> </testsuite><testsuite id="48031" name="Settings motor_002_板载直流电机" > <node_order><![CDATA[2]]></node_order> <details><![CDATA[<p> 语句块:设置电机【电机接口1、电机接口2】转速为【-255~255】</p> ]]></details> <testcase internalid="48032" name="Settings motor_001_电机接口1~255"> <node_order><![CDATA[1000]]></node_order> <externalid><![CDATA[8]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.DcMotor(9).speed(255)`ff 55 06 00 02 0a 09 ff 00</p> ]]></summary> <preconditions><![CDATA[<p> mblock已连上机器人</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[2]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置电机【电机接口1】转速为【255】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人电机接口1的电机正向转动,速度为255</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48037" name="Settings motor_002_电机接口1~-255"> <node_order><![CDATA[1001]]></node_order> <externalid><![CDATA[9]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.DcMotor(9).speed(-255)`ff 55 06 00 02 0a 09 01 ff</p> ]]></summary> <preconditions><![CDATA[<p> mblock已连上机器人</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[2]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置电机【电机接口1】转速为【-255】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人电机接口1的电机反向转动,速度为-255</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48042" name="Settings motor_003_电机接口1~0"> <node_order><![CDATA[1002]]></node_order> <externalid><![CDATA[10]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.DcMotor(9).speed(0)`ff 55 06 00 02 0a 09 00 00</p> ]]></summary> <preconditions><![CDATA[<p> mblock已连上机器人</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[2]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置电机【电机接口1】转速为【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人电机接口1的电机停止转动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48047" name="Settings motor_004_电机接口2~300"> <node_order><![CDATA[1003]]></node_order> <externalid><![CDATA[11]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.DcMotor(10).speed(300)`ff 55 06 00 02 0a 0a ff 00</p> ]]></summary> <preconditions><![CDATA[<p> mblock已连上机器人</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[2]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置电机【电机接口2】转速为【300】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人电机接口2的电机正向转动,速度为255</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48052" name="Settings motor_005_电机接口2~-400"> <node_order><![CDATA[1004]]></node_order> <externalid><![CDATA[12]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.DcMotor(10).speed(-400)`ff 55 06 00 02 0a 0a 01 ff</p> ]]></summary> <preconditions><![CDATA[<p> mblock已连上机器人</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[2]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置电机【电机接口2】转速为【-400】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人电机接口2的电机反向转动,速度为-255</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> </testsuite><testsuite id="48057" name="Settings servo_003_设置舵机" > <node_order><![CDATA[3]]></node_order> <details><![CDATA[<p> 语句块:设置舵机【接口1、2、3、4】【插头1、2】角度【0~180】</p> ]]></details> <testcase internalid="48058" name="Settings servo_001_接口1~插头1~0"> <node_order><![CDATA[1]]></node_order> <externalid><![CDATA[13]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.ServoMotor(1,1).angle(0)`ff 55 06 00 02 0b 01 01 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置舵机【接口6】【插头1】角度【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口1插头1的舵机角度转为0度</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48063" name="Settings servo_002_接口2~插头1~45"> <node_order><![CDATA[2]]></node_order> <externalid><![CDATA[14]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.ServoMotor(2,1).angle(45)`ff 55 06 00 02 0b 02 01 2d</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置舵机【接口2】【插头1】角度【45】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口2插头1的舵机角度转为45度</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48068" name="Settings servo_003_接口3~插头2~90"> <node_order><![CDATA[3]]></node_order> <externalid><![CDATA[15]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.ServoMotor(3,2).angle(90)`ff 55 06 00 02 0b 03 02 5a</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置舵机【接口3】【插头2】角度【90】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口3插头2的舵机角度转为90度</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48073" name="Settings servo_004_接口4~插头2~180"> <node_order><![CDATA[4]]></node_order> <externalid><![CDATA[16]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.ServoMotor(4,2).angle(180)`ff 55 06 00 02 0b 04 02 b4</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置舵机【接口4】【插头2】角度【180】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口4插头2的舵机角度转为180度</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48078" name="Settings servo_005_接口4~插头1~-20"> <node_order><![CDATA[5]]></node_order> <externalid><![CDATA[17]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.ServoMotor(4,1).angle(-20)`ff 55 06 00 02 0b 04 01 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 将语句块设置舵机【接口4】【插头2】角度【-20】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口4插头2的舵机角度转为0度</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> </testsuite><testsuite id="48083" name="Settings boardLED_04_设置板载LED" > <node_order><![CDATA[4]]></node_order> <details><![CDATA[<p> 语句块:设置板载LED【全部、左、右】红色【0~255】绿色【0~255】蓝色【0~255】,PS:RPG的数值为亮度</p> <p> LED数值亮度规则0-255(低-高)256-560(低-高)以此类推</p> <p> 负值(-0~-255)(高-低)</p> ]]></details> <testcase internalid="48084" name="Settings boardLED_001_左灯亮红色"> <node_order><![CDATA[1]]></node_order> <externalid><![CDATA[18]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLedOnBoard().position(2).r(255).g(0).b(0)`ff 55 09 00 02 08 07 02 02 ff 00 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置板载LED【左】红色【255】绿色【0】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人的板载左LED灯亮红色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48089" name="Settings boardLED_002_左灯亮绿色"> <node_order><![CDATA[2]]></node_order> <externalid><![CDATA[19]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLedOnBoard().position(2).r(0).g(80).b(0)`ff 55 09 00 02 08 07 02 02 00 50 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置板载LED【左】红色【0】绿色【80】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人的板载左边LED灯亮绿色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48094" name="Settings boardLED_003_右灯亮蓝色"> <node_order><![CDATA[3]]></node_order> <externalid><![CDATA[20]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLedOnBoard().position(1).r(0).g(0).b(100)`ff 55 09 00 02 08 07 02 01 00 00 64</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置板载LED【右】红色【0】绿色【0】蓝色【100】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人的板载右边LED灯亮蓝色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48099" name="Settings boardLED_004_全部灯亮白色"> <node_order><![CDATA[4]]></node_order> <externalid><![CDATA[21]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLedOnBoard().position(0).r(255).g(255).b(255)`ff 55 09 00 02 08 07 02 00 ff ff ff</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置板载LED【全部】红色【255】绿色【255】蓝色【255】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人的板载全部LED灯亮白色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48104" name="Settings boardLED_005_全部灯亮熄灭"> <node_order><![CDATA[5]]></node_order> <externalid><![CDATA[22]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLedOnBoard().position(0).r(0).g(0).b(0)`ff 55 09 00 02 08 07 02 00 00 00 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置板载LED【全部】红色【0】绿色【0】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人的板载全部LED灯熄灭</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> </testsuite><testsuite id="48109" name="Settings LED_005_控制LED" > <node_order><![CDATA[5]]></node_order> <details><![CDATA[<p> 语句块:设置LED【接口1、2、3、4】【全部、1~4】红色【0~255】绿色【0~255】蓝色【0~255】</p> <p> LED数值亮度规则0-255(低-高)256-560(低-高)以此类推</p> <p> 负值(-0~-255)(高-低)</p> ]]></details> <testcase internalid="48110" name="Settings LED_001_接口1 1号灯亮红色"> <node_order><![CDATA[1]]></node_order> <externalid><![CDATA[23]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.FourLeds(1).position(1).red()`ff 55 09 00 02 08 01 02 01 ff 00 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置LED【接口1】【1】红色【20】绿色【0】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口1的第1个LED灯亮红色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48115" name="Settings LED_002_接口2 2号灯亮绿色"> <node_order><![CDATA[2]]></node_order> <externalid><![CDATA[24]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.FourLeds(2).position(2).r(0).g(60).b(0)`ff 55 09 00 02 08 02 02 02 00 3c 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置LED【接口2】【2】红色【0】绿色【60】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口2的第2个LED灯亮绿色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48120" name="Settings LED_003_接口3 3号灯亮蓝色"> <node_order><![CDATA[3]]></node_order> <externalid><![CDATA[25]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.FourLeds(3).position(3).r(0).g(0).b(90)`ff 55 09 00 02 08 03 02 03 00 00 5a</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置LED【接口3】【3】红色【0】绿色【0】蓝色【90】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口3的第3个LED灯亮蓝色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48125" name="Settings LED_004_接口4 4号灯亮粉色"> <node_order><![CDATA[4]]></node_order> <externalid><![CDATA[26]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.FourLeds(4).position(4).r(90).g(0).b(90)`ff 55 09 00 02 08 04 02 04 5a 00 5a</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置LED【接口4】【4】红色【90】绿色【0】蓝色【90】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口4的第4个LED灯亮粉色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48130" name="Settings LED_005_接口1 全部灯亮白色"> <node_order><![CDATA[5]]></node_order> <externalid><![CDATA[27]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.FourLeds(1).position(0).r(255).g(255).b(255)`ff 55 09 00 02 08 01 02 00 ff ff ff</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置LED【接口1】【全部】红色【255】绿色【255】蓝色【255】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口1的全部LED灯亮白色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48135" name="Settings LED_006_接口1 全部灯熄灭"> <node_order><![CDATA[6]]></node_order> <externalid><![CDATA[28]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.FourLeds(1).position(0).r(0).g(0).b(0)`ff 55 09 00 02 08 01 02 00 00 00 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置LED【接口1】【全部】红色【0】绿色【0】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口1的全部LED灯熄灭</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> </testsuite><testsuite id="48140" name="Settings led strip_006_控制灯带" > <node_order><![CDATA[6]]></node_order> <details><![CDATA[<p> 语句块:设置灯带【接口1、2、3、4】【插头1、2】【全部、1~&infin;】红色【0~255】绿色【0~255】蓝色【0~255】</p> <p> 灯的号码从连接接口的第一个开始算起</p> <p> LED数值亮度规则0-255(低-高)256-560(低-高)以此类推</p> <p> 负值(-0~-255)(高-低)</p> ]]></details> <testcase internalid="48141" name="Settings led strip_001_接口1 插头1 第1个灯亮红色"> <node_order><![CDATA[1]]></node_order> <externalid><![CDATA[29]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLed(1, 1).position(1).r(20).g(0).b(0)`ff 55 09 00 02 08 01 01 01 14 00 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置灯带【接口1】【插头1】【1】红色【20】绿色【0】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口1,插头1的灯带,第一个LED灯显示颜色为红色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48146" name="Settings led strip_002_接口2 插头2 第2个灯亮绿色"> <node_order><![CDATA[2]]></node_order> <externalid><![CDATA[30]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLed(2, 2).position(2).r(0).g(60).b(0)`ff 55 09 00 02 08 02 02 02 00 3c 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置灯带【接口2】【插头2】【2】红色【0】绿色【60】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口2,插头2的灯带,第二个LED灯显示颜色为绿色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48151" name="Settings led strip_003_接口3 插头2 第3个灯亮蓝灯"> <node_order><![CDATA[3]]></node_order> <externalid><![CDATA[31]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLed(3, 2).position(3).r(0).g(0).b(90)`ff 55 09 00 02 08 03 02 03 00 00 5a</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 执行设置灯带【接口3】【插头2】【3】红色【0】绿色【0】蓝色【90】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口3,插头2的灯带,第三个LED灯显示颜色为蓝色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48156" name="Settings led strip_004_接口4 插头2 第4个灯亮粉色"> <node_order><![CDATA[4]]></node_order> <externalid><![CDATA[32]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLed(4, 2).position(4).r(20).g(0).b(20)`ff 55 09 00 02 08 04 02 04 14 00 14</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 执行设置灯带【接口4】【插头2】【4】红色【20】绿色【0】蓝色【20】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口4,插头2的灯带,第四个LED灯显示颜色为粉色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48161" name="Settings led strip_005_接口1 插头1 全部灯亮白色"> <node_order><![CDATA[5]]></node_order> <externalid><![CDATA[33]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLed(1,1).position(0).r(255).g(255).b(255)`ff 55 09 00 02 08 01 01 00 ff ff ff</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 执行设置灯带【接口1】【插头1】【全部】红色【255】绿色【255】蓝色【255】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口1,插头1的灯带,全部LED灯显示颜色为白色</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48166" name="Settings led strip_006_接口1 插头1 全部灯熄灭"> <node_order><![CDATA[6]]></node_order> <externalid><![CDATA[34]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.RgbLed(1,1).position(0).r(0).g(0).b(0)`ff 55 09 00 02 08 01 01 00 00 00 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 执行设置灯带【接口1】【插头1】【全部】红色【0】绿色【0】蓝色【0】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人接口1,插头1的灯带,全部LED灯熄灭</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> </testsuite><testsuite id="48171" name="Settings Buzzer_007_播放音调" > <node_order><![CDATA[7]]></node_order> <details><![CDATA[<p> 语句块:播放音调为【A2~G7、C8、D8】,节拍为【二分之一、四分之一、八分之一、双拍、整拍】整拍声音最长,八分之一最短,</p> ]]></details> <testcase internalid="48172" name="Settings Buzzer_001_A2~整拍"> <node_order><![CDATA[0]]></node_order> <externalid><![CDATA[35]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.Buzzer().tone(&#39;A2&#39;).beat(1000)`ff 55 07 00 02 22 6e 00 e8 03</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置播放音调为【A2】,节拍为【整拍】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人板载蜂鸣器发出对应的声音</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48177" name="Settings Buzzer_002_C4~双拍"> <node_order><![CDATA[2]]></node_order> <externalid><![CDATA[36]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.Buzzer().tone(&#39;C4&#39;).beat(2000)`ff 55 07 00 02 22 06 01 d0 07</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_duration> <status>1</status> <is_open>1</is_open> <active>1</active> <steps> <step> <step_number><![CDATA[1]]></step_number> <actions><![CDATA[<p> 拖动对应语句块到编辑区</p> ]]></actions> <expectedresults><![CDATA[<p> 成功移动</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[2]]></step_number> <actions><![CDATA[<p> 设置播放音调为【C4】,节拍为【双拍】</p> ]]></actions> <expectedresults><![CDATA[<p> 成功设置</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> <step> <step_number><![CDATA[3]]></step_number> <actions><![CDATA[<p> 单击执行语句块,查看机器人</p> ]]></actions> <expectedresults><![CDATA[<p> 机器人板载蜂鸣器发出对应的声音</p> ]]></expectedresults> <execution_type><![CDATA[1]]></execution_type> </step> </steps> </testcase> <testcase internalid="48182" name="Settings Buzzer_003_E6~八分之一"> <node_order><![CDATA[3]]></node_order> <externalid><![CDATA[37]]></externalid> <version><![CDATA[1]]></version> <summary><![CDATA[<p> single-setCmd:`mcore.Buzzer().tone(&#39;E6&#39;).beat(125)`ff 55 07 00 02 22 27 05 7d 00</p> ]]></summary> <preconditions><![CDATA[<p> 机器人已连接mblock</p> ]]></preconditions> <execution_type><![CDATA[2]]></execution_type> <importance><![CDATA[3]]></importance> <estimated_exec_duration></estimated_exec_durat