Pilot API 中关于 network state 与 OSD 信息的疑问
在Pilot API中,有没有办法获取 network_state
的值?
使用遥控器的 SN 和无人机的 SN 获取的 OSD 信息中,似乎无法知道 network_state
,
但在 Dock 中似乎会返回 network_state
。
// pilot osd 示例
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"app_version": "170619",
"capacity_percent": 63,
"height": 0,
"latitude": 0,
"longitude": 0,
"wireless_link": {
"4g_freq_band": 5.8,
"4g_gnd_quality": 0,
"4g_link_state": 0,
"4g_quality": 0,
"4g_uav_quality": 0,
"dongle_number": 0,
"link_workmode": 0,
"sdr_freq_band": 1,
"sdr_link_state": 1,
"sdr_quality": 5
}
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1742780620731,
"gateway": "##"
}
// drone osd 示例
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"67-0-0": {
"gimbal_pitch": 0,
"gimbal_roll": 0,
"gimbal_yaw": 135.7,
"payload_index": "67-0-0",
"thermal_current_palette_style": 2,
"thermal_gain_mode": 2,
"thermal_global_temperature_max": 30.651178359985352,
"thermal_global_temperature_min": 17.7939395904541,
"thermal_isotherm_lower_limit": -20,
"thermal_isotherm_state": 0,
"thermal_isotherm_upper_limit": 150,
"zoom_factor": 0.56782334384858046
},
"activation_time": 1727379569,
"attitude_head": 135.8,
"attitude_pitch": 4.2,
"attitude_roll": -0.3,
"battery": {
"batteries": [
{
"capacity_percent": 41,
"firmware_version": "08.75.02.23",
"high_voltage_storage_days": 0,
"index": 0,
"loop_times": 14,
"sn": "###",
"sub_type": 0,
"temperature": 40.4,
"type": 0,
"voltage": 15258
}
],
"capacity_percent": 41,
"landing_power": 0,
"remain_flight_time": 0,
"return_home_power": 0
},
"cameras": [
{
"camera_mode": 0,
"ir_metering_mode": 0,
"ir_metering_point": {
"temperature": 0,
"x": 0.44026845693588257,
"y": 0.57550334930419922
},
"ir_zoom_factor": 2,
"liveview_world_region": {
"bottom": 0.57333070039749146,
"left": 0.41716238856315613,
"right": 0.550452172756195,
"top": 0.43852251768112183
},
"payload_index": "67-0-0",
"photo_state": 0,
"photo_storage_settings": [
"current",
"vision"
],
"record_time": 0,
"recording_state": 0,
"remain_photo_num": 5510,
"remain_record_duration": 0,
"screen_split_enable": false,
"wide_calibrate_farthest_focus_value": 0,
"wide_calibrate_nearest_focus_value": 0,
"wide_exposure_mode": 1,
"wide_exposure_value": 16,
"wide_focus_mode": 0,
"wide_focus_state": 0,
"wide_focus_value": 0,
"wide_iso": 4,
"wide_max_focus_value": 0,
"wide_min_focus_value": 0,
"wide_shutter_speed": 29,
"zoom_calibrate_farthest_focus_value": 0,
"zoom_calibrate_nearest_focus_value": 0,
"zoom_exposure_mode": 1,
"zoom_exposure_value": 16,
"zoom_factor": 7,
"zoom_focus_mode": 0,
"zoom_focus_state": 0,
"zoom_focus_value": 0,
"zoom_iso": 4,
"zoom_max_focus_value": 0,
"zoom_min_focus_value": 0,
"zoom_shutter_speed": 29
}
],
"distance_limit_status": {
"distance_limit": 5000,
"is_near_distance_limit": 0,
"state": 0
},
"elevation": 0,
"exit_wayline_when_rc_lost": 0,
"firmware_version": "10.01.0017",
"gear": 1,
"height": 139.83096313476562,
"height_limit": 0,
"home_distance": 0,
"horizontal_speed": 0,
"is_near_height_limit": 0,
"latitude": 0,
"longitude": 0,
"maintain_status": {
"maintain_status_array": [
{
"last_maintain_flight_sorties": 0,
"last_maintain_flight_time": 0,
"last_maintain_time": 0,
"last_maintain_type": 1,
"state": 0
},
{
"last_maintain_flight_sorties": 0,
"last_maintain_flight_time": 0,
"last_maintain_time": 0,
"last_maintain_type": 2,
"state": 0
},
{
"last_maintain_flight_sorties": 0,
"last_maintain_flight_time": 0,
"last_maintain_time": 0,
"last_maintain_type": 3,
"state": 0
}
]
},
"mode_code": 0,
"night_lights_state": 0,
"obstacle_avoidance": {
"downside": 1,
"horizon": 1,
"upside": 1
},
"position_state": {
"gps_number": 0,
"is_fixed": 0,
"quality": 0,
"rtk_number": 0
},
"rc_lost_action": 2,
"rth_altitude": 100,
"storage": {
"total": 60382000,
"used": 28093000
},
"total_flight_distance": 11879.363797226106,
"total_flight_sorties": 0,
"total_flight_time": 0,
"track_id": "",
"vertical_speed": 0,
"wind_direction": 0,
"wind_speed": 0
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1742780618734,
"gateway": "###"
}
请先登录再写评论。
评论
3 条评论