This class represents a gimbal movement action used as an element in a Timeline mission. By creating an object of this class and adding it to Mission Control's Timeline, the camera's gimbal will move to the specified attitude when the Timeline reaches the action. Please be notified that the PitchRangeExtensionEnabled of Gimbal is set to true by default if the pitch value in user specified attitude is bigger than 0.
Set the expected action gimbal index. For example there are two gimbals in M210, if you want to run action on Gimbal I, you can either set the index as 0 or do nothing because of the default index is 0; if you want to run action on Gimbal II, you need set the index as 1. Default index is 0 if user does not call this method to specify the index.
Input Parameters:
int index
Index of the gimbal on which the action is expected to run.
For the GimbalAttitudeAction, either FREE or YAW_FOLLOW mode is recommended. If the gimbal mode is not set, the default mode is YAW_FOLLOW. Check the details on the description of each work mode in GimbalMode enum definition.
Sets the time you want to delay before element execution which is used for asynchronous processing scenarios. For example, if you want to execute GimbalAttitudeAction after ShootPhotoAction, you should set delay time in GimbalAttitudeAction. Because it takes 1 to 2 seconds to take a photo, the gimbal's commands will not be responded during this period, so we need to delay 2 seconds before turning the gimbal to ensure that the gimbal movement is executed correctly.
Input Parameters:
long delayTime
The time you want to delay before element execution, unit:second.