WaypointV2Action is divided into three parts: ActionID, Trigger and Actuator.
ActionID is a unique identifier for the waypoint action and must be unique in the waypoint action list.
Trigger, or WaypointTrigger, indicates the trigger for a waypoint action and is used to indicate when the action will be executed.
Actuator, or WaypointActuator, indicates the actuator of the waypoint action and is used to indicate the execution action.
WaypointTrigger is composed of two parts: the trigger type and the parameter corresponding to the type. Among them, TriggerType refers to the trigger type, and the parameters corresponding to it are different for different trigger types.
|TriggerType||Parameter Type||Parameter Attributes||Remark|
StartIndex-- Start waypoint number
AutoTerminateCount--Number of sustained waypoints
|AutoTerminateCount is invalid and the REACH_POINT action will only be executed at the waypoint with the serial number StartIndex.|
AssociateActionId--Associated waypoint action number, i.e. ActionID
|The association types are SIMULTANEOUSLY and AFTER_FINISHED, i.e. executed at the same time as the previous action and executed after the previous action is completed.|
StartIndex--Start waypoint number
EndIndex--End waypoint number
·EndIndex is invalid, TRAJECTORY action will only be executed from StartIndex to the next waypoint.
·The TRAJECTORY trigger can only be paired with the AIRCRAFT_CONTROL_GIMBAL actuator.
StartIndex -- Start waypoint number
Type -- Type （Time/Distance）
|The interval photo action will only be executed from StartIndex to the next waypoint.|
The WaypointActuator is composed of an actuator type, an execution position and parameters corresponding to the type. Similar to the trigger type, different actuator types have different parameters corresponding to them. Among them, ActuatorIndex refers to the actuator position, which is generally used to specify the position of the gimbal or camera.
|ActuatorType||Parameter Type||Parameter Attributes||Remark|
CameraOperationType -- Action Type
OperationType-- Action Type
AircraftControlType -- Action Type
AircraftControlType has two types: ROTATE_YAW and START_STOP_FLY, which correspond to the RotateYawParam parameter and FlyControlParam parameter respectively.
LidarOperationType -- Action Type
|Only L1 is supported.|
CameraOperationType contains seven types, namely SHOOT_SINGLE_PHOTO, START_RECORD_VIDEO, STOP_RECORD_VIDEO, CUSTOM_NAME, ZOOM, FOCUS and FOCUS_MODE. SINGLE_PHOTO, START_RECORD_VIDEO and STOP_RECORD_VIDEO do not need to be passed in; CUSTOM_NAME needs to be passed in the CustomNameParam parameter, which is divided into two types of custom folders and custom file suffixes; ZOOM needs to be passed in the ZoomParam parameter; FOCUS needs to be passed in the FocusParam parameter. FOCUS needs to pass the FocusParam parameter; FOCUS_MODE needs to pass the FocusModeParam parameter.
OperationType contains three modes, namely, AIRCRAFT_CONTROL_GIMBAL, PATH_SHOOTING and ROTATE_GIMBAL. SHOOTING mode needs to pass in the pathShooting parameter, with REACH_POINT or ASSOCIATE type trigger, and only supports P1; ROTATE_GIMBAL needs to match the Rotation parameter. The time attribute of the Rotation parameter in the route is invalid, so the gimbal will rotate at maximum speed to the corresponding position.