Enum ServiceCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ServiceCode>

    public enum ServiceCode
    extends java.lang.Enum<ServiceCode>
    Device Service Code
    Version:
    1.0.0
    Author:
    wmy
    • Enum Constant Detail

      • SYSTEM_RESET

        public static final ServiceCode SYSTEM_RESET
        System Reset.
      • RC_TURN_ON

        public static final ServiceCode RC_TURN_ON
        Drone remote control power on.
      • RC_TURN_OFF

        public static final ServiceCode RC_TURN_OFF
        Drone remote control power off.
      • ANDROID_POWER_ON

        public static final ServiceCode ANDROID_POWER_ON
        Turn on Android power.
      • ANDROID_POWER_OFF

        public static final ServiceCode ANDROID_POWER_OFF
        Turn off Android power.
      • NVIDIA_POWER_ON

        public static final ServiceCode NVIDIA_POWER_ON
        Turn on Nvidia Power.
      • NVIDIA_POWER_OFF

        public static final ServiceCode NVIDIA_POWER_OFF
        Turn off Nvidia Power.
      • RC_PLUG_IN

        public static final ServiceCode RC_PLUG_IN
        Drone remote control USB cable plug in
      • RC_PLUG_OUT

        public static final ServiceCode RC_PLUG_OUT
        Drone remote control USB cable pull out
      • ONE_CLICK_FLIGHT_PREPARATION

        public static final ServiceCode ONE_CLICK_FLIGHT_PREPARATION
        One-click flight preparation.
      • ONE_CLICK_CHARGING

        public static final ServiceCode ONE_CLICK_CHARGING
        One-click charging.
      • ONE_CLICK_FLIGHT_PREPARATION_STOP

        public static final ServiceCode ONE_CLICK_FLIGHT_PREPARATION_STOP
        One-click flight preparation stop.
      • ONE_CLICK_CHARGING_STOP

        public static final ServiceCode ONE_CLICK_CHARGING_STOP
        One-click charging stop.
      • ONE_CLICK_CHARGING_ENFORCEDLY

        public static final ServiceCode ONE_CLICK_CHARGING_ENFORCEDLY
        One-click charging enforcedly.
      • CANOPY_RESET

        public static final ServiceCode CANOPY_RESET
        Reset canopy status.
      • CANOPY_OPEN

        public static final ServiceCode CANOPY_OPEN
        Open the canopy.
      • CANOPY_CLOSE

        public static final ServiceCode CANOPY_CLOSE
        Close the canopy.
      • POSITION_BAR_RESET

        public static final ServiceCode POSITION_BAR_RESET
        Reset charging bars status.
      • POSITION_BAR_LOCK

        public static final ServiceCode POSITION_BAR_LOCK
        Lock the charging bars.
      • POSITION_BAR_UNLOCK

        public static final ServiceCode POSITION_BAR_UNLOCK
        Release the charging bars.
      • CHARGE_START

        public static final ServiceCode CHARGE_START
        Start charging.
      • CHARGE_STOP

        public static final ServiceCode CHARGE_STOP
        Stop charging.
      • BATTERY_TURN_ON

        public static final ServiceCode BATTERY_TURN_ON
        Power on the drone.
      • BATTERY_TURN_OFF

        public static final ServiceCode BATTERY_TURN_OFF
        Power off the drone.
      • PARAMETER_GET

        public static final ServiceCode PARAMETER_GET
        Query configuration parameters.
      • PARAMETER_SET

        public static final ServiceCode PARAMETER_SET
        Set configuration parameters.
      • ALARM_CANOPY_ERR_OPEN

        public static final ServiceCode ALARM_CANOPY_ERR_OPEN
        Send an alert that the canopy open without command.
      • ALARM_UVA_TAKE_OFF_READY

        public static final ServiceCode ALARM_UVA_TAKE_OFF_READY
        Send an alert that the UAV is ready to takeoff.
      • ALARM_UVA_TAKE_OFF

        public static final ServiceCode ALARM_UVA_TAKE_OFF
        Send an alert that the UAV is taking off.
      • ALARM_UVA_HOMEWARD_VOYAGE

        public static final ServiceCode ALARM_UVA_HOMEWARD_VOYAGE
        Send an alert that the UAV is returning.
      • DRONE_TAKEOFF

        public static final ServiceCode DRONE_TAKEOFF
        One-click takeoff.
      • DRONE_RETURN_TO_HOME

        public static final ServiceCode DRONE_RETURN_TO_HOME
        One-click return to land.
      • DRONE_JOYSTICK_CONTROL

        public static final ServiceCode DRONE_JOYSTICK_CONTROL
        Flight joystick control, required field "param".
      • DRONE_HOVER

        public static final ServiceCode DRONE_HOVER
        Hover the drone.
      • CAMERA_MODE_SWITCH

        public static final ServiceCode CAMERA_MODE_SWITCH
        Switch camera mode to take photos or video.
      • CAMERA_TAKE_PHOTO

        public static final ServiceCode CAMERA_TAKE_PHOTO
        Take a picture.
      • CAMERA_TAKE_VIDEO

        public static final ServiceCode CAMERA_TAKE_VIDEO
        Take a video.
      • CAMERA_ZOOM_IN

        public static final ServiceCode CAMERA_ZOOM_IN
        Camera zooms in.
      • CAMERA_ZOOM_OUT

        public static final ServiceCode CAMERA_ZOOM_OUT
        Camera zooms out.
      • GIMBLE_PITCH_UP

        public static final ServiceCode GIMBLE_PITCH_UP
        Pitch up the gimble of drone.
      • GIMBLE_PITCH_DOWN

        public static final ServiceCode GIMBLE_PITCH_DOWN
        Pitch down the gimble of drone.
      • RC_RE_PAIR

        public static final ServiceCode RC_RE_PAIR
        Re-pair the RC with drone.
      • UAV_RC_NATIVE_DATA

        public static final ServiceCode UAV_RC_NATIVE_DATA
        Send the native data of the UAV and RC, including the temperature and voltage of the UAV battery, the on-off status of the RC, and the battery voltage of the RC.
      • T100_UPDATE

        public static final ServiceCode T100_UPDATE
        Code for firmware updates for T100 modules.
      • CAN_UPDATE

        public static final ServiceCode CAN_UPDATE
        Code for firmware updates for CAN interface modules.
    • Method Detail

      • values

        public static ServiceCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServiceCode c : ServiceCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServiceCode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()
        Returns:
        Get the enumerated sequence number
      • convert

        public static ServiceCode convert​(int code)
        convert and return the corresponding enumeration value according to the given sequence number
        Parameters:
        code - the given sequence number
        Returns:
        corresponding enumeration value