如何使用cloud API 一键起飞控制无人机
已完成已经成功连接mqtt服务
发布主题为thing/product/{gateway_sn}/services
内容如下
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"commander_flight_height": 80,
"commander_mode_lost_action": 1,
"flight_id": "ABDEAC21DCADDA",
"max_speed": 12,
"rc_lost_action": 0,
"rth_altitude": 100,
"security_takeoff_height": 100,
"target_height": 100,
"target_latitude": 40.123456,
"target_longitude": 116.654321
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": xxxxxxxxxx, //当前时间戳
"method": "takeoff_to_point"
}
订阅 thing/product/{gateway_sn}/services_reply主题 无回执消息
//ps:发布控制云台转动是成功的
请先登录再写评论。
评论
5 条评论