dji-sdk / Mobile-SDK-iOS

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

Camera source for shootPhotoDistanceInterval (DJIWaypoint) on drones with multiple cameras #385

Closed india2sarthak closed 4 years ago

india2sarthak commented 4 years ago

We are trying to add support for drones with multiple cameras like Matrice210 V2, Matrice 210 RTK V2.

In our app, we use the DJIWaypointMission object for flying missions and set the shootPhotoDistanceInterval property for capturing photos. What I am unable to figure out is

Here is how I am setting the shootPhotoDistanceInterval and preparing a waypoint (Simplified version)

 let singleWaypoint: DJIWaypoint = DJIWaypoint(
                coordinate: CLLocationCoordinate2D(
                    latitude: point[1], longitude: point[0]
                )
            )
if let distanceBasedTrigger = waypointProperties.dist_based_trigger {
                singleWaypoint.shootPhotoDistanceInterval = distanceBasedTrigger
            }

DJI Mobile SDK Version: 4.11.2 DJIWidget: 1.6.2

Thanks a lot for helping :)

dji-dev commented 4 years ago

Agent comment from Luce Luo in Zendesk ticket #38031:

Dear Customer,

Thank you for contacting DJI. Sorry that the Waypoint Mission V1 only the main camera can be used for the action and can't assign the second camera.

Thanks,

Luce Luo DJI Developer Support

india2sarthak commented 4 years ago

Thanks a lot for your reply. Could you also tell which camera is considered as the main camera (Left or Right) ?

dji-dev commented 4 years ago

Agent comment from Luce Luo in Zendesk ticket #38031:

Dear Customer,

Thank you for contacting DJI. The left camera is main one.

Thanks,

Luce Luo DJI Developer Support