AutelSDK / AndroidAdvanceSample

3 stars 3 forks source link

Need to be provided description for each type of CameraAction #29

Closed masayuki-kobayashi1 closed 8 months ago

masayuki-kobayashi1 commented 1 year ago

@AutelSDK I am trying to add a camera action to Waypoint mission. I think CameraActionJNI is the camera action, but I would like to know what each enum means. CameraActionJNI is written in here

public enum CameraAction {
    NONE(10),
    TAKE_PHOTO(1),
    RECORD(2),
    TIMELAPSE(3),
    DISTANCE(4),
    DISTANCE_SCAN(5),
    STOP_RECORD(6),
    STOP_PHOTO(7),
    POINT_TAKE_PHOTO(11),
    POINT_RECORD(12),
    POINT_TIMELAPSE(13),
    POINT_NONE(20),
    UNKNOWN(-1);
}
public class CameraActionJNI {
     /** Action type */
    public int Action_Type;

     /** Pitch angle of the gimbal */
    public float Gimbal_Pitch;

     /** Roll angle of the gimbal */
    public float Gimbal_Roll;

     /** Yaw angle of the gimbal */
    public float Action_Yaw_Ref;

     /** Interval between periodic shoots (s) */
    public int Shoot_Time_Interval;

     /** Distance for fixed-distance photography (mm) */
    public float Shoot_Dis_Interval;

     /** Action execution time (s) */
    public int Action_Time;

     /** zoom factor */
    public int Zoom_Rate;

     /** Reserved */
    public int[] reserved;//2
}

And, If I want to perform multiple actions in any waypoint, how should I implement it? For example, with a specific WP, I want the drone to turn the gimbal angle to 90°, take a picture, wait 3 seconds, then take another picture) Please could you give me an example code? Thank you.

AutelSDK commented 1 year ago

https://github.com/AutelSDK/MSDK2.0_MissionDemo similar to this

AutelSDK commented 1 year ago

public enum CameraAction { /**

AutelSDK commented 1 year ago

企业微信截图_16968156638809 AirLineCreator this class

masayuki-kobayashi1 commented 1 year ago

@AutelSDK I'm not really understanding how to use each of them yet. What is the difference between TAKE_PHOTO and POINT_TAKE_PHOTO? What is the difference between TAKE_PHOTO, TIMELAPSE, DISTANCE, and DISTANCE_SCAN? Thank you.

masayuki-kobayashi1 commented 1 year ago

@AutelSDK Can you give me some information as it is very difficult to know the difference on my own?