IGLearn
New
Chile
Offline
|
Hi there,
I've been trying to get the remote controller's information (iOS SDK - Swift language).
Once the product is connected, I'm trying to get the remote controller's information like battery percentage, but I'm just getting nil values.
Can anyone show me how I can access that kind of information through DJISDKManager.keyManager() ?
I'm able to see the next object through Xcode's debugger.
Printing description of newProduct:
(DJIBaseProduct) baseDJIBaseProduct@0 = {
baseNSObject@0 = {
isa = DJIAircraft
}
_isConnected = true
_delegate = nil
_camera = nil
_gimbal = nil
_battery = nil
_airLink = nil
_videoFeeder = some {
some = 0x00000002829997a0 {
baseNSObject@0 = {
isa = DJIVideoFeeder
}
_isInspire2ProductConnected = '\0'
_isLightbridge2ProductConnected = '\0'
_isEXTVideoInputPortEnabled = '\x02'
_isM210Connected = '\0'
_secondaryVideoDisplayMode = '\0'
_primaryVideoFeed = some {
some = 0x00000002829996b0 {
baseNSObject@0 = {
isa = DJIVideoFeed
}
_active = false
_tunnel = '\xff'
_isPrimary = true
_needPigeonLogic = false
_physicalSource = 0
_listeners = 0x0000000282730ea0
_pigoenLogic = 0x0000000282999680
}
}
_secondaryVideoFeed = some {
some = 0x0000000282999b30 {
baseNSObject@0 = {
isa = DJIVideoFeed
}
_active = false
_tunnel = '\xff'
_isPrimary = false
_needPigeonLogic = false
_physicalSource = 255
_listeners = 0x0000000282730a20
_pigoenLogic = 0x0000000282999b90
}
}
_liveviewPlaybackSource = 255
_listeners = 0x0000000282730a40
}
}
_model = 0x0000000101c914f8 "Mavic Pro"
_componentsDict = 0x000000028274dc20 0 key/value pairs
_rawComponents = 0x000000028274dc40 6 key/value pairs
_cameras = nil
_gimbals = nil
_diagnosticsManager = 0x0000000280946400
_interestComponents = 0x0000000281e1e300 10 key/value pairs
}
Printing description of conexion.some:
(DJIBaseProduct) baseDJIBaseProduct@0 = {
baseNSObject@0 = {
isa = DJIAircraft
}
_isConnected = true
_delegate = nil
_camera = nil
_gimbal = nil
_battery = nil
_airLink = nil
_videoFeeder = some {
some = 0x00000002829997a0 {
baseNSObject@0 = {
isa = DJIVideoFeeder
}
_isInspire2ProductConnected = '\0'
_isLightbridge2ProductConnected = '\0'
_isEXTVideoInputPortEnabled = '\x02'
_isM210Connected = '\0'
_secondaryVideoDisplayMode = '\0'
_primaryVideoFeed = some {
some = 0x00000002829996b0 {
baseNSObject@0 = {
isa = DJIVideoFeed
}
_active = false
_tunnel = '\xff'
_isPrimary = true
_needPigeonLogic = false
_physicalSource = 0
_listeners = 0x0000000282730ea0
_pigoenLogic = 0x0000000282999680
}
}
_secondaryVideoFeed = some {
some = 0x0000000282999b30 {
baseNSObject@0 = {
isa = DJIVideoFeed
}
_active = false
_tunnel = '\xff'
_isPrimary = false
_needPigeonLogic = false
_physicalSource = 255
_listeners = 0x0000000282730a20
_pigoenLogic = 0x0000000282999b90
}
}
_liveviewPlaybackSource = 255
_listeners = 0x0000000282730a40
}
}
_model = 0x0000000101c914f8 "Mavic Pro"
_componentsDict = 0x000000028274dc20 0 key/value pairs
_rawComponents = 0x000000028274dc40 6 key/value pairs
_cameras = nil
_gimbals = nil
_diagnosticsManager = 0x0000000280946400
_interestComponents = 0x0000000281e1e300 10 key/value pairs
}
Printing description of newProduct._remoteController:
<nil>
(__lldb_autogen_nspair) [7] = {
key = 0x0000000101c665b8
value = 0x000000028047f6b0
}
Thanks in advance for your support.
|
|