载荷
<h1>载荷信息</h1>
<ul>
<li>载荷挂载的载荷信息,当机载端挂载 载荷会主动推送信息,最多有3个挂载口, 1 、2、3 代表 接口 1、2、3.
当id不为空 代表挂载载荷信息</li>
</ul>
<h2>参数</h2>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">uid</td>
<td style="text-align: left;">string</td>
<td>唯一标识</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>设备名字</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">string</td>
<td>设备id</td>
</tr>
<tr>
<td style="text-align: left;">key</td>
<td style="text-align: left;">string</td>
<td>设备key</td>
</tr>
<tr>
<td style="text-align: left;">license</td>
<td style="text-align: left;">string</td>
<td>license</td>
</tr>
<tr>
<td style="text-align: left;">account</td>
<td style="text-align: left;">string</td>
<td>账号</td>
</tr>
<tr>
<td style="text-align: left;">sdk_version</td>
<td style="text-align: left;">array</td>
<td>sdk 版本号</td>
</tr>
<tr>
<td style="text-align: left;">app_version</td>
<td style="text-align: left;">array</td>
<td>应用版本号</td>
</tr>
</tbody>
</table>
<h2>返回示例</h2>
<pre><code class="language-JSON">{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;payloadDetail&quot;,
&quot;data&quot;:{
&quot;1&quot;: {
&quot;uid&quot;: 123456789,
&quot;name&quot;: &quot;Zenmuse X5S&quot;,
&quot;id&quot;: &quot;CAM-001&quot;,
&quot;key&quot;: &quot;A1B2C3D4&quot;,
&quot;license&quot;: &quot;BASIC-EDITION&quot;,
&quot;account&quot;: &quot;user@domain.com&quot;,
&quot;sdk_version&quot;: [3, 2, 1, 0],
&quot;app_version&quot;: [1, 0, 5, 2]
},
&quot;2&quot;: {
&quot;uid&quot;: 987654321,
&quot;name&quot;: &quot;Spotlight Pro&quot;,
&quot;id&quot;: &quot;LGT-002&quot;,
&quot;key&quot;: &quot;E5F6G7H8&quot;,
&quot;license&quot;: &quot;PRO-EDITION&quot;,
&quot;account&quot;: &quot;robot@domain.com&quot;,
&quot;sdk_version&quot;: [2, 1, 0, 0],
&quot;app_version&quot;: [0, 9, 3, 1]
},
&quot;3&quot;: {
&quot;uid&quot;: 987654321,
&quot;name&quot;: &quot;Spotlight Pro&quot;,
&quot;id&quot;: &quot;LGT-002&quot;,
&quot;key&quot;: &quot;E5F6G7H8&quot;,
&quot;license&quot;: &quot;PRO-EDITION&quot;,
&quot;account&quot;: &quot;robot@domain.com&quot;,
&quot;sdk_version&quot;: [2, 1, 0, 0],
&quot;app_version&quot;: [0, 9, 3, 1]
}
}
}</code></pre>
<h1>获取相机字段属性</h1>
<h2>请求实例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camProp&quot;
}</code></pre>
<h2>返回实例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camProp&quot;,
&quot;data&quot;:{ }
}</code></pre>
<h1>云台字段属性</h1>
<h2>请求实例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;gblProp&quot;,
&quot;data&quot;:{ }
}</code></pre>
<h2>返回实例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;gblProp&quot;,
&quot;data&quot;:{
&quot;1&quot;: {
&quot;action_time&quot;: 0,
&quot;fine_tune_angle&quot;: [
0,
0,
0
],
&quot;joint_angle&quot;: [
0,
0,
0
],
&quot;joint_valid&quot;: false,
&quot;mode&quot;: 0,
&quot;range_extension&quot;: false,
&quot;rotation_invalid&quot;: [
false,
false,
false
],
&quot;smooth_factor&quot;: [
0,
0,
0
],
&quot;speed_percentage&quot;: [
0,
0,
0
]
},
&quot;2&quot;: {
&quot;action_time&quot;: 0,
&quot;fine_tune_angle&quot;: [
0,
0,
0
],
&quot;joint_angle&quot;: [
0,
0,
0
],
&quot;joint_valid&quot;: false,
&quot;mode&quot;: 0,
&quot;range_extension&quot;: false,
&quot;rotation_invalid&quot;: [
false,
false,
false
],
&quot;smooth_factor&quot;: [
0,
0,
0
],
&quot;speed_percentage&quot;: [
0,
0,
0
]
},
&quot;3&quot;: {
&quot;action_time&quot;: 127,
&quot;fine_tune_angle&quot;: [
0,
0,
0
],
&quot;joint_angle&quot;: [
2.299999952316284,
0,
-6.300000190734863
],
&quot;joint_valid&quot;: false,
&quot;mode&quot;: 0,
&quot;range_extension&quot;: false,
&quot;rotation_invalid&quot;: [
true,
true,
true
],
&quot;smooth_factor&quot;: [
0,
0,
0
],
&quot;speed_percentage&quot;: [
0,
0,
0
]
}
} </code></pre>
<h1>获取所有自定义控件</h1>
<ul>
<li>获取载荷对应所有自定义控件信息</li>
</ul>
<h2>请求示例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;payloadUi&quot;,
&quot;data&quot;: {}
}</code></pre>
<h2>返回示例</h2>
<ul>
<li><strong>widget_list 数据列表下每个item 新增 多两个字段,type控件类型 int值,current_value 控件当前值 int值。 json示例不再做一一举例</strong>
<pre><code>{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;payloadUi&quot;,
&quot;data&quot;: {
&quot;3&quot;: {
{
&quot;3&quot;: {
&quot;cn&quot;: {
&quot;config_interface&quot;: {
&quot;text_input_box&quot;: {
&quot;is_enable&quot;: true,
&quot;placeholder_text&quot;: &quot;请输入消息&quot;,
&quot;widget_name&quot;: &quot;文本输入框&quot;
},
&quot;widget_list&quot;: [
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 4
},
&quot;widget_index&quot;: 4,
&quot;widget_name&quot;: &quot;按钮 4&quot;,
&quot;widget_type&quot;: &quot;button&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;button_value_step_length&quot;: 5,
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 5
},
&quot;widget_index&quot;: 5,
&quot;widget_name&quot;: &quot;范围条 5&quot;,
&quot;widget_type&quot;: &quot;scale&quot;
},
{
&quot;int_input_box_hint&quot;: &quot;unit:s&quot;,
&quot;widget_index&quot;: 6,
&quot;widget_name&quot;: &quot;整形值输入框 6&quot;,
&quot;widget_type&quot;: &quot;int_input_box&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 7
},
&quot;widget_index&quot;: 7,
&quot;widget_name&quot;: &quot;开关 7&quot;,
&quot;widget_type&quot;: &quot;switch&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 8
},
&quot;list_item&quot;: [
{
&quot;item_name&quot;: &quot;选项 1&quot;
},
{
&quot;item_name&quot;: &quot;选项 2&quot;
},
{
&quot;item_name&quot;: &quot;选项 3&quot;
},
{
&quot;item_name&quot;: &quot;选项 4&quot;
}
],
&quot;widget_index&quot;: 8,
&quot;widget_name&quot;: &quot;列表 8&quot;,
&quot;widget_type&quot;: &quot;list&quot;
}
]
},
&quot;main_interface&quot;: {
&quot;floating_window&quot;: {
&quot;is_enable&quot;: true
},
&quot;speaker&quot;: {
&quot;is_enable_tts&quot;: true,
&quot;is_enable_voice&quot;: true
},
&quot;widget_list&quot;: [
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 0
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_button1.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_button1.png&quot;
},
&quot;widget_index&quot;: 0,
&quot;widget_name&quot;: &quot;按钮&quot;,
&quot;widget_type&quot;: &quot;button&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 1
},
&quot;list_item&quot;: [
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item1.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_list_item1.png&quot;
},
&quot;item_name&quot;: &quot;选项_1&quot;
},
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item2.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_list_item2.png&quot;
},
&quot;item_name&quot;: &quot;选项_2&quot;
}
],
&quot;widget_index&quot;: 1,
&quot;widget_name&quot;: &quot;列表&quot;,
&quot;widget_type&quot;: &quot;list&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 2
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_switch_select.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_switch_unselect.png&quot;
},
&quot;widget_index&quot;: 2,
&quot;widget_name&quot;: &quot;开关&quot;,
&quot;widget_type&quot;: &quot;switch&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;button_value_step_length&quot;: 5,
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 3
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_scale.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_scale.png&quot;
},
&quot;widget_index&quot;: 3,
&quot;widget_name&quot;: &quot;范围条&quot;,
&quot;widget_type&quot;: &quot;scale&quot;
}
]
},
&quot;version&quot;: {
&quot;major&quot;: 1,
&quot;minor&quot;: 0
}
},
&quot;def&quot;: {
&quot;config_interface&quot;: {
&quot;text_input_box&quot;: {
&quot;is_enable&quot;: true,
&quot;placeholder_text&quot;: &quot;Please input message&quot;,
&quot;widget_name&quot;: &quot;TextInputBox&quot;
},
&quot;widget_list&quot;: [
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 4
},
&quot;widget_index&quot;: 4,
&quot;widget_name&quot;: &quot;Button 4&quot;,
&quot;widget_type&quot;: &quot;button&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;button_value_step_length&quot;: 5,
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 5
},
&quot;widget_index&quot;: 5,
&quot;widget_name&quot;: &quot;Scale 5&quot;,
&quot;widget_type&quot;: &quot;scale&quot;
},
{
&quot;int_input_box_hint&quot;: &quot;unit:s&quot;,
&quot;widget_index&quot;: 6,
&quot;widget_name&quot;: &quot;Integer Input Box 6&quot;,
&quot;widget_type&quot;: &quot;int_input_box&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 7
},
&quot;widget_index&quot;: 7,
&quot;widget_name&quot;: &quot;Switch 7&quot;,
&quot;widget_type&quot;: &quot;switch&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 8
},
&quot;list_item&quot;: [
{
&quot;item_name&quot;: &quot;Item 1&quot;
},
{
&quot;item_name&quot;: &quot;Item 2&quot;
},
{
&quot;item_name&quot;: &quot;Item 3&quot;
},
{
&quot;item_name&quot;: &quot;Item 4&quot;
}
],
&quot;widget_index&quot;: 8,
&quot;widget_name&quot;: &quot;List 8&quot;,
&quot;widget_type&quot;: &quot;list&quot;
}
]
},
&quot;main_interface&quot;: {
&quot;floating_window&quot;: {
&quot;is_enable&quot;: true
},
&quot;speaker&quot;: {
&quot;is_enable_tts&quot;: true,
&quot;is_enable_voice&quot;: true
},
&quot;widget_list&quot;: [
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 0
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_button1.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_button1.png&quot;
},
&quot;widget_index&quot;: 0,
&quot;widget_name&quot;: &quot;Button&quot;,
&quot;widget_type&quot;: &quot;button&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 1
},
&quot;list_item&quot;: [
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item1.png&quot;
},
&quot;item_name&quot;: &quot;dark&quot;
},
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item2.png&quot;
},
&quot;item_name&quot;: &quot;medium&quot;
},
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item3.png&quot;
},
&quot;item_name&quot;: &quot;high&quot;
}
],
&quot;widget_index&quot;: 1,
&quot;widget_name&quot;: &quot;light&quot;,
&quot;widget_type&quot;: &quot;list&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 2
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_switch_select.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_switch_unselect.png&quot;
},
&quot;widget_index&quot;: 2,
&quot;widget_name&quot;: &quot;Switch&quot;,
&quot;widget_type&quot;: &quot;switch&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;button_value_step_length&quot;: 255,
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 3
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_scale.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_scale.png&quot;
},
&quot;widget_index&quot;: 3,
&quot;widget_name&quot;: &quot;light&quot;,
&quot;widget_type&quot;: &quot;scale&quot;
}
]
},
&quot;version&quot;: {
&quot;major&quot;: 1,
&quot;minor&quot;: 0
}
},
&quot;en&quot;: {
&quot;config_interface&quot;: {
&quot;text_input_box&quot;: {
&quot;is_enable&quot;: true,
&quot;placeholder_text&quot;: &quot;Please input message&quot;,
&quot;widget_name&quot;: &quot;TextInputBox&quot;
},
&quot;widget_list&quot;: [
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 4
},
&quot;widget_index&quot;: 4,
&quot;widget_name&quot;: &quot;Button 4&quot;,
&quot;widget_type&quot;: &quot;button&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;button_value_step_length&quot;: 5,
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 5
},
&quot;widget_index&quot;: 5,
&quot;widget_name&quot;: &quot;Scale 5&quot;,
&quot;widget_type&quot;: &quot;scale&quot;
},
{
&quot;int_input_box_hint&quot;: &quot;unit:s&quot;,
&quot;widget_index&quot;: 6,
&quot;widget_name&quot;: &quot;Integer Input Box 6&quot;,
&quot;widget_type&quot;: &quot;int_input_box&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 7
},
&quot;widget_index&quot;: 7,
&quot;widget_name&quot;: &quot;Switch 7&quot;,
&quot;widget_type&quot;: &quot;switch&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 8
},
&quot;list_item&quot;: [
{
&quot;item_name&quot;: &quot;Item 1&quot;
},
{
&quot;item_name&quot;: &quot;Item 2&quot;
},
{
&quot;item_name&quot;: &quot;Item 3&quot;
},
{
&quot;item_name&quot;: &quot;Item 4&quot;
}
],
&quot;widget_index&quot;: 8,
&quot;widget_name&quot;: &quot;List 8&quot;,
&quot;widget_type&quot;: &quot;list&quot;
}
]
},
&quot;main_interface&quot;: {
&quot;floating_window&quot;: {
&quot;is_enable&quot;: true
},
&quot;speaker&quot;: {
&quot;is_enable_tts&quot;: true,
&quot;is_enable_voice&quot;: true
},
&quot;widget_list&quot;: [
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 0
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_button1.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_button1.png&quot;
},
&quot;widget_index&quot;: 0,
&quot;widget_name&quot;: &quot;Button&quot;,
&quot;widget_type&quot;: &quot;button&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 1
},
&quot;list_item&quot;: [
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item1.png&quot;
},
&quot;item_name&quot;: &quot;dark&quot;
},
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item2.png&quot;
},
&quot;item_name&quot;: &quot;medium&quot;
},
{
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_list_item3.png&quot;
},
&quot;item_name&quot;: &quot;high&quot;
}
],
&quot;widget_index&quot;: 1,
&quot;widget_name&quot;: &quot;light&quot;,
&quot;widget_type&quot;: &quot;list&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 2
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_switch_select.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_switch_unselect.png&quot;
},
&quot;widget_index&quot;: 2,
&quot;widget_name&quot;: &quot;Switch&quot;,
&quot;widget_type&quot;: &quot;switch&quot;
},
{
&quot;customize_rc_buttons_config&quot;: {
&quot;button_value_step_length&quot;: 255,
&quot;is_enable&quot;: true,
&quot;mapping_config_display_order&quot;: 3
},
&quot;icon_file_set&quot;: {
&quot;icon_file_name_selected&quot;: &quot;icon_scale.png&quot;,
&quot;icon_file_name_unselected&quot;: &quot;icon_scale.png&quot;
},
&quot;widget_index&quot;: 3,
&quot;widget_name&quot;: &quot;light&quot;,
&quot;widget_type&quot;: &quot;scale&quot;
}
]
},
&quot;version&quot;: {
&quot;major&quot;: 1,
&quot;minor&quot;: 0
}
}
}
}</code></pre>
<h1>相机sdkcar信息获取</h1>
<h2>请求实例</h2>
<pre><code>{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camSdCard&quot;,
&quot;data&quot;:{ }
}</code></pre>
<h2>返回实例</h2>
<pre><code>{
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camSdCard&quot;,
&quot;data&quot;: {
&quot;1&quot;: {
&quot;available_capture_count&quot;: 0,
&quot;available_recording_time&quot;: 0,
&quot;has_error&quot;: false,
&quot;is_formatting&quot;: false,
&quot;is_full&quot;: false,
&quot;is_initializing&quot;: false,
&quot;is_inserted&quot;: false,
&quot;is_invalid_format&quot;: false,
&quot;is_ready_only&quot;: false,
&quot;is_verified&quot;: false,
&quot;remain_space&quot;: 0,
&quot;total_space&quot;: 0
},
&quot;2&quot;: {
&quot;available_capture_count&quot;: 0,
&quot;available_recording_time&quot;: 0,
&quot;has_error&quot;: false,
&quot;is_formatting&quot;: false,
&quot;is_full&quot;: false,
&quot;is_initializing&quot;: false,
&quot;is_inserted&quot;: false,
&quot;is_invalid_format&quot;: false,
&quot;is_ready_only&quot;: false,
&quot;is_verified&quot;: false,
&quot;remain_space&quot;: 0,
&quot;total_space&quot;: 0
},
&quot;3&quot;: {
&quot;available_capture_count&quot;: 8192,
&quot;available_recording_time&quot;: 16384,
&quot;has_error&quot;: false,
&quot;is_formatting&quot;: false,
&quot;is_full&quot;: false,
&quot;is_initializing&quot;: false,
&quot;is_inserted&quot;: true,
&quot;is_invalid_format&quot;: false,
&quot;is_ready_only&quot;: false,
&quot;is_verified&quot;: true,
&quot;remain_space&quot;: 32768,
&quot;total_space&quot;: 32768
}
}</code></pre></li>
</ul>
<h1>设置控件值</h1>
<ul>
<li>响应相关按钮控件、选项控件等 值变更。
<h2>关键字段说明</h2>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">current_value</td>
<td style="text-align: left;">int</td>
<td>当前字段值</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">int</td>
<td>控件类型</td>
</tr>
<tr>
<td style="text-align: left;">widget_index</td>
<td style="text-align: left;">int</td>
<td>控件脚标位</td>
</tr>
</tbody>
</table></li>
</ul>
<h2>请求实例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;payloadUiControl&quot;,
&quot;data&quot;: {
&quot;index&quot;:3,//载荷接口脚标
&quot;widget_index&quot;:1,//控件脚标
&quot;type&quot;:1,//控件类型
&quot;value&quot;:0//控件值
}
}</code></pre>
<h1>云台功能</h1>
<pre><code>- content字段支持多个参数。</code></pre>
<table>
<thead>
<tr>
<th style="text-align: left;">参数</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">index</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">载荷接口脚标</td>
</tr>
<tr>
<td style="text-align: left;">content</td>
<td style="text-align: left;">object</td>
<td style="text-align: left;"></td>
</tr>
<tr>
<td style="text-align: left;">content.mode</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">朝向模式</td>
</tr>
<tr>
<td style="text-align: left;">content.calibrate</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">云台校准</td>
</tr>
<tr>
<td style="text-align: left;">content.restore</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">云台字段属性重置</td>
</tr>
</tbody>
</table>
<h2>请求示例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;changeGblFunc&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
&quot;content&quot;:{
&quot;mode&quot;:2, //1:航向复位 //3:俯仰-航向复位 4:俯仰复位 5:横滚复位 6:航向复位 11:航向复位-俯仰正摄 12:俯仰正摄
&quot;calibrate&quot;: true,//云台校准
&quot;restore&quot;: true//云台字段属性重置
}
}
}</code></pre>
<h1>云台属性设置</h1>
<h2>请求示例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;setGblProp&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
&quot;content&quot;:{
&quot;mode&quot;:2,//云台模式-&gt;自由模式0 fpv模式1 航向跟随模式2
&quot;joint_valid&quot;:true,//云台俯仰限位扩展
&quot;smooth_factor&quot;:[0,0,0],//云台缓存or停 数组对应 roll,pitch,yaw
&quot;speed_percentage&quot;:[0,0,0],//最大速度 数组对应 roll,pitch,yaw
&quot;fine_tune_angle&quot;: [
0.0,
0.0,
0.0]//角度微调 数组对应 roll,pitch,yaw
}
}
}</code></pre>
<h1>云台控制</h1>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;gblCtrl&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
&quot;mode&quot;:2,//控制模式 rotate 0 相对角度 1:绝对角度 2速度 (建议默认2)
&quot;pitch&quot;:0,//俯仰
&quot;yaw&quot;:0,//偏移角
&quot;roll&quot;:0,//横滚角
}
}</code></pre>
<h1>相机拍照</h1>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camShootPhoto&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
}
}</code></pre>
<h1>相机录制</h1>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camRecordVideo&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
&quot;record_video&quot;:true//true录制 false 停止录制
}
}</code></pre>
<h1>相机光学变焦</h1>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camFunc&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
&quot;optical_zoom_length&quot;:10//光学焦距
}
}</code></pre>
<h1>相机sdkcar信息获取</h1>
<h2>请求实例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camSdCard&quot;,
&quot;data&quot;:{ }
}</code></pre>
<h2>返回实例</h2>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;camSdCard&quot;,
&quot;data&quot;: {
&quot;1&quot;: {
&quot;available_capture_count&quot;: 0,
&quot;available_recording_time&quot;: 0,
&quot;has_error&quot;: false,
&quot;is_formatting&quot;: false,
&quot;is_full&quot;: false,
&quot;is_initializing&quot;: false,
&quot;is_inserted&quot;: false,
&quot;is_invalid_format&quot;: false,
&quot;is_ready_only&quot;: false,
&quot;is_verified&quot;: false,
&quot;remain_space&quot;: 0,
&quot;total_space&quot;: 0
},
&quot;2&quot;: {
&quot;available_capture_count&quot;: 0,
&quot;available_recording_time&quot;: 0,
&quot;has_error&quot;: false,
&quot;is_formatting&quot;: false,
&quot;is_full&quot;: false,
&quot;is_initializing&quot;: false,
&quot;is_inserted&quot;: false,
&quot;is_invalid_format&quot;: false,
&quot;is_ready_only&quot;: false,
&quot;is_verified&quot;: false,
&quot;remain_space&quot;: 0,
&quot;total_space&quot;: 0
},
&quot;3&quot;: {
&quot;available_capture_count&quot;: 8192,
&quot;available_recording_time&quot;: 16384,
&quot;has_error&quot;: false,
&quot;is_formatting&quot;: false,
&quot;is_full&quot;: false,
&quot;is_initializing&quot;: false,
&quot;is_inserted&quot;: true,
&quot;is_invalid_format&quot;: false,
&quot;is_ready_only&quot;: false,
&quot;is_verified&quot;: true,
&quot;remain_space&quot;: 32768,
&quot;total_space&quot;: 32768
}
}
}</code></pre>
<h1>相机sdcard格式化</h1>
<pre><code> {
&quot;tid&quot;: &quot;1234567890&quot;,
&quot;bid&quot;: &quot;9876543210&quot;,
&quot;method&quot;: &quot;setCamSdCard&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
&quot;is_initializing&quot;:true
}
}</code></pre>
<h1>框选目标跟中</h1>
<pre><code> {
&quot;tid&quot;:&quot;123123&quot;,
&quot;bid&quot;:&quot;123124134&quot;,
&quot;method&quot;:&quot;camTrack&quot;,
&quot;data&quot;:{
&quot;index&quot;:3,//载荷接口脚标
&quot;track_cmd&quot;: 1, // 0: 无意义,1: 开始, 2: 结束 (取消跟踪其 其余值取0即可)
&quot;track_mode&quot;: 1, // 0: 无意义,1: 框选跟踪, 2:目标名称跟踪
&quot;startX&quot;: 0.0,//左上角x坐标
&quot;startY&quot;: 0.0,//左上角y坐标
&quot;endX&quot;: 0.0,//右下角x坐标
&quot;endY&quot;: 0.0//右下角y坐标
}
}</code></pre>