m300无人机,用osdk控制航线任务,已知刚开机起飞时需要连接遥控器并打开app,才能突破距离限制。如果在飞行途...

Completed

Comments

18 comments

  • DJI Developer Support
    M300连接遥控器和APP成功起飞,降落后如果不掉电重启再次起飞,可以不需要连接遥控器和APP起飞,如果掉电重启,需要连接遥控器和APP才可以解除飞行区域限制。
    0
    Comment actions Permalink
  • zhangpengya1994

    但是实际上在不掉电重启的情况下,重新上传航线执行waypointv2,无法起飞,在重新连接遥控器和app后才能起飞,请问我是缺少了哪一步呢?

    0
    Comment actions Permalink
  • DJI Developer Support
    可以提供一下重新上传失败的终端log,是否有报错。
    0
    Comment actions Permalink
  • zhangpengya1994

    拿到log了,但是没有任何报错,osdk认为航线上传成功且已经在执行航线了,然而实际上无人机并没有任何动作

    0
    Comment actions Permalink
  • DJI Developer Support
    航线开始执行后,可以通过回调查看航线任务的执行状态已经event上抛事件,可以提供一下完整的终端log,以及导出对应时间段的无人机整机log,以便确认。
    0
    Comment actions Permalink
  • zhangpengya1994
    [1033458.722]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033458.722]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033458.722]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x0
    [1033458.722]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033458.722]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:0
    发送无人机状态内容:{"uavSn":"1ZNBJ8700C0104","type":"route","value":"0","recordTime":"2022-1-9 14:49:26"}
    [1033459.024]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033459.024]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033459.024]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033459.062]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033459.066]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033459.066]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033459.142]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    发送无人机状态 successfully
    ------------------- 指令轮询一遍 success -----------------

    [1033459.181]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033459.181]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033459.181]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033459.188]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033459.188]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033459.188]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033459.188]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033459.730]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033459.730]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033459.730]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x0
    [1033459.730]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033459.730]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:0
    ----------{"result":"success","msg":"获取成功","data":{"id":"346ffab14524413b804cf7260d2f46ad","isNewRecord":false,"uavSn":"1ZNBJ8700C0104","state":"go","recordTime":"2022-01-09 14:49:27"}}----------
    ---------获取到指令: go--------
    [1033460.824]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033460.824]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033460.824]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x0
    [1033460.824]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033460.824]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:0
    [1033461.148]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033461.148]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033461.148]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033461.181]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033461.184]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033461.184]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033461.263]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033461.319]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033461.319]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033461.319]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033461.327]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033461.327]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033461.327]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033461.327]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033461.922]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033461.922]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033461.922]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x0
    [1033461.922]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033461.922]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:1
    ------收到执行航线任务指令------
    [1033462.183]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x0
    [1033462.183]STATUS/2 @ startWaypointMission, L497: Start waypoint v2 mission successfully!
    [1033462.882]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x0
    [1033462.923]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033462.923]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033462.923]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x1
    [1033462.923]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033462.923]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:1
    [1033463.270]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033463.270]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033463.270]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033463.305]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033463.307]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033463.307]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033463.383]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033463.436]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033463.436]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033463.436]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033463.444]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033463.444]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033463.444]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033463.444]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033463.610]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x0
    [1033463.926]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033463.926]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033463.926]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x1
    [1033463.926]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033463.926]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:4
    [1033465.022]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033465.022]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033465.022]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x1
    [1033465.022]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033465.022]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:2
    [1033465.393]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033465.394]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033465.394]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033465.425]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033465.427]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033465.427]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033465.503]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033465.540]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033465.540]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033465.540]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033465.547]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033465.547]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033465.547]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033465.547]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033466.024]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033466.025]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033466.025]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x1
    [1033466.025]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033466.025]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:6
    [1033467.121]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033467.121]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033467.121]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033467.121]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033467.121]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:4
    [1033467.510]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033467.510]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033467.510]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033467.544]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033467.546]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033467.546]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033467.635]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033467.680]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033467.680]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033467.680]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033467.688]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033467.688]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033467.688]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033467.688]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033468.122]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033468.122]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033468.122]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033468.122]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033468.122]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:10
    [1033469.122]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033469.122]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033469.122]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033469.122]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033469.123]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:10
    [1033469.633]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033469.633]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033469.633]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033469.661]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033469.664]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033469.664]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033469.744]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033469.783]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033469.783]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033469.783]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033469.787]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033469.788]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033469.788]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033469.788]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033470.122]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033470.122]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033470.122]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033470.122]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033470.122]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:11
    [1033471.130]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033471.130]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033471.130]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033471.130]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033471.130]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:20
    [1033471.752]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033471.752]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033471.752]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033471.783]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033471.785]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033471.785]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033471.869]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033471.915]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033471.915]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033471.915]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033471.922]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033471.922]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033471.922]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033471.922]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033472.223]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033472.223]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033472.223]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033472.223]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033472.223]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:20
    [1033473.322]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033473.322]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033473.322]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033473.322]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033473.322]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:141
    [1033473.878]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033473.878]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033473.878]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033473.902]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033473.903]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033473.903]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033473.964]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033474.011]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033474.011]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033474.011]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033474.019]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033474.019]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033474.019]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033474.019]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033474.323]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033474.323]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033474.324]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033474.324]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033474.324]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:209
    [1033475.323]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033475.323]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033475.323]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033475.323]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033475.323]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:73
    [1033475.966]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033475.966]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033475.966]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033476.006]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033476.008]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033476.008]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033476.082]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033476.122]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033476.122]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033476.122]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033476.130]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033476.130]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033476.130]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033476.130]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033476.325]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033476.325]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033476.326]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033476.326]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033476.326]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:24
    [1033477.423]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033477.423]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033477.423]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x2
    [1033477.423]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033477.423]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:31
    [1033477.506]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x10
    [1033477.506]STATUS/2 @ updateMissionEvent, L104: current waypointIndex:0
    [1033478.087]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033478.087]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033478.087]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033478.123]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033478.126]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033478.126]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033478.202]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033478.222]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x10
    [1033478.222]STATUS/2 @ updateMissionEvent, L104: current waypointIndex:0
    [1033478.289]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033478.289]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033478.289]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033478.289]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033478.289]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033478.289]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033478.289]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033478.523]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033478.523]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033478.523]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x3
    [1033478.524]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033478.524]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:16
    [1033478.941]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x10
    [1033478.941]STATUS/2 @ updateMissionEvent, L104: current waypointIndex:0
    [1033479.622]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033479.622]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033479.622]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x3
    [1033479.622]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033479.622]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:12
    [1033480.207]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033480.207]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033480.207]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033480.251]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033480.253]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033480.253]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033480.324]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033480.360]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033480.361]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033480.361]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033480.367]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033480.367]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033480.367]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033480.367]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033480.622]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033480.622]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033480.622]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x3
    [1033480.622]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033480.622]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:1
    [1033481.622]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033481.622]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033481.622]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x3
    [1033481.622]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033481.622]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:13
    [1033482.189]STATUS/2 @ setGlobalCruiseSpeed, L577: Current cruise speed is: 5.000000 m/s
    [1033482.334]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033482.334]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033482.334]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033482.362]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033482.364]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033482.364]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033482.456]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033482.496]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033482.496]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033482.496]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033482.504]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033482.504]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033482.504]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    [1033482.504]STATUS/1 @ fileListRawDataCB, L855: Finish req filelist task, reset downloadState to be DOWNLOAD_IDLE
    [1033482.622]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033482.622]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033482.622]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x3
    [1033482.622]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:0
    [1033482.622]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:11
    [1033482.942]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x10
    [1033482.942]STATUS/2 @ updateMissionEvent, L104: current waypointIndex:1
    [1033483.200]STATUS/2 @ getGlobalCruiseSpeed, L565: Current cruise speed is: 5.000000 m/s
    [1033483.622]STATUS/2 @ updateMissionState, L42: missionStatePushAck->commonDataVersion:10
    [1033483.622]STATUS/2 @ updateMissionState, L43: missionStatePushAck->commonDataLen:6
    [1033483.622]STATUS/2 @ updateMissionState, L44: missionStatePushAck->data.state:0x3
    [1033483.622]STATUS/2 @ updateMissionState, L45: missionStatePushAck->data.curWaypointIndex:1
    [1033483.622]STATUS/2 @ updateMissionState, L46: missionStatePushAck->data.velocity:14
    [1033483.642]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x10
    [1033483.642]STATUS/2 @ updateMissionEvent, L104: current waypointIndex:1
    航线任务开始执行 success
    发送无人机状态内容:{"uavSn":"1ZNBJ8700C0104","type":"fly","value":"0","recordTime":"2022-1-9 14:49:51"}
    [1033484.362]STATUS/2 @ updateMissionEvent, L67: MissionEventPushAck->event ID :0x10
    [1033484.362]STATUS/2 @ updateMissionEvent, L104: current waypointIndex:1
    发送无人机状态 successfully
    ------------------- 指令轮询一遍 success -----------------

    [1033484.461]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033484.461]STATUS/2 @ downloadFile, L83: 相机当前照片数 : 0  -  拍照前照片数:0
    [1033484.461]STATUS/2 @ downloadFile, L67: Play back mode setting......
    [1033484.482]STATUS/2 @ downloadFile, L71: Get liveview right......
    [1033484.486]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
    [1033484.486]STATUS/2 @ downloadFile, L75: Try to download file list  .......
    [1033484.567]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
    [1033484.607]STATUS/1 @ OnReceiveDataPack, L908: [First pack] get the first pack
    [1033484.608]STATUS/1 @ parseFileList, L595: ###data->amount = 0, data->len = 8
    [1033484.608]STATUS/1 @ SendAbortPack, L958: SendAbortPack
    [1033484.613]STATUS/2 @ fileListReqCB, L15: [1;32;40m##[Download main camera file list] : ret = 0 [0m
    [1033484.614]STATUS/2 @ fileListReqCB, L18: file_list.type = 65535
    [1033484.614]STATUS/2 @ fileListReqCB, L19: file_list.media.size() = 0
    0
    Comment actions Permalink
  • zhangpengya1994

    以上就是上传航线到执行航线过程中完整的日志,和正常执行航线时的日志完全一致,但事实上飞机纹丝不动

    0
    Comment actions Permalink
  • DJI Developer Support
    麻烦把对应时间段的飞机log也导出,发送到邮件dev@dji.com
    0
    Comment actions Permalink
  • zhangpengya1994

    飞机目前不在身边,要年后才能导出了。

    0
    Comment actions Permalink
  • zhangpengya1994

    请问下是不是每次起飞时都需要重新设置home点?

    0
    Comment actions Permalink
  • DJI Developer Support
    可以的,发送邮件时麻烦在邮件内容中备注一下此问题的工单:58980,以及出现异常时的大致时间。飞机起飞时会记录起飞点。
    0
    Comment actions Permalink
  • zhangpengya1994

    好的。
    “飞机起飞时会记录起飞点”,没错,但是如果飞机起飞时和遥控器断开连接的状态呢?我在问题描述中说过了,飞机开机起飞时,是连接遥控器和app的,在飞行过程中和遥控器断连,降落后依然断连,不关机热插拔换电池后,再通过osdk下发航线起飞,这时依然和遥控器断连。是在这种情况下,m300没有任何动作,但却以为已经成功上传航线并已经起飞了。

    0
    Comment actions Permalink
  • zhangpengya1994

    就是说,在上述情况下,降落后第二次起飞时和遥控器断连的情况下,如果不通过osdk记录起飞点,是无法记录起飞点的吧?

    0
    Comment actions Permalink
  • DJI Developer Support
    如果是因为没有连接遥控器和APP导致的飞行区域限制,上传航点任务时就应该会报飞行范围超出限制的错误。您这个问题建议还是先拿log确认一下飞机的状态。
    0
    Comment actions Permalink
  • zhangpengya1994

    请您再看一遍问题的原始描述:“m300无人机,用osdk控制航线任务,已知刚开机起飞时需要连接遥控器并打开app,才能突破距离限制。如果在飞行途中与遥控器断联,可以继续受osdk的控制飞行航线并降落。如果在降落后,无人机仍与遥控器断联,则通过osdk的waypointv2接口依然能给无人机下发航线任务,并且航线能自检成功,waypointv2的构造函数会认为已经在执行航线任务,而实际上无人机并没有动作,只有在再次连接遥控器和app后,才能执行waypointv2任务。 请问,怎样才能让m300降落后不需连接遥控器和app就可以再次执行waypointv2任务?”
    如果在刚开机起飞时,没有连接遥控器和app,则会直接报错距离或高度超出限制,但是如果在飞行过程中和遥控器断连,并且没有关机,降落后再次起飞则没有高度和距离的限制了。这一点你们初次回答中也提到了:“M300连接遥控器和APP成功起飞,降落后如果不掉电重启再次起飞,可以不需要连接遥控器和APP起飞,如果掉电重启,需要连接遥控器和APP才可以解除飞行区域限制。”

    0
    Comment actions Permalink
  • DJI Developer Support
    是的,这个场景我之前有在模拟器中测试过,是可以再次执行的,麻烦方便的时候先提供一下飞机log,我这边会再对应测试来确认是否是固件有限制。
    0
    Comment actions Permalink
  • zhangpengya1994

    好的,年后我拿到飞机会提供飞机的log。谢谢!

    0
    Comment actions Permalink
  • DJI Developer Support
    这个问题我这边正好有个同类问题,与您这个情况可能类似,可以同步确认一下。第一次执行完航线任务后,OSDK已经失去了控制权,导致再次执行时因为OSDK没有控制权,RC也没有控制权,进入了RC失联逻辑。在方便导出飞机log时可以先试一下再次执行时,OSDK端先调用API来再次获取控制权,然后再执行。
    0
    Comment actions Permalink

Please sign in to leave a comment.