¿What does setAutoTerminateCount?
320 0 1-2 10:42
Uploading and Loding Picture ...(0/1)
o(^-^)o
alex.m2000.cl
lvl.1

Chile
Offline

Hi. I am new to dji msdk. I am writing some code based on the dji 4.17 api sample. I am working on an android app that will get some points (lattitude, longitude and height) of waypoints. These waypoints will be obtained from an endpoint and the drone will fly to every waypoint and then will take some pics of a POI associated to every waypoint (using waypoint v2). My question is above the setAutoTerminateCount that you can see below in the code. I dont understand how it works. Thanks for any help.

// Create a folder with "testFolder" at the end of folder name
WaypointTrigger waypointAction1Trigger = new WaypointTrigger.Builder()
        .setTriggerType(ActionTypes.ActionTriggerType.REACH_POINT)
        .setReachPointParam(new WaypointReachPointTriggerParam.Builder()
                .setStartIndex(startIndex++)
                .setAutoTerminateCount(0)
                .build())
        .build();

WaypointActuator waypointAction1Actuator = new WaypointActuator.Builder()
        .setActuatorType(ActionTypes.ActionActuatorType.CAMERA)
        .setCameraActuatorParam(new WaypointCameraActuatorParam.Builder()
                .setCameraOperationType(ActionTypes.CameraOperationType.CUSTOM_NAME)
                .setCustomNameParam(new WaypointCameraCustomNameParam.Builder()
                        .type(ActionTypes.CameraCustomNameType.DIR)
                        .customName("testFolder")
                        .build())
                .build())
        .build();

WaypointV2Action waypointAction1 = new WaypointV2Action.Builder()
        .setActionID(++actionId)
        .setTrigger(waypointAction1Trigger)
        .setActuator(waypointAction1Actuator)
        .build();
waypointV2ActionList.add(waypointAction1);



1-2 10:42
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules