UNPKG

sensorium

Version:

makeblock mainboards protocol api

1 lines 1.48 MB
{"testsuite":{"$":{"id":"","name":""},"node_order":[""],"details":[""],"testsuite":[{"$":{"id":"47991","name":"Statement block_语句块"},"node_order":["1"],"details":[""],"testsuite":[{"$":{"id":"47992","name":"mbot"},"node_order":["0"],"details":[""],"testsuite":[{"$":{"id":"47993","name":"On-line_在线执行"},"node_order":["0"],"details":["<p>\n\tmblock通过串口连上机器人,在线执行语句块,机器人有相对应的操作</p>\n"],"testsuite":[{"$":{"id":"47994","name":"control_控制语句块"},"node_order":["1"],"details":[""],"testsuite":[{"$":{"id":"47995","name":"Settings motor_001_板载直流电机方向转速"},"node_order":["1"],"details":["<p>\n\t语句块:【前进、后退、左转、右转】转速为【255~-255】</p>\n"],"testcase":[{"$":{"internalid":"47996","name":"Settings motor_001_前进~255"},"node_order":["0"],"externalid":["1"],"version":["1"],"summary":["single-setCmd:`mcore.VirtualJoystick().speed(255,255)`ff 55 07 00 02 05 ff 00 ff 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置为【前进】转速为【255】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人向前移动,速度为255</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48001","name":"Settings motor_002_前进~-100"},"node_order":["1"],"externalid":["2"],"version":["1"],"summary":["single-setCmd:`mcore.VirtualJoystick().speed(-100,-100)`ff 55 07 00 02 05 9c ff 9c ff</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置为【前进】转速为【-100】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人向后移动,速度为100</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48006","name":"Settings motor_003_后退~-255"},"node_order":["2"],"externalid":["3"],"version":["1"],"summary":["single-setCmd:`mcore.VirtualJoystick().speed(-255,-255)`ff 55 07 00 02 05 01 ff 01 ff</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置为【后退】转速为【-255】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人向前移动,速度为255</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48011","name":"Settings motor_004_后退~0"},"node_order":["3"],"externalid":["4"],"version":["1"],"summary":["single-setCmd:`mcore.VirtualJoystick().speed(0,0)`ff 55 07 00 02 05 00 00 00 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置为【后退】转速为【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人停止运动</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48016","name":"Settings motor_005_右转~-100"},"node_order":["4"],"externalid":["5"],"version":["1"],"summary":["single-setCmd:`mcore.VirtualJoystick().speed(-100,-100)`ff 55 07 00 02 05 9c ff 9c ff</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置为【右转】转速为【100】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人向右转动,速度为100</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48021","name":"Settings motor_006_左转~200"},"node_order":["5"],"externalid":["6"],"version":["1"],"summary":["single-setCmd:`mcore.VirtualJoystick().speed(200,200)`ff 55 07 00 02 05 c8 00 c8 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置为【左转】转速为【-50】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人向右移动,速度为50</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48026","name":"Settings motor_006_左转~-50"},"node_order":["6"],"externalid":["7"],"version":["1"],"summary":["single-setCmd:`mcore.VirtualJoystick().speed(-50,-50)`ff 55 07 00 02 05 ce ff ce ff</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置为【左转】转速为【200】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人向左移动,速度为200</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48031","name":"Settings motor_002_板载直流电机"},"node_order":["2"],"details":["<p>\n\t语句块:设置电机【电机接口1、电机接口2】转速为【-255~255】</p>\n"],"testcase":[{"$":{"internalid":"48032","name":"Settings motor_001_电机接口1~255"},"node_order":["1000"],"externalid":["8"],"version":["1"],"summary":["single-setCmd:`mcore.DcMotor(9).speed(255)`ff 55 06 00 02 0a 09 ff 00</p>"],"preconditions":["<p>\n\tmblock已连上机器人</p>\n"],"execution_type":["2"],"importance":["2"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置电机【电机接口1】转速为【255】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人电机接口1的电机正向转动,速度为255</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48037","name":"Settings motor_002_电机接口1~-255"},"node_order":["1001"],"externalid":["9"],"version":["1"],"summary":["single-setCmd:`mcore.DcMotor(9).speed(-255)`ff 55 06 00 02 0a 09 01 ff</p>"],"preconditions":["<p>\n\tmblock已连上机器人</p>\n"],"execution_type":["2"],"importance":["2"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置电机【电机接口1】转速为【-255】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人电机接口1的电机反向转动,速度为-255</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48042","name":"Settings motor_003_电机接口1~0"},"node_order":["1002"],"externalid":["10"],"version":["1"],"summary":["single-setCmd:`mcore.DcMotor(9).speed(0)`ff 55 06 00 02 0a 09 00 00</p>"],"preconditions":["<p>\n\tmblock已连上机器人</p>\n"],"execution_type":["2"],"importance":["2"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置电机【电机接口1】转速为【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人电机接口1的电机停止转动</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48047","name":"Settings motor_004_电机接口2~300"},"node_order":["1003"],"externalid":["11"],"version":["1"],"summary":["single-setCmd:`mcore.DcMotor(10).speed(300)`ff 55 06 00 02 0a 0a ff 00</p>"],"preconditions":["<p>\n\tmblock已连上机器人</p>\n"],"execution_type":["2"],"importance":["2"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置电机【电机接口2】转速为【300】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人电机接口2的电机正向转动,速度为255</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48052","name":"Settings motor_005_电机接口2~-400"},"node_order":["1004"],"externalid":["12"],"version":["1"],"summary":["single-setCmd:`mcore.DcMotor(10).speed(-400)`ff 55 06 00 02 0a 0a 01 ff</p>"],"preconditions":["<p>\n\tmblock已连上机器人</p>\n"],"execution_type":["2"],"importance":["2"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置电机【电机接口2】转速为【-400】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人电机接口2的电机反向转动,速度为-255</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48057","name":"Settings servo_003_设置舵机"},"node_order":["3"],"details":["<p>\n\t语句块:设置舵机【接口1、2、3、4】【插头1、2】角度【0~180】</p>\n"],"testcase":[{"$":{"internalid":"48058","name":"Settings servo_001_接口1~插头1~0"},"node_order":["1"],"externalid":["13"],"version":["1"],"summary":["single-setCmd:`mcore.ServoMotor(1,1).angle(0)`ff 55 06 00 02 0b 01 01 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置舵机【接口6】【插头1】角度【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1插头1的舵机角度转为0度</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48063","name":"Settings servo_002_接口2~插头1~45"},"node_order":["2"],"externalid":["14"],"version":["1"],"summary":["single-setCmd:`mcore.ServoMotor(2,1).angle(45)`ff 55 06 00 02 0b 02 01 2d</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置舵机【接口2】【插头1】角度【45】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2插头1的舵机角度转为45度</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48068","name":"Settings servo_003_接口3~插头2~90"},"node_order":["3"],"externalid":["15"],"version":["1"],"summary":["single-setCmd:`mcore.ServoMotor(3,2).angle(90)`ff 55 06 00 02 0b 03 02 5a</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置舵机【接口3】【插头2】角度【90】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口3插头2的舵机角度转为90度</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48073","name":"Settings servo_004_接口4~插头2~180"},"node_order":["4"],"externalid":["16"],"version":["1"],"summary":["single-setCmd:`mcore.ServoMotor(4,2).angle(180)`ff 55 06 00 02 0b 04 02 b4</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置舵机【接口4】【插头2】角度【180】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4插头2的舵机角度转为180度</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48078","name":"Settings servo_005_接口4~插头1~-20"},"node_order":["5"],"externalid":["17"],"version":["1"],"summary":["single-setCmd:`mcore.ServoMotor(4,1).angle(-20)`ff 55 06 00 02 0b 04 01 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t将语句块设置舵机【接口4】【插头2】角度【-20】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4插头2的舵机角度转为0度</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48083","name":"Settings boardLED_04_设置板载LED"},"node_order":["4"],"details":["<p>\n\t语句块:设置板载LED【全部、左、右】红色【0~255】绿色【0~255】蓝色【0~255】,PS:RPG的数值为亮度</p>\n<p>\n\tLED数值亮度规则0-255(低-高)256-560(低-高)以此类推</p>\n<p>\n\t负值(-0~-255)(高-低)</p>\n"],"testcase":[{"$":{"internalid":"48084","name":"Settings boardLED_001_左灯亮红色"},"node_order":["1"],"externalid":["18"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置板载LED【左】红色【255】绿色【0】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人的板载左LED灯亮红色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48089","name":"Settings boardLED_002_左灯亮绿色"},"node_order":["2"],"externalid":["19"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置板载LED【左】红色【0】绿色【80】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人的板载左边LED灯亮绿色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48094","name":"Settings boardLED_003_右灯亮蓝色"},"node_order":["3"],"externalid":["20"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置板载LED【右】红色【0】绿色【0】蓝色【100】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人的板载右边LED灯亮蓝色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48099","name":"Settings boardLED_004_全部灯亮白色"},"node_order":["4"],"externalid":["21"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置板载LED【全部】红色【255】绿色【255】蓝色【255】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人的板载全部LED灯亮白色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48104","name":"Settings boardLED_005_全部灯亮熄灭"},"node_order":["5"],"externalid":["22"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置板载LED【全部】红色【0】绿色【0】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人的板载全部LED灯熄灭</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48109","name":"Settings LED_005_控制LED"},"node_order":["5"],"details":["<p>\n\t语句块:设置LED【接口1、2、3、4】【全部、1~4】红色【0~255】绿色【0~255】蓝色【0~255】</p>\n<p>\n\tLED数值亮度规则0-255(低-高)256-560(低-高)以此类推</p>\n<p>\n\t负值(-0~-255)(高-低)</p>\n"],"testcase":[{"$":{"internalid":"48110","name":"Settings LED_001_接口1 1号灯亮红色"},"node_order":["1"],"externalid":["23"],"version":["1"],"summary":["single-setCmd:`mcore.FourLeds(1).position(1).red()`ff 55 09 00 02 08 01 02 01 ff 00 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置LED【接口1】【1】红色【20】绿色【0】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1的第1个LED灯亮红色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48115","name":"Settings LED_002_接口2 2号灯亮绿色"},"node_order":["2"],"externalid":["24"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置LED【接口2】【2】红色【0】绿色【60】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2的第2个LED灯亮绿色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48120","name":"Settings LED_003_接口3 3号灯亮蓝色"},"node_order":["3"],"externalid":["25"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置LED【接口3】【3】红色【0】绿色【0】蓝色【90】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口3的第3个LED灯亮蓝色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48125","name":"Settings LED_004_接口4 4号灯亮粉色"},"node_order":["4"],"externalid":["26"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置LED【接口4】【4】红色【90】绿色【0】蓝色【90】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4的第4个LED灯亮粉色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48130","name":"Settings LED_005_接口1 全部灯亮白色"},"node_order":["5"],"externalid":["27"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置LED【接口1】【全部】红色【255】绿色【255】蓝色【255】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1的全部LED灯亮白色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48135","name":"Settings LED_006_接口1 全部灯熄灭"},"node_order":["6"],"externalid":["28"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置LED【接口1】【全部】红色【0】绿色【0】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1的全部LED灯熄灭</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48140","name":"Settings led strip_006_控制灯带"},"node_order":["6"],"details":["<p>\n\t语句块:设置灯带【接口1、2、3、4】【插头1、2】【全部、1~&infin;】红色【0~255】绿色【0~255】蓝色【0~255】</p>\n<p>\n\t灯的号码从连接接口的第一个开始算起</p>\n<p>\n\tLED数值亮度规则0-255(低-高)256-560(低-高)以此类推</p>\n<p>\n\t负值(-0~-255)(高-低)</p>\n"],"testcase":[{"$":{"internalid":"48141","name":"Settings led strip_001_接口1 插头1 第1个灯亮红色"},"node_order":["1"],"externalid":["29"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置灯带【接口1】【插头1】【1】红色【20】绿色【0】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1,插头1的灯带,第一个LED灯显示颜色为红色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48146","name":"Settings led strip_002_接口2 插头2 第2个灯亮绿色"},"node_order":["2"],"externalid":["30"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置灯带【接口2】【插头2】【2】红色【0】绿色【60】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2,插头2的灯带,第二个LED灯显示颜色为绿色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48151","name":"Settings led strip_003_接口3 插头2 第3个灯亮蓝灯"},"node_order":["3"],"externalid":["31"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置灯带【接口3】【插头2】【3】红色【0】绿色【0】蓝色【90】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口3,插头2的灯带,第三个LED灯显示颜色为蓝色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48156","name":"Settings led strip_004_接口4 插头2 第4个灯亮粉色"},"node_order":["4"],"externalid":["32"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置灯带【接口4】【插头2】【4】红色【20】绿色【0】蓝色【20】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4,插头2的灯带,第四个LED灯显示颜色为粉色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48161","name":"Settings led strip_005_接口1 插头1 全部灯亮白色"},"node_order":["5"],"externalid":["33"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置灯带【接口1】【插头1】【全部】红色【255】绿色【255】蓝色【255】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1,插头1的灯带,全部LED灯显示颜色为白色</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48166","name":"Settings led strip_006_接口1 插头1 全部灯熄灭"},"node_order":["6"],"externalid":["34"],"version":["1"],"summary":["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>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置灯带【接口1】【插头1】【全部】红色【0】绿色【0】蓝色【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1,插头1的灯带,全部LED灯熄灭</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48171","name":"Settings Buzzer_007_播放音调"},"node_order":["7"],"details":["<p>\n\t语句块:播放音调为【A2~G7、C8、D8】,节拍为【二分之一、四分之一、八分之一、双拍、整拍】整拍声音最长,八分之一最短,</p>\n"],"testcase":[{"$":{"internalid":"48172","name":"Settings Buzzer_001_A2~整拍"},"node_order":["0"],"externalid":["35"],"version":["1"],"summary":["single-setCmd:`mcore.Buzzer().tone('A2').beat(1000)`ff 55 07 00 02 22 6e 00 e8 03</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置播放音调为【A2】,节拍为【整拍】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人板载蜂鸣器发出对应的声音</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48177","name":"Settings Buzzer_002_C4~双拍"},"node_order":["2"],"externalid":["36"],"version":["1"],"summary":["single-setCmd:`mcore.Buzzer().tone('C4').beat(2000)`ff 55 07 00 02 22 06 01 d0 07</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置播放音调为【C4】,节拍为【双拍】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人板载蜂鸣器发出对应的声音</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48182","name":"Settings Buzzer_003_E6~八分之一"},"node_order":["3"],"externalid":["37"],"version":["1"],"summary":["single-setCmd:`mcore.Buzzer().tone('E6').beat(125)`ff 55 07 00 02 22 27 05 7d 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t设置播放音调为【E6】,节拍为【八分之一】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人板载蜂鸣器发出对应的声音</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48187","name":"Settings Buzzer_004_G4~四分之一"},"node_order":["4"],"externalid":["38"],"version":["1"],"summary":["single-setCmd:`mcore.Buzzer().tone('G4').beat(250)`ff 55 07 00 02 22 88 01 fa 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t播放音调为【G4】,节拍为【四分之一】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人板载蜂鸣器发出对应的声音</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48192","name":"Settings Buzzer_005_F2~二分之一"},"node_order":["5"],"externalid":["39"],"version":["1"],"summary":["single-setCmd:`mcore.Buzzer().tone('F2').beat(500)`ff 55 07 00 02 22 57 00 f4 01</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t播放音调为【F2】,节拍为【二分之一】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人板载蜂鸣器发出对应的声音</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48197","name":"Settings panel_008_表情面板_数字"},"node_order":["8"],"details":["<p>\n\t语句块:设置面板【接口1、2、3、4】显示数字:【-999~9999(小数点占一个数字)】</p>\n"],"testcase":[{"$":{"internalid":"48198","name":"Settings panel_001_接口1~0"},"node_order":["1"],"externalid":["40"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(1).numberMode().number(0)`ff 55 09 00 02 29 01 04 00 00 00 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口1】显示数字:【0】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1的面板显示数字0</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48203","name":"Settings panel_002_接口2~-998"},"node_order":["2"],"externalid":["41"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(2).numberMode().number(-998)`ff 55 09 00 02 29 02 04 00 80 79 c4</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口2】显示数字:【-998】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2的面板显示数字-998</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48208","name":"Settings panel_003_接口3~10000"},"node_order":["3"],"externalid":["42"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(3).numberMode().number(10000)`ff 55 09 00 02 29 03 04 00 40 1c 46</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口3】显示数字:【10000】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口3的面板显示数字9999</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48213","name":"Settings panel_004_接口4~-99999"},"node_order":["4"],"externalid":["43"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(4).numberMode().number(-99999)`ff 55 09 00 02 29 04 04 80 4f c3 c7</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口4】显示数字:【-99999】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4的面板显示数字-999</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48218","name":"Settings panel_005_接口4~3.5845"},"node_order":["5"],"externalid":["44"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(4).numberMode().number(12.25)`ff 55 09 00 02 29 04 04 00 00 44 41</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口4】显示数字:【3.5845】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4的面板显示数字3.58</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48223","name":"Settings panel_009_表情面板_时间"},"node_order":["9"],"details":["<p>\n\t语句块:设置面板【接口1、2、3、4】显示时间:【10】时【:】【20】</p>\n"],"testcase":[{"$":{"internalid":"48224","name":"Settings panel_001_接口1 时间10:20"},"node_order":["1"],"externalid":["45"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(1).timeMode(10).hour(10).minute(20)`ff 55 08 00 02 29 01 03 01 0a 14</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口1】显示时间:【10】时【:】【20】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1面板上显示10:20</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48229","name":"Settings panel_002_接口2 时间12 600"},"node_order":["2"],"externalid":["46"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(2).timeMode().hour(12).separator(' ').minute(600)`ff 55 08 00 02 29 02 03 00 0c 3b</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口2】显示时间【12】时【 】【600】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2面板上显示12 60(设置大于100的数值,会出现异常)</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48234","name":"Settings panel_010_表情面板_文字"},"node_order":["10"],"details":["<p>\n\t语句块:设置面板【接口1、2、3、4】x:【0】y:【0】显示文字:【Hi(不包括中文)】</p>\n"],"testcase":[{"$":{"internalid":"48235","name":"Settings panel_001_接口1 x:0 y:0 Hi"},"node_order":["1"],"externalid":["47"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(1).charMode().x(0).y(0).char('Hi')`ff 55 0a 00 02 29 01 01 00 07 02 48 69</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口1】x:【0】y:【0】显示文字:【hi】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1的面板显示hi</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48240","name":"Settings panel_002_接口2 x:1 y:1 hello word"},"node_order":["2"],"externalid":["48"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(2).charMode().x(1).y(1).char('hello word')`ff 55 0c 00 02 29 02 01 01 08 04 68 65 6c 6c</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口2】x:【1】y:【1】显示文字:【hello world】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2的面板显示hel(因为文字过长,所以显示不全,面板矩阵为16*8)</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48245","name":"Settings panel_003_接口3 x:2 y:2 文字:[23]"},"node_order":["3"],"externalid":["49"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(3).charMode().x(2).y(2).char('23')`ff 55 0a 00 02 29 03 01 02 09 02 32 33</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口3】x:【2】y:【2】显示文字:【23】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口3的面板X轴2,Y轴2,显示文字23(与面板显示的数字样子不同)</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48250","name":"Settings panel_004_接口4 x:-2 y:-2 文字:[你好]"},"node_order":["4"],"externalid":["50"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(4).charMode().x(-2).y(-2).char('你好')`ff 55 0e 00 02 29 04 01 fe 05 02 e4 bd a0 e5 a5 bd</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口4】x:【-2】y:【-2】显示文字:【你好】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4的面板X轴-2,Y轴-2,全部灯熄灭(中文与非法字符不显示)</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48255","name":"Settings panel_011_表情面板_绘画"},"node_order":["11"],"details":["<p>\n\t语句块:设置面板【接口1、2、3、4】x:【0】y:【0】绘画:【 &nbsp;】</p>\n<p>\n\t点击绘画的右边的空白,会弹出8*16的表情面板</p>\n<p>\n\t设置X和Y数值,X为整体左右移动,Y为整体上下移动</p>\n"],"testsuite":[{"$":{"id":"48256","name":"Settings panel_001_面板管理器"},"node_order":["0"],"details":[""]}],"testcase":[{"$":{"internalid":"48257","name":"Settings panel_001_接口1 x:0 y:0 笑脸"},"node_order":["1"],"externalid":["51"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(1).emotionMode().x(0).y(0).emotion('00000000000000000001000000100000010000000010000000010010000000100000001000010010001000000100000000100000000100000000000000000000')`ff 55 17 00 02 29 01 02 00 00 00 00 10 20 40 20 12 02 02 12 20 40 20 10 00 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口1】x:【0】y:【0】绘画:【笑脸】(进入表情面板后点击左下角的笑脸,面板上亮起笑脸,点击完成)</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1面板上x:0,y:0显示笑脸</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48267","name":"Settings panel_003_接口3 x:0 y:2 【全部点亮】"},"node_order":["2"],"externalid":["53"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(3).emotionMode().x(0).y(2).emotion('11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111')`ff 55 17 00 02 29 03 02 00 02 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口3】x:【-2】y:【-2】绘画:【笑脸】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口3面板上x:-2(整体向左移动两格),y:-2(整体向上移动两格)显示笑脸</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48262","name":"Settings panel_002_接口2 x:1 y:0 【最大矩形】"},"node_order":["3"],"externalid":["52"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(2).emotionMode().x(1).y(0).emotion('11111111100000011000000110000001100000011000000110000001100000011000000110000001100000011000000110000001100000011000000111111111')`ff 55 17 00 02 29 02 02 01 00 ff 81 81 81 81 81 81 81 81 81 81 81 81 81 81 ff</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口2】x:【1】y:【1】绘画:【笑脸】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2面板上x:1(整体向右移动一格),y:1(整体向下移动一格)显示笑脸</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48272","name":"Settings panel_004_接口4 x:2 y:-1 【全部熄灭】"},"node_order":["4"],"externalid":["54"],"version":["1"],"summary":["single-setCmd:`mcore.LedMatrix(4).emotionMode().x(2).y(-1).emotion('00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000')`ff 55 17 00 02 29 04 02 02 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t执行设置面板【接口4】x:【0】y:【0】绘画:【 &nbsp;】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口4面板上全部灯熄灭</p>\n"],"execution_type":["1"]}]}]}]},{"$":{"id":"48277","name":"Settings Digital_012_设置数码管"},"node_order":["12"],"details":["<p>\n\t语句块:设置数码管【接口1、2、3、4】数字【100(可输入-999~9999的数值)】</p>\n"],"testcase":[{"$":{"internalid":"48278","name":"Settings Digital_001_接口1~-100"},"node_order":["1"],"externalid":["55"],"version":["1"],"summary":["single-setCmd:`mcore.SevenSegment(1).number(-100)`ff 55 08 00 02 09 01 00 00 c8 c2</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t运行设置数码管【接口1】数字【-100】</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口1的数码管显示-100</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48283","name":"Settings Digital_002_接口2~0"},"node_order":["2"],"externalid":["56"],"version":["1"],"summary":["single-setCmd:`mcore.SevenSegment(2).number(0)`ff 55 08 00 02 09 02 00 00 00 00</p>"],"preconditions":["<p>\n\t机器人已连接mblock</p>\n"],"execution_type":["2"],"importance":["3"],"estimated_exec_duration":[""],"status":["1"],"is_open":["1"],"active":["1"],"steps":[{"step":[{"step_number":["1"],"actions":["<p>\n\t拖动对应语句块到编辑区</p>\n"],"expectedresults":["<p>\n\t成功移动</p>\n"],"execution_type":["1"]},{"step_number":["2"],"actions":["<p>\n\t运行设置数码管【接口2】数字【0】 &nbsp;&nbsp;</p>\n"],"expectedresults":["<p>\n\t成功设置</p>\n"],"execution_type":["1"]},{"step_number":["3"],"actions":["<p>\n\t单击执行语句块,查看机器人</p>\n"],"expectedresults":["<p>\n\t机器人接口2的数码管显示0.000</p>\n"],"execution_type":["1"]}]}]},{"$":{"internalid":"48288","name":"Settings Digital_003_接口3~3.1415"},"node_order":["3"],"externalid":["57"],"version":["1"],"summary":["single-setCmd:`mcore.SevenSegment(3).number(3.1415)`ff 55 08 00 02 09 03 56 0e 49 40</p>"],"preconditions