dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
972 stars 579 forks source link

setTerrainFollowModeEnabled during timeline mission #1232

Open MitchellMonaghan opened 1 year ago

MitchellMonaghan commented 1 year ago

Hello I have a timeline mission that we want to add terrain follow functionality to. I am current attempting set this when I reach the first waypoint in the mission. When I try to do this I get 2 different behaviors.

  1. I will get a "Not supported error"
  2. I will not get a error, but it silently fails. If I use getTerrainFollowModeEnabled to check if its enabled it is true immediately after I set it, but by the time I reach the next waypoint and I check again it has been reset to false even though I did not send a command to do so.

I have tested this on a Mavic 2 Pro, Mavic Pro Platinum, and a Phantom 4 Pro v2. At this point I am under the assumption that you cannot use setTerrainFollowModeEnabled while flying a mission, and that for us to have this functionality we need a terrain data source to set custom altitudes on a per waypoint basis. The sdk documentation does not specify any limitations like this.

Any help or feedback as to if this is expected behavior or a bug with the djji sdk would be helpful.

Thanks, Mitch

dji-dev commented 1 year ago

Agent comment from ekho.feng in Zendesk ticket #83803:

MSDKV4 does not support the function of imitating terrain flight, so calling the setTerrainFollowModeEnabled method has no effect

°°°