zy上云api


蜂群编队

<h5>1.设置选中单机机号(swarmTeamTask)</h5> <p>1.服务概述 swarmTeamTask是一个用于设置指定选中某一无人机机号,进行控制的服务</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>任务类型</td> </tr> <tr> <td style="text-align: left;">selectedIds</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>选中机号</td> </tr> </tbody> </table> <pre><code> { &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;swarmTeamTask&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;type&amp;quot;: 1, &amp;quot;selectedId&amp;quot;:4 }, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>示例响应</h5> <pre><code>{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;code&amp;quot;:0, // 结果返回码: 0 表示成功, 非0表示失败 &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;, //错误信息(如果失败则返回具体原因) &amp;quot;data&amp;quot;: {}, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>2.设置选中编组组号(swarmTeamTask)</h5> <p>1.服务概述 swarmTeamTask是一个用于设置指定选中某一编组组号,进行控制的服务</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>任务类型</td> </tr> <tr> <td style="text-align: left;">selectedIds</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>选中组号</td> </tr> </tbody> </table> <pre><code> { &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;swarmTeamTask&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;type&amp;quot;: 2, &amp;quot;selectedId&amp;quot;:4 }, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>示例响应</h5> <pre><code>{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;code&amp;quot;:0, // 结果返回码: 0 表示成功, 非0表示失败 &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;, //错误信息(如果失败则返回具体原因) &amp;quot;data&amp;quot;: {}, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>3.设置选中无人机列表进行组队操作(swarmTeamTask)</h5> <p>1.服务概述 swarmTeamTask是一个用于设置选中无人机列表进行组队操作的服务</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>任务类型</td> </tr> <tr> <td style="text-align: left;">teamId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>不传teamid视为新建队伍,gcs内部处理teamid; 若为0 即视为离队, 若 大于0即视为加入到该队伍</td> </tr> <tr> <td style="text-align: left;">uavIds</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string[]</td> <td>组队无人机列表</td> </tr> </tbody> </table> <pre><code> { &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;swarmTeamTask&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;type&amp;quot;: 3,//编队编辑 &amp;quot;teamId&amp;quot;:1,//不传teamid视为新建队伍,gcs内部处理teamid; 若为0 即视为离队, 若 大于0即视为加入到该队伍 &amp;quot;uavIds&amp;quot;:[&amp;quot;1&amp;quot;,&amp;quot;2&amp;quot;,&amp;quot;3&amp;quot;] }, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>示例响应</h5> <pre><code>{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;code&amp;quot;:0, // 结果返回码: 0 表示成功, 非0表示失败 &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;, //错误信息(如果失败则返回具体原因) &amp;quot;data&amp;quot;: {}, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>3.设置编队队形</h5> <p>1.服务概述 swarmTeamTask是一个用于设置选中无人机列表进行组队操作的服务</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>任务类型</td> </tr> <tr> <td style="text-align: left;">teamId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>队伍id</td> </tr> <tr> <td style="text-align: left;">formation</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>0:随机,1:横队,2:列队,3:包围式,4:方形,5:三角形,6:倒V形,7:V形,8:随机</td> </tr> </tbody> </table> <pre><code> { &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;swarmTeamTask&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;type&amp;quot;: 4,//编辑队形 &amp;quot;teamId&amp;quot;:1,//不传teamid视为新建队伍,gcs内部处理teamid; 若为0 即视为离队, 若 大于0即视为加入到该队伍 &amp;quot;formation&amp;quot;:1//0:随机,1:横队,2:列队,3:包围式,4:方形,5:三角形,6:倒V形,7:V形,8:随机 }, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>示例响应</h5> <pre><code>{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;code&amp;quot;:0, // 结果返回码: 0 表示成功, 非0表示失败 &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;, //错误信息(如果失败则返回具体原因) &amp;quot;data&amp;quot;: {}, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>4.设置编队间距</h5> <p>1.服务概述 设置编队间距,gcs默认数值响应到 当前 选中的编队.</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>任务类型</td> </tr> <tr> <td style="text-align: left;">space</td> <td style="text-align: left;">是</td> <td style="text-align: left;">float</td> <td>编队间距</td> </tr> </tbody> </table> <pre><code> { &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;swarmTeamTask&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;type&amp;quot;: 5,//编辑队形 &amp;quot;space&amp;quot;:20.0, }, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre> <h5>示例响应</h5> <pre><code>{ &amp;quot;tid&amp;quot;: &amp;quot;1234567890&amp;quot;, &amp;quot;bid&amp;quot;: &amp;quot;9876543210&amp;quot;, &amp;quot;code&amp;quot;:0, // 结果返回码: 0 表示成功, 非0表示失败 &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;, //错误信息(如果失败则返回具体原因) &amp;quot;data&amp;quot;: {}, &amp;quot;timestamp&amp;quot;: 1700000000000 }</code></pre>

页面列表

ITEM_HTML