<?xml version="1.0" encoding="UTF-8"?>
<testsuite id="54598" name="mCore" >
<node_order><![CDATA[1]]></node_order>
<details><![CDATA[]]></details> 
<testsuite id="54599" name="运动语句" >
<node_order><![CDATA[1]]></node_order>
<details><![CDATA[]]></details> 

<testcase internalid="54600" name="运动向前速度100">
	<node_order><![CDATA[1000]]></node_order>
	<externalid><![CDATA[15]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.VirtualJoystick().speed(100,100)`ff 55 07 00 02 05 64 00 64 00</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正确连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
<p>
	当按钮按下，运动向前速度100</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	机器以100的速度向前移动，直至松开按钮</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54604" name="运动向后速度255">
	<node_order><![CDATA[1001]]></node_order>
	<externalid><![CDATA[16]]></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>
	设备正确连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下时，运动向后速度255</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备以速度255后退</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54608" name="左转速度256">
	<node_order><![CDATA[1002]]></node_order>
	<externalid><![CDATA[17]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.VirtualJoystick().speed(0,256)`ff 55 07 00 02 05 00 00 ff 00</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，左转速度为256</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备以255最大速度速度左转</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54612" name="右转速度100">
	<node_order><![CDATA[1003]]></node_order>
	<externalid><![CDATA[18]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.VirtualJoystick().speed(100,0)`ff 55 07 00 02 05 64 00 00 00</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，右转速度为100</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备以10速度右转</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54616" name="运动向前速度0">
	<node_order><![CDATA[1005]]></node_order>
	<externalid><![CDATA[20]]></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>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，运动向前速度为0</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备不动</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54620" name="运动向前速度-256">
	<node_order><![CDATA[1007]]></node_order>
	<externalid><![CDATA[23]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.VirtualJoystick().speed(-256,-256)`ff 55 07 00 02 05 01 ff 01 ff</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></execution_type>
	<importance><![CDATA[1]]></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>
	编程：当按钮按下，运动向前速度为-256</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备以255速度后退</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54624" name="停止运动">
	<node_order><![CDATA[1020]]></node_order>
	<externalid><![CDATA[36]]></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>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，运动向前速度为100；</p>
<p>
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;当按钮松开，停止运动</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮，两秒后松开</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	按下后设备前进；松开后设备停止</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54628" name="运动向前速度-255">
	<node_order><![CDATA[1021]]></node_order>
	<externalid><![CDATA[145]]></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>
	设备正确连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></execution_type>
	<importance><![CDATA[1]]></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>
	编程：当按钮按下，运动向前速度-256</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备以速度255后退</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>
</testsuite><testsuite id="54632" name="直流电机" >
<node_order><![CDATA[2]]></node_order>
<details><![CDATA[]]></details> 

<testcase internalid="54633" name="设置直流电机M1在速度取值正常范围以内，即【100,255，150,0,-100，-255,-150】">
	<node_order><![CDATA[1000]]></node_order>
	<externalid><![CDATA[37]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	loop-setCmd:`100,255,150,0,-100,-255,-150`mcore.DcMotor(9).speed(arg)`ff 55 06 00 02 0a 09 64 00,ff 55 06 00 02 0a 09 ff 00,ff 55 06 00 02 0a 09 96 00,ff 55 06 00 02 0a 09 00 00,ff 55 06 00 02 0a 09 9c ff,ff 55 06 00 02 0a 09 01 ff,ff 55 06 00 02 0a 09 6a ff</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按下按钮，设置直流电机M1速度为100</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	直流电机M1以速度100转动</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54637" name="设置直流电机M2速度255">
	<node_order><![CDATA[1006]]></node_order>
	<externalid><![CDATA[43]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.DcMotor(10).speed(255)`ff 55 06 00 02 0a 0a ff 00</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，设置直流电机M2速度255</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备直流M1以最大速度转动</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54641" name="设置直流电机M2速度-256">
	<node_order><![CDATA[1008]]></node_order>
	<externalid><![CDATA[45]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.DcMotor(10).speed(-256)`ff 55 06 00 02 0a 0a 01 ff</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></execution_type>
	<importance><![CDATA[1]]></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>
	编程：当按钮按下，设置直流电机M2速度为-256</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	设备直流M2以最大速度转动</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>
</testsuite><testsuite id="54645" name="舵机" >
<node_order><![CDATA[3]]></node_order>
<details><![CDATA[]]></details> 

<testcase internalid="54646" name="设置舵机【端口1】插槽【1】角度【90】">
	<node_order><![CDATA[1000]]></node_order>
	<externalid><![CDATA[47]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.ServoMotor(1,1).angle(90)`ff 55 06 00 02 0b 01 01 5a</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正常连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，设置舵机【端口1】插槽【1】角度【90】</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	舵机旋转至90度的位置</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54650" name="设置舵机【端口1】插槽【2】角度【0】">
	<node_order><![CDATA[1001]]></node_order>
	<externalid><![CDATA[48]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.ServoMotor(1,2).angle(0)`ff 55 06 00 02 0b 01 02 00</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正确连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，设置舵机【端口1】插槽【2】角度【0】</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	舵机旋转至角度0</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54654" name="设置舵机【端口2】插槽【1】角度【180】">
	<node_order><![CDATA[1002]]></node_order>
	<externalid><![CDATA[49]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.ServoMotor(2,1).angle(180)`ff 55 06 00 02 0b 02 01 b4</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正确连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></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>
	编程：当按钮按下，设置舵机【端口2】插槽【1】角度【180】</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	舵机旋转至角度180</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54658" name="设置舵机【端口3】插槽【2】角度【181】">
	<node_order><![CDATA[1003]]></node_order>
	<externalid><![CDATA[50]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.ServoMotor(3,2).angle(181)`ff 55 06 00 02 0b 03 02 b4</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正确连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></execution_type>
	<importance><![CDATA[1]]></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>
	编程：当按钮按下，设置舵机【端口3】插槽【2】角度【181】</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	舵机旋转至角度180</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>

<testcase internalid="54662" name="设置舵机【端口4】插槽【1】角度【-1】">
	<node_order><![CDATA[1004]]></node_order>
	<externalid><![CDATA[51]]></externalid>
	<version><![CDATA[1]]></version>
	<summary><![CDATA[<p>
	single-setCmd:`mcore.ServoMotor(4,1).angle(-1)`ff 55 06 00 02 0b 04 01 00</p>
]]></summary>
	<preconditions><![CDATA[<p>
	设备正确连接可运行，蓝牙通信正常</p>
]]></preconditions>
	<execution_type><![CDATA[1]]></execution_type>
	<importance><![CDATA[1]]></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>
	编程：当按钮按下，设置舵机【端口4】插槽【1】角度【-1】</p>
]]></actions>
	<expectedresults><![CDATA[]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>

<step>
	<step_number><![CDATA[2]]></step_number>
	<actions><![CDATA[<p>
	切换至运行页面，按下按钮</p>
]]></actions>
	<expectedresults><![CDATA[<p>
	舵机旋转至角度0</p>
]]></expectedresults>
	<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>
</testsuite></testsuite>