DJI Mobile SDK Documentation
      包:dji.sdk.keyvalue.key
      继承自:DJIRemoteControllerKey
      classSince MSDK 5.0.0

      RemoteControllerKey

      RemoteControllerKey提供了一组方法来设置和获取遥控器数据。遥控器是一种具有摇杆、按钮、滚轮、GPS、电池、和视频输出端口的设备。移动设备可以连接到遥控器,遥控器会向移动设备发送任何从飞行器上返回的信息。

      Package dji.sdk.keyvalue.keyAndroid · Java / Kotlin

      RemoteControllerKey提供了一组方法来设置和获取遥控器数据。遥控器是一种具有摇杆、按钮、滚轮、GPS、电池、和视频输出端口的设备。移动设备可以连接到遥控器,遥控器会向移动设备发送任何从飞行器上返回的信息。


      MSDK 5.0.0开始支持

      成员

      43 个成员

      方法

      43

      基础信息

      连接状态
      method

      KeyConnection

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyConnection = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"Connection", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)

      参数: Boolean

      true表示遥控器已连接。

      method

      KeyRemoteControllerType

      Since MSDK 5.0.0
      static final DJIKeyInfo<RemoteControllerType> KeyRemoteControllerType = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"RemoteControllerType", new SingleValueConverter<>(RemoteControllerType.class,RemoteControllerTypeMsg.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)

      参数: RemoteControllerType

      获取遥控器类型。

      控制模式
      method

      KeyControlMode

      Since MSDK 5.0.0
      static final DJIKeyInfo<ControlMode> KeyControlMode = new KeyControlMode()
      .canGet(true).canSet(true).canListen(false).canPerformAction(false).setIsEvent(false)

      参数: ControlMode

      获取遥控器控制模式。首次调用get方法,需要使用异步的方式getValue调用才能获取到值。

      电量信息
      method

      KeyBatteryInfo

      Since MSDK 5.0.0
      static final DJIKeyInfo<BatteryInfo> KeyBatteryInfo = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"BatteryInfo", new DJIValueConverter<>(BatteryInfo.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RcParamChargeRemaining")

      参数: BatteryInfo

      获取遥控器电量信息。

      method

      KeySecondBatteryInfo

      Since MSDK 5.1.0
      static final DJIKeyInfo<BatteryInfo> KeySecondBatteryInfo = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"SecondBatteryInfo", new DJIValueConverter<>(BatteryInfo.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("SecondRcParamChargeRemaining")

      参数: BatteryInfo

      获取遥控器外置电池的电量信息。

      序列号
      method

      KeySerialNumber

      Since MSDK 5.0.0
      static final DJIKeyInfo<String> KeySerialNumber = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"SerialNumber", SingleValueConverter.StringConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)

      参数: String

      获取遥控器序列号。

      固件版本号
      method

      KeyFirmwareVersion

      Since MSDK 5.0.0
      static final DJIKeyInfo<String> KeyFirmwareVersion = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"FirmwareVersion", SingleValueConverter.StringConverter).canGet(true).canSet(false).canListen(false).canPerformAction(false).setIsEvent(false)

      参数: String

      获取遥控器固件版本。


      物理按键信息监听

      method

      KeyStickLeftVertical

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyStickLeftVertical = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"StickLeftVertical", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCStickLeftVertical")

      参数: Integer

      获取遥控器左摇杆的垂直杆量,范围区间:[-660,660],把摇杆控制到最下边,杆量为-660,把摇杆控制到最上边,杆量则为660。

      method

      KeyStickLeftHorizontal

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyStickLeftHorizontal = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"StickLeftHorizontal", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCStickLeftHorizontal")

      参数: Integer

      获取遥控器左摇杆的水平杆量,范围区间:[-660,660],把摇杆控制到最左边,杆量为-660,把摇杆控制到最右边,杆量则为660。

      method

      KeyStickRightVertical

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyStickRightVertical = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"StickRightVertical", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCStickRightVertical")

      参数: Integer

      获取遥控器右摇杆的垂直杆量,范围区间:[-660,660],把摇杆控制到最下边,杆量为-660,把摇杆控制到最上边,杆量则为660。

      method

      KeyStickRightHorizontal

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyStickRightHorizontal = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"StickRightHorizontal", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCStickRightHorizontal")

      参数: Integer

      获取遥控器右摇杆的水平杆量,范围区间:[-660,660],把摇杆控制到最左边,杆量为-660,把摇杆控制到最右边,杆量则为660。

      method

      KeyShutterButtonDown

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyShutterButtonDown = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"ShutterButtonDown", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCShutterButtonDown")

      参数: Boolean


      true表示按下快门按钮,相机会切换成拍照模式或者进行拍照动作。

      录像按钮
      method

      KeyRecordButtonDown

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyRecordButtonDown = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"RecordButtonDown", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCRecordButtonDown")

      参数: Boolean


      true表示按下录像按钮,相机会切换到录像模式或者开启关闭录像行为。

      返航按钮
      method

      KeyGoHomeButtonDown

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyGoHomeButtonDown = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"GoHomeButtonDown", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCGohomeButtonDown")

      参数: Boolean


      true表示按下返航按钮,飞行器将启动或者取消返航行为。

      急停按钮
      method

      KeyPauseButtonDown

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyPauseButtonDown = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"PauseButtonDown", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCPauseButtonDown")

      参数: Boolean


      true表示按下急停按钮。在Matrice 30 Series和Matrice 300 RTK上,按下急停按钮后,飞行器将停止智能飞行行为。

      拍照录像切换按钮
      method

      KeyRCSwitchButtonDown

      Since MSDK 5.3.0
      static final DJIKeyInfo<Boolean> KeyRCSwitchButtonDown = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"RCSwitchButtonDown", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)

      参数: Boolean


      true表示按下按照录像切换按钮。

      左拨轮
      method

      KeyLeftDial

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyLeftDial = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"LeftDial", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCLeftWheel")

      参数: Integer


      获取遥控器左拨轮的偏移量,范围区间:[-660,660],默认偏移量为0。把拨轮拨到最左边,偏移量为-660。把拨轮拨到最右边,偏移量为660。左拨轮通常用来控制云台的俯仰行为。

      右拨轮
      method

      KeyRightDial

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyRightDial = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"RightDial", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCRightWheel")

      参数: Integer


      获取遥控器右拨轮的偏移量,范围区间:[-660,660],默认偏移量为0。把拨轮拨到最左边,偏移量为-660。把拨轮拨到最右边,偏移量为660。右拨轮通常用来控制云台的偏航行为。

      method

      KeyScrollWheel

      Since MSDK 5.1.0
      static final DJIKeyInfo<Integer> KeyScrollWheel = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"ScrollWheel", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCRightNewWheel")

      参数: Integer


      获取遥控器滚轮的滚动量。

      在M30系列遥控器DJI RC Plus上,用于监听遥控器后面的滚轮的滚动量,通常用来控制相机镜头变焦。

      method

      KeyFiveDimensionPressedStatus

      Since MSDK 5.0.0
      static final DJIKeyInfo<FiveDimensionPressedStatus> KeyFiveDimensionPressedStatus = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"FiveDimensionPressedStatus", new DJIValueConverter<>(FiveDimensionPressedStatus.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RcFiveDimensionPressedStatus")

      参数: FiveDimensionPressedStatus

      获取遥控器五维按键的状态。

      自定义按键
      method

      KeyCustomButton1Down

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyCustomButton1Down = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"CustomButton1Down", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCCustomButton1Down")

      参数: Boolean


      true表示按下自定义按键C1。Pilot中默认用于云台回中,可自定义配置。

      method

      KeyCustomButton2Down

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyCustomButton2Down = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"CustomButton2Down", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCCustomButton2Down")

      参数: Boolean


      true表示按下自定义按键C2。Pilot中默认用于主辅画面切换,可自定义配置。

      method

      KeyCustomButton3Down

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyCustomButton3Down = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"CustomButton3Down", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RCCustomButton3Down")

      参数: Boolean


      true表示按下自定义按键C3。可自定义配置。


      基本操作

      method

      KeyRcFirmwareInfo

      Since MSDK 5.4.0
      static final DJIKeyInfo<RcFirmwareInfo> KeyRcFirmwareInfo = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"RcFirmwareInfo", new DJIValueConverter<>(RcFirmwareInfo.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)

      获取遥控器当前的固件信息。

      注意
      此Key只支持DJI RC Plus遥控器和DJI RC N1遥控器,用于获取遥控器固件信息进行固件类型切换。

      method

      KeySwitchRcFirmware

      Since MSDK 5.4.0
      static final DJIActionKeyInfo<RcFirmwareType,EmptyMsg> KeySwitchRcFirmware = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"SwitchRcFirmware", new SingleValueConverter<>(RcFirmwareType.class,RcFirmwareMsg.class),EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false)

      切换遥控器固件类型。以DJI RC Plus遥控器为例:DJI RC Plus遥控器可以用于M30系列机型,M300 RTK机型和M350 RTK机型。你可以调用这个接口切换不同机型的固件,然后调用KeyRequestPairing进行对频使用。

      method

      KeyRequestPairing

      Since MSDK 5.0.0
      static final DJIActionKeyInfo<EmptyMsg,EmptyMsg> KeyRequestPairing = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"RequestPairing", EmptyValueConverter.converter,EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false).setInnerIdentifier("RcRequestPairing")

      启动遥控器对频操作,遥控器开始与飞行器对频。 当遥控器无法连接飞行器或者更换遥控器的时候可以通过对频操作连接飞行器。

      注意
      DJI RC Plus遥控器和DJI RC N1遥控器支持多款飞行器类型。请先调用KeyRcFirmwareInfo获取当前遥控器的固件类型。如果固件类型与需要对频的飞行器类型不一致,请先调用KeySwitchRcFirmware把遥控器固件切换成需要对频的固件类型后才能进行对频操作。

      method

      KeyStopPairing

      Since MSDK 5.0.0
      static final DJIActionKeyInfo<EmptyMsg,EmptyMsg> KeyStopPairing = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"StopPairing", EmptyValueConverter.converter,EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false).setInnerIdentifier("RcStopPairing")

      停止遥控器对频操作。

      method

      KeyPairingStatus

      Since MSDK 5.0.0
      static final DJIKeyInfo<PairingState> KeyPairingStatus = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"PairingStatus", new SingleValueConverter<>(PairingState.class,RcPairingStateMsg.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RcPairingState")

      参数: PairingState


      获取遥控器对频状态。

      method

      KeyControllingGimbal

      Since MSDK 5.7.0
      static final DJIKeyInfo<ComponentIndexType> KeyControllingGimbal = new KeyControllingGimbal()
      .canGet(false).canSet(true).canListen(false).canPerformAction(false).setIsEvent(false)

      参数: ComponentIndexType


      设置遥控器需要控制的云台和相机。飞行器上电后,遥控器默认控制主(左)云台和相机。可以通过此接口设置遥控器控制右云台和相机或者上云台和相机。


      注意


      支持机型:M300 RTK和M350 RTK。

      method

      KeyRebootDevice

      Since MSDK 5.1.0
      static final DJIActionKeyInfo<EmptyMsg,EmptyMsg> KeyRebootDevice = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"RebootDevice", EmptyValueConverter.converter,EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false)

      重启遥控器。


      双控

      是否支持双控
      method

      KeyMultiControlIsSupported

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyMultiControlIsSupported = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlIsSupported", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("IsMasterSlaveModeV4Supported")

      参数: Boolean


      true表示支持双控功能。

      method

      KeyMultiControlRequestPairing

      Since MSDK 5.0.0
      static final DJIActionKeyInfo<MultiControlChannel,EmptyMsg> KeyMultiControlRequestPairing = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlRequestPairing", new SingleValueConverter<>(MultiControlChannel.class,MultiControlChannelInfo.class),EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false).setInnerIdentifier("StartModePairing")

      参数: MultiControlChannel

      启动双控对频操作,可选择把遥控器切换成A控或者B控跟飞行器对频。

      注意
      调用此接口把遥控器对频为CHANNEL_B后,将无法使用IRTKCenter相关功能。

      method

      KeyMultiControlChannel

      Since MSDK 5.0.0
      static final DJIKeyInfo<MultiControlChannel> KeyMultiControlChannel = new KeyMultiControlChannel()
      .canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false)

      参数: MultiControlChannel


      获取当前遥控器的多控频道类型。

      method

      KeyMultiControlOnlineRcCount

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyMultiControlOnlineRcCount = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlOnlineRcCount", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("MultiRcOnlineRCCount")

      参数: Integer

      获取当前已连接的遥控器个数。

      method

      KeyMultiControlOnlineAppCount

      Since MSDK 5.0.0
      static final DJIKeyInfo<Integer> KeyMultiControlOnlineAppCount = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlOnlineAppCount", SingleValueConverter.IntegerConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("MultiRcOnlineAPPCount")

      参数: Integer

      获取当前已连接的APP个数。
      注意:此处提及的APP包括DJI的官方APP,以及通过DJI MSDK开发的第三方APP。

      双控连接状态
      method

      KeyMultiControlStatus

      Since MSDK 5.0.0
      static final DJIKeyInfo<MultiControlStatusInfo> KeyMultiControlStatus = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlStatus", new DJIValueConverter<>(MultiControlStatusInfo.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("RcMultiStatus")

      参数: MultiControlStatusInfo


      获取遥控器双控连接状态。可以通过这个接口查看A控、A控中的App、B控、B控中App是否在线状态。

      method

      KeyMultiControlFlightControlAuthorityOwner

      Since MSDK 5.0.0
      static final DJIKeyInfo<MultiControlFlightControlAuthorityOwnerInfo> KeyMultiControlFlightControlAuthorityOwner = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlFlightControlAuthorityOwner", new DJIValueConverter<>(MultiControlFlightControlAuthorityOwnerInfo.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("MultiRCFlightControlAuthOwner")

      参数: MultiControlFlightControlAuthorityOwnerInfo

      获取当前飞行控制权是在A控还是在B控。

      method

      KeyMultiControlGimbalAuthorityOwner

      Since MSDK 5.0.0
      static final DJIKeyInfo<List<MultiControlChannelInfo>> KeyMultiControlGimbalAuthorityOwner = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlGimbalAuthorityOwner", new SingleValueConverter<>((Class)List.class,MultiRcGimbalsControlAuthOwnerMsg.class)).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("MultiRcGimbalsControlAuthOwner")

      参数: List<MultiControlChannelInfo>

      获取当前云台控制权是在A控还是在B控。

      method

      KeyMultiControlAuthorityObtain

      Since MSDK 5.0.0
      static final DJIActionKeyInfo<List<MultiControlAuthorityType>,EmptyMsg> KeyMultiControlAuthorityObtain = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlAuthorityObtain", new SingleValueConverter<>((Class)List.class,RCAuthorityModes.class),EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false).setInnerIdentifier("MultiRcControlAuthoritySurpass")

      参数: List<MultiControlAuthorityType>


      抢夺飞行或者云台控制权。当遥控器仅仅拥有云台控制权时,可通过摇杆来控制云台,当用户同时拥有飞行控制权和云台控制权时,摇杆用来控制飞行,波轮用来控制云台。

      method

      KeyMultiControlLockAuthority

      Since MSDK 5.0.0
      static final DJIActionKeyInfo<MultiControlLockAuthorityInfo,EmptyMsg> KeyMultiControlLockAuthority = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlLockAuthority", new DJIValueConverter<>(MultiControlLockAuthorityInfo.class),EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false).setInnerIdentifier("MultiRcControlLockRight")

      参数: MultiControlLockAuthorityInfo


      锁定飞行或者云台控制权, 锁定后控制权将不能被其他控抢夺。

      method

      KeyMultiControlFlightControlAuthorityLockStatus

      Since MSDK 5.0.0
      static final DJIKeyInfo<Boolean> KeyMultiControlFlightControlAuthorityLockStatus = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlFlightControlAuthorityLockStatus", SingleValueConverter.BooleanConverter).canGet(true).canSet(false).canListen(true).canPerformAction(false).setIsEvent(false).setInnerIdentifier("MultiRCFlightControlAuthLockState")

      参数: Boolean

      返回飞行控制权是否锁定。

      method

      KeyMultiControlLostControlNotice

      Since MSDK 5.0.0
      static final DJIKeyInfo<MultiControlLostControlInfo> KeyMultiControlLostControlNotice = new DJIKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlLostControlNotice", new DJIValueConverter<>(MultiControlLostControlInfo.class)).canGet(false).canSet(false).canListen(true).canPerformAction(false).setIsEvent(true).setInnerIdentifier("MultiRcLostNotice")

      参数: MultiControlLostControlInfo

      监听具有飞行或者云台控制权的遥控器失去连接的通知事件。当具有飞行控制权的遥控器失去连接的时候,无飞行控制权的遥控器可以调用KeyMultiControlAuthorityObtain接管飞行控制权,也可以调用KeyMultiControlExecuteFailSafeActionWhenLostControl让飞行器立即执行失控行为KeyFailsafeAction。

      method

      KeyMultiControlExecuteFailSafeActionWhenLostControl

      Since MSDK 5.0.0
      static final DJIActionKeyInfo<EmptyMsg,EmptyMsg> KeyMultiControlExecuteFailSafeActionWhenLostControl = new DJIActionKeyInfo<>(componentType.value(),subComponentType.value(),"MultiControlExecuteFailSafeActionWhenLostControl", EmptyValueConverter.converter,EmptyValueConverter.converter).canGet(false).canSet(false).canListen(false).canPerformAction(true).setIsEvent(false).setInnerIdentifier("MultiRcExecuteAircraftLostLogic")

      执行失控行为。当具有飞行控制权的遥控器失去连接的时候,无飞行控制权的遥控器可以调用此接口让飞行器立即执行失控行为KeyFailsafeAction。