dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
576 stars 255 forks source link

DJI Timeline not running #443

Open RushivArora opened 3 years ago

RushivArora commented 3 years ago

I am creating a simple DJI timeline mission which consists of a waypoint mission, followed by an action, followed by another waypoint mission. The waypoint mission runs correctly when run with the waypointController, however when I use the timeline it doesn't run.

That is, the timeline mission is not executing after I call "[[DJISDKManager missionControl] startTimeline]". I have event listeners to peek into when each action starts and finishes, but no luck there either. The timeline mission will run once in a blue moon and execute to completion, but that is rare.

Could I please get some help with this? I am not sure why this is happening and would appreciate help with it.

zoemcmac commented 3 years ago

What aircraft, what firmware, what version of the SDK?

RushivArora commented 3 years ago

DJI Mavic 2 Zoom Firmware: V 1.00.0670 SDK Version: 4.14-trial1

Hope this helps, thank you @zoemcmac

I forgot mention this in the previous post, but the timeline mission sometimes only completes the first action

zoemcmac commented 3 years ago

Well first, move up to the 4.14 that was just released, it's more polished. Second please give them the exact actions that worked, and didn't work so QA can reproduce. 1) yaw 2) waypoint 3) start video 4) waypoint 5) stop video (high level like that)

RushivArora commented 3 years ago

Will update to 4.14, didn't realise it was released. My actions are:

1) DJI Waypoint mission (V1). Mission involves 3 waypoints at the same location, each within 1m vertically (for the sake of staying at the same location). 2) Hotpoint Action 3) DJIWayPoint mission but at a different location. 4) Hotpoint action and so on

My steps in preparing the timeline are: 1) Pause Timeline 2) Stop Timeline 3) Unschedule everything 4) Add/schedule elements to timeline 5) Start timeline (and run all the elements/actions mentioned above)

I hope this helps, thank you @zoemcmac

zoemcmac commented 3 years ago

Your first answer was more interesting! so for this version I wanted to know

  1. DJI Waypoint mission (V1). Mission involves 3 waypoints at the same location, each within 1m vertically (for the sake of staying at the same location).
  2. ShootPhoto Action
  3. Custom Action to download the photo
  4. DJIWayPoint mission but at a different location.

At step 3 could we replace the download action (local storage? SD) and replace it with something super simple like a 180 yaw - then does step 4 start?

but for your new version, just to confirm when you do a hotpoint, it can't do a waypoint after ? super interesting!

I am curious to see what the DJI team says when they run this on their internal QA test app!