Comments

6 comments

  • DJI Developer Support
    一键起飞和航线任务新增了字段,开启后飞行器将正常执行航线任务的准备工作,如机场开舱、启动等动作。 飞行器将以模拟器字段中给定的经纬度作为起始点数据,执行航线任务,但飞行器不会实际起飞。飞行器执行任务期间的飞行器数据,将正常通过osd上报。
    0
    Comment actions Permalink
  • luwenming

    那执行航线任务时,机巢上的无人机需要连接模拟器吗?

    0
    Comment actions Permalink
  • DJI Developer Support
    不需要模拟器,飞行器会在原地不动,但是数据会上报
    0
    Comment actions Permalink
  • luwenming

    还是说只添加

    "simulate_mission": {
    			"is_enable": 1,
    			"latitude": 22.1223,
    			"longitude": 113.2222
    		},

    就可以了,机巢也不用连接连接模拟器。

    0
    Comment actions Permalink
  • DJI Developer Support
    这样就可以了
    0
    Comment actions Permalink
  • 小小霸王龙

    takeoff_to_pointModel pointModel = new takeoff_to_pointModel();
    pointModel.data = new Data4();
    pointModel.data.simulate_mission = new Simulate_Mission();
    pointModel.method = "takeoff_to_point";
    pointModel.data.rth_mode = 0;
    pointModel.data.commander_flight_mode = 0;
    pointModel.data.commander_flight_height = 100;
    pointModel.data.commander_mode_lost_action = 1;
    pointModel.data.flight_id = "ABDEAC21DCADDA";
    pointModel.data.max_speed = 12;
    pointModel.data.rc_lost_action = 0;
    pointModel.data.rth_altitude = 100;
    pointModel.data.security_takeoff_height = 100;
    pointModel.data.target_height = 100;
    pointModel.data.target_latitude = 12.23;
    pointModel.data.target_longitude = 12.32;
    pointModel.data.simulate_mission.is_enable = 1;
    pointModel.data.simulate_mission.latitude = 39.23;
    pointModel.data.simulate_mission.longitude = 117.32;

    给定以上参数,执行一键起飞模拟器模式;

    会返回:

    {"bid": "a1864753-ebae-4957-bed3-35139f53f777", "data": {"result": 0}, "method": "takeoff_to_point", "tid": "a091830a-896b-4901-9c75-c6cbb173b3cd", "timestamp": 1722412394875}

    但飞机机场没有任何反应,也不会返回其他信息,请问如何解决呢。

    0
    Comment actions Permalink

Please sign in to leave a comment.