Coder Social home page Coder Social logo

dji-sdk / mobile-uxsdk-ios Goto Github PK

View Code? Open in Web Editor NEW
73.0 27.0 43.0 249.62 MB

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of iOS applications using the DJI Mobile SDK.

License: Other

Ruby 1.14% Objective-C 71.25% Swift 26.63% Shell 0.99%

mobile-uxsdk-ios's Introduction

DJI UX SDK for iOS

What Is This?

The UX SDK is a suite of product agnostic UI objects that fast tracks the development of iOS applications using the DJI Mobile SDK.

Get Started Immediately

UX SDK Installation with CocoaPods

Since this project has been integrated with DJI iOS UX SDK CocoaPods now, please check the following steps to install DJISDK.framework using CocoaPods after you downloading this project:

1. Install CocoaPods

Open Terminal and change to the download project's directory, enter the following command to install it:

sudo gem install cocoapods

The process may take a long time, please wait. For further installation instructions, please check this guide.

2. Install UX SDK and DJIWidget with CocoaPods in the Project

Run the following command in the ObjcSampleCode and SwiftSampleCode paths:

pod install

If you install it successfully, you should get the messages similar to the following:

Analyzing dependencies
Downloading dependencies
Installing DJI-SDK-iOS (4.16)
Installing DJI-UXSDK-iOS (4.16)
Installing DJIWidget (1.6.6)
Installing DJIFlySafeDatabaseResource (01.00.01.18)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `UXSDKOCSample.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod
installed.

Note: If you saw "Unable to satisfy the following requirements" issue during pod install, please run the following commands to update your pod repo and install the pod again:

pod repo update
pod install

Run Sample Code

Developers will need to setup the App Key by editing the sample code's info.plist, after generating their unique App Key.

For the Objective-C sample app, the key value DJISDKAppKey should to be added to "Info.plist" with your unique app key as a string.

For the Swift sample app, the DJISDKAppKey is present in the "Info.plist" - developers just need to add their unique key. In both cases developers will still need to update the Bundle Identifier .

One of DJI's aircraft or handheld cameras will be required to run the sample application.

DJIWidget Integration

Starting from DJI iOS SDK 4.7, we have replaced the VideoPreviewer with DJIWidget for video decoding. Please add the following line to your Podfile to install it to your Xcode project:

pod 'DJIWidget', '~> 1.6.6'

Note: Remember to add the use_frameworks! in the pod file.

Learn More about DJI UX SDK

Please visit UX SDK Introduction for more details.

Development Workflow

From registering as a developer, to deploying an application, the following will take you through the full Mobile SDK Application development process:

Feedback

We’d love to have your feedback as soon as possible. Reach out to us when you hit roadblocks, or want to talk through something. At a minimum please let us know:

  • What improvements would you like to see?
  • What is hard to use or inconsistent with your expectations?
  • What is good?
  • Any bugs you come across.

Support

You can get support from DJI with the following methods:

Join Us

DJI is looking for all kinds of Software Engineers to continue building the Future of Possible. Available positions in Shenzhen, China and around the world. If you are interested, please send your resume to [email protected]. For more details, and list of all our global offices, please check https://we.dji.com/jobs_en.html.

DJI 招软件工程师啦,based在深圳,如果你想和我们一起把DJI产品做得更好,请发送简历到 [email protected]. 详情请浏览 https://we.dji.com/zh-CN/recruitment.

mobile-uxsdk-ios's People

Contributors

alainpimentel avatar dji-dev avatar neoxzy avatar oliverou avatar shane-dji avatar slozo avatar talobin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mobile-uxsdk-ios's Issues

How Translate the Labels from UILibrary

Hi Everyone,

I am developing a App using the UILibrary in my country (Brazil) and I need to translate each text to Portuguese (PT).

Is there a way to make the Localization easier in that Library ?

Thanks.

Set "App Output Mode" with HDMI

iOS UXSDK 4.5.1
iOS SDK 4.5.2
iPad mini 4
M600 Pro
Lightbridge 2

I want to know how to set "App Output Mode" with HDMI.

In DJIGo4 app, I can see video preview with "EXT port disabled" and "App Output Mode == HDMI" configuration.
But I can't see video preview with Mobile-UXSDK-iOS sample code.

I found a trick that is..

  1. Open the sample app. and click in to the "DefaultLayoutView".
    I can't see video preview at this point!
  2. Open the DJI Go App. and change the "EXT port disabled" and "App Output Mode == HDMI"
    (bandwidth is also set HDMI 100%)
  3. Switch back to the sample app.
    then I can see the video preview!.

So, I want to know,

  1. How to set the App Output mode with HDMI.
  2. Is there UX lib. for configuring Lightbride2 like DJIGo app. has.

DUXStatusBarViewController remaining time setting 00:00 when grounded

DJI go 4 app shows remaining time as --:-- when drone grounded.
43871390-3ecdd4b8-9b31-11e8-8f78-a2dedab27daf

But when I use DUXStatusBarViewController, it shows 00:00 which is incorrect.
43871381-31ed21e0-9b31-11e8-8e1e-5c643efd09fe

Is there anyway to set remaining fly time as --:-- when drone grounded just like DJI go 4 app ?

Any help would be appreciated.
Thanks

Bug click On button DULRecordVideoWidget does not work. Just drag it.

  • Description of the issue.
    If you create a button such as DULRecordVideoWidget does not work click on it, just click and drag to down.
  • Steps to reproduce the bug or crash issues(It would be great if you can provide this)
    There is a video to explain it better: Link Vídeo
  • DJI iOS UILibrary version:
    DJI UI Library version 4.3
    DJI SDK 4.3
  • DJI Product you are using (Like Phantom 4, Mavic Pro, etc)
    Phantom 4, DJI Inspire 1, Matrice 100.
  • iOS system version you are using (Like iOS 8.3, iOS 9, etc)
    iOS 10 and 11
  • iOS device type you are using (Like iPhone5s, iPhone 6, iPad Air Wifi, iPad mini 3 LTE, etc)
    iPhone 6, 6s and iPad
  • Xcode version you are using (Like Xcode 8.0)
    Xcode 9
  • Are you using UILibrary Sample Code (Yes/No)?
    No

Thanks.

DUX 汉化

比如 DUXPreflightChecklistController 使用简单,但是只有英文界面,怎么设置为中文界面

DULExposureSettingsController crash with DJI SDK 4.1

Am curious if the current UI library (4.0.1.1.0.0) is compatible with SDK 4.1. Most of the widgets work but when using the DULExposureSettingsController we get the following error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[DJICameraCapabilities sharedInstance]: unrecognized selector sent to class 0x107bd2578'

To verify this all I did was update the UI Lib swift project podfile to this:

#platform :ios, '9.0'

target 'UILib Sample' do
pod 'DJI-SDK-iOS', '~ > 4.1'
pod 'DJI-UILibrary-iOS', '~ > 4.0.1.1.0.0'
end

Whenever trying to access the "Panels and Collections" view it immediately crashes with the error above.

Do we need to wait for an update to the UI library or is there a workaround in the interim?

Thank you.

IB Designables: Failed to render and update auto layout status for ViewController

We are seeing the following error in Xcode 9.1, but not in Xcode 9.0:

/Base.lproj/Main.storyboard: error: IB Designables: Failed to render and update auto layout status for ViewController (BYZ-38-t0r): dlopen(DJIUILibrary.framework, 1): Library not loaded: @rpath/DJISDK.framework/DJISDK
Referenced from: DJIUILibrary.framework
Reason: image not found

This error prevents our view controller in the storyboard from updating. All we see are white boxes as shown in the image below:

screenshot 2017-11-10 11 03 38

This makes it very difficult to do layout since we have no preview. It's not the end of the world and we can work around it, but appears to be an imcompatibility with Xcode 9.1. We can still build and run our project.

Here is the error from the issue navigator:

screenshot 2017-11-10 11 06 45

We've been trying to find a workaround but no luck yet. Does anyone have any ideas on how to resolve this?

OSMO PRO support

SDK 4.5.2

DUXDefaultLayoutViewController
DUXExposureSettingsMenu
DUXCameraSettingsMenu

The camera and menu settings doesn't work when I connect an OSMO PRO X5 device.
The X5 camera and menu settings works perfect when I connect an Inspire 1 with X5.

OSMO PRO and X5 on the latest FW

The Status Bar remains on CAN NOT TAKE OFF
This could be fixed to READY TO SHOOT when an OSMO device is connected.

DUXExposureSettingsMenu is not working

DUXExposureSettingsMenu is not working

  1. DUXExposureSettingsMenu widget is not working as a standalone widget when adding it from the code (addWidget()) or interface builder.
  2. iOS UXSDK 4.6
  3. DJI Phantom 4
  4. It's not working on the ios versions starting from the ios 10 (this is what we tried)
  5. We are testing this on iPhone 6s
  6. Xcode 9.4.1
  7. We tried to check the functionality of this widget in the provided sample code - UXSDKDemo, but that widget is only working when using the DUXDefaultLayoutViewController and not as the standalone widget added in the interface builder or in the code.

DUXCameraConfigStorageWidget autolayout errors

Using DUXCameraConfigStorageWidget with auto-layout constraints and without causes constant autolayout errors when capturing photos or video. This widget should automatically size correctly without triggering auto layout errors.

Steps to reproduce
In an Xcode storyboard, place a UIView and give it the custom class DUXCameraConfigStorageWidget. Run the application and have the aircraft record video or photo, and observe the autolayout errors printing in the log and hanging the debugger (if you have a breakpoint set).

[LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x1c829fd10 h=&-- v=&-- DUXCameraConfigStorageWidget:0x11be8fd40.width == 197 (active)>",
"<NSLayoutConstraint:0x1c8489ab0 DUXCameraConfigStorageWidget:0x11be8fd40.width == 149 (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1c8489ab0 DUXCameraConfigStorageWidget:0x11be8fd40.width == 149 (active)>

Environment

  • DJI UX SDK 4.6
  • DJI UI SDK 4.6.1
  • Xcode 9 or 10
  • Any Device
  • Any iOS

SDK 4.8 is broken - does not connect to aircraft at all

DJI UX SDK 4.8 seems to be broken.

Working on an app that uses SDK v 4.7.1 (installed as recommended, using Cocoapods) to perform some readings from the Vision and ultrasonic sensors, while using UX SDK 4.7.1 and DJIWidget 1.1 to provide FPV & configuration & status to the app, by using DUXDefaultLayoutViewController as a child of a Container View. Works fine, as expected, while connected to a Phantom 4 Pro v2, by using an iPad Air with iOS 12.1 . The project itself is built using Xcode 10.1 .

Upon migrating to (UX) SDK v 4.8, as well as DJIWidget 1.2, the app suddenly stops working - no FPV, sensors are no longer giving any output - the red indicator that signals that there is no Vision sensor output is always on - , and there is a permanent red triangle shown on at the top right side of the screen. The menu at the checklist does not report anything wrong. When running DJI Go 4, the app doesn't report anything wrong with the aircraft, either.

Went back to (UX) SDK v 4.7.1, while keeping DJIWidget 1.2, and the app starts working again as expected.

If required, I can provide a minimal build of my app to reproduce the issue.

Black Screen using iOS 11 and iPhone 6-7

Hi,

After updating our iPhones (iPhone 6 and 7 so far) to iOS 11, and using the SDK version 4.3 and 4.3.1, when we connect the drone to the phone, we get a black image for around 40 seconds or a minute before we can actually see what the drone is seeing.
Please let me know if you need more info.

Thanks

Unable to compile sample Swift project - duplicate output files for DJICalibratePixelBufferProvider.h

The SwiftSampleCode project is not able to be compiled in Xcode 10b6 (based on 0258b3c), because there are multiple references to DJICalibratePixelBufferProvider.h within the workspace.

  1. Sample Code/DJIWidget/DJIWidget/VideoPreviewer/Helper/ImageCalibrate/PixelBufferProvider/DJICalibratePixelBufferProvider.h
  2. Sample Code/DJIWidget/DJIWidget/VideoPreviewer/Helper/ImageCalibrate/DJICalibratePixelBufferProvider.h

Latest UXSDK-ios Build Issue (Xcode 10)

When I pull the latest UXSDK-ios, and try to build in Xcode 10, the DJIWidget "blows up" with 99 warnings and a link error: "Undefined symbols for architecture x86_64"
Any help in getting past this would be greatly appreciated. Thanks.

App crash after add UI library to Podfile

I add pod ‘DJI-UILibrary-iOS’, '~> 4.2’ to my Podfile, run pod install and launch the app without any other code changes. The app crashed with information:

dyld: Library not loaded: @rpath/VideoPreviewer.framework/VideoPreviewer
  Referenced from: /private/var/containers/Bundle/Application/8DDEB1E6-4E6E-4FE0-B5A1-99765DFB9548/gridrone.app/Frameworks/DJIUILibrary.framework/DJIUILibrary
  Reason: image not found

DUXRemoteControlSignalWidget not working correctly when connected to Spark

Issue:
DUXRemoteControlSignalWidget shows incorrect value (no signal, all the time) when the app is connected to Spark drone.
When connected to other drone: Phantom 3, the widget works ok. I was not able to test this issue on other devices.
DJIAirLink (through DJIAirLinkDelegate) return correct signal strength.

Workspace

  • DJI iOS SDK v 4.6.1 / DJI iOS UX SDK v 4.6
  • iOS 11.3

Steps to reproduce

  • Use one of the sample apps connecting with DJI drone
  • Create (or use existing) UIViewController and place DUXRemoteControlSignalWidget in its view
  • Run the app, connect to Spark and observe value the widget displays

Request for Add/Remove Widget Example for Demo Project

DJI Team, thank you for the Mobile UILibrary on iOS. I really appreciate this open source project.

I do have a question. I would like to use the DULDefaultLayoutViewController and customise it by adding or removing widgets. How can I do that without having to create my own view and subclassing the widget elements?

更新4.8.1版本失败

[!] Error installing DJI-UXSDK-iOS
[!] /usr/bin/curl -f -L -o /var/folders/8s/7f9fq73n22b8sjhz99s066k00000gn/T/d20181220-37940-1aa2owt/file.zip https://d25c7cswk6ji38.cloudfront.net/ios_sdk/iOS_UXSDK_4.8.1_181116.zip --create-dirs --netrc-optional --retry 2

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:30 --:--:-- 0
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to d25c7cswk6ji38.cloudfront.net:443

Symbol not found: _DJIAircraftModelNameMavicAir

I have written an iOS app that uses DJIUXSDK. While the app compiles with no issues, when running the app on an iPhone running iOS 12 I run into the following issue on startup:

dyld: Symbol not found: _DJIAircraftModelNameMavicAir
Referenced from: /private/var/containers/Bundle/Application/2DC60CC8-8564-45AD-8EBC-6F692E8A2BCC/Telemetric.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
Expected in: /private/var/containers/Bundle/Application/2DC60CC8-8564-45AD-8EBC-6F692E8A2BCC/Telemetric.app/Frameworks/DJISDK.framework/DJISDK
in /private/var/containers/Bundle/Application/2DC60CC8-8564-45AD-8EBC-6F692E8A2BCC/Telemetric.app/Frameworks/DJIUXSDK.framework/DJIUXSDK

Any ideas,
John

[MAJOR BUG] Camera snap sound repeats (retain cycle?)

Hi DJI, this is a major bug and I hope we can resolve this issue asap.
To recreate this problem, simply run the demo project of Mobile-UILibrary-iOS. Of course, make sure you are registered with the DJISDKAppKey and match it with the Bundle ID. Oh and make sure the drone is connected to the Drone remote controller. And make sure the Drone remote controller to connected to the Device (iPhone, iPad).

After the App registered successfully, go into any camera view take a photo. Press back. Then go into any camera view again, then take a photo. There you go. The issue. You can hear two camera shutter sound.

To make this problem more clear, press back, go into any camera view take a photo. Then you should hear three camera shutter sound playing almost concurrently one after another.

To make this problem even clearer, press back, go into any camera view take a photo. Then you should hear four camera shutter sound player playing almost concurrently one after another.

Please kindly help us fix this major issue.
Thank you.

Mobile-UILibrary-iOS 4.3.
DJI SDK iOS: 4.3.2
iOS: 11
Device: iPhone 7
Drone: Mavic Pro

But I think this problem should show up regardless of the Device, iOS, or Drone.

I think it is mainly the Mobile UILibrary iOS 4.3.

Checklist show IMU Status always "Error" with the Spark

  • Description of the issue.
    in the sample app the DULPreFlightStatusWidget always show error.. and checking the DULPreflightChecklistController say "Error" on the IMU status.
    connecting the same spark to DJI GO4 app without rebooting the spark, it show IMU status "Normal".
    Tried several time to calibrate the IMU but it's always Error in the sample app , and it's always "normal" in DJI GO4

  • Steps to reproduce the bug
    just connect the spark to the sample app (with or without the remote)

  • DJI iOS UILibrary version
    UILibrary 4.4

  • DJI Product
    Spark
    (tried with a Mavic everything look OK)

  • iOS system version
    iOS11

  • iOS device type you are using (Like iPhone5s, iPhone 6, iPad Air Wifi, iPad mini 3 LTE, etc)
    iPhone 5s
    iPhone X

  • Xcode version
    xcode 9

  • Are you using UILibrary Sample Code (Yes/No)?
    using the sample code and the UI library in my code

iPhone X support

Is this issue about bugs or crash issues of DJI iOS UILibrary and Sample Code?

Yes,

Yep, then please delete this template and provide the following infos for us to help investigate the issue:

iPhone X UI support

simulator screen shot - iphone x - 2017-10-06 at 12 21 11

Does DULRemainingFlightTimeWidget Work?

We are trying to get DULRemainingFlightTimeWidget working in our app and it doesn't seem to render anything. We are currently using a UIView with a custom class of DULRemainingFlightTimeWidget but whenever testing either bridged or connected directly to the aircraft it doesn't render anything. We are using UILibrary 4.0.1.1.0.0 with Phantom 4 and Mavic Pro. iOS devices we've tested with are iPhone 6 and iPad Mini as well as simulated versions. Other widgets work just fine in our app. Any thoughts would be appreciated.

Thanks.

[UI BUG] Please Fix UILibrary Orientation UI Bug

Hi DJI,
I found found this bug? I am not sure if this is a bug but when the device is in the portrait orientation the collection looks unpleasant because all the text are squished together. I think it should look like the one when the device is in the portrait orientation.

Is this a bug? If not, how can I make it so that the camera view looks like the one during portrait orientation when I am in the landscape orientation?

Landscape

Portrait

Thanks to the DJI Team for the support as always [:

SDK 4.7 crashes on launch when FFmpeg library can't be loaded

I updated to the newest SDKs (4.7) via CocoaPods and now the app crashes on launch with this error (Xcode 9.4.1):

dyld: Library not loaded: @rpath/FFmpeg.framework/FFmpeg
  Referenced from: /private/var/containers/Bundle/Application/D650DC16-B7C8-440B-9011-029B7E421C71/SharperShape.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
  Reason: image not found
(lldb) 

Add Widget to DULStatusBarViewController make icon bigger than others.

I would like add some other Widgets on StatusBarViewController from UILibrary but that is bigger than others even change the frame.

Here is my code below to add the widget:
"ViewWillAppear":
self.statusBarVC.addWidget(DULRemoteControlSignalWidget(frame: CGRect(x: 0, y: 0, width: 63, height: 25)))
self.statusBarVC.statusBarView?.reloadData()

I am using:
DJI-SDK-iOS, 4.3
DJI-UILibrary-iOS, 4.3
Xcode 9
Device tested 10 and 11

There is a image to make easier understand my problem below.
img_0167

Thanks to made this Library for us.

Crash on opening app, can't find FFmpeg image

We're having a lot of issues with the FFmpeg binary, and we can't get DJIWidget or DJI-UXSDK-iOS to load or run via cocoapods.
I've created a demo project from the default single view template using swift (We work in dual Swift/Obj-c), I only added the cocoapods to the default setup.

https://github.com/valentary/DJISDKTest

we get a crash on startup, with the following error message in the console:

dyld: Library not loaded: @rpath/FFmpeg.framework/FFmpeg
  Referenced from: /private/var/containers/Bundle/Application/4EADFE33-2EEC-42CC-B450-DD30DBA92CE9/DJISDKTest.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
  Reason: image not found

Checklist show pending on a Matrice during corners

One of my users is reporting issues with the preflight checklist, screenshots included below. In my app it can open at anytime.

During a flight it looks like this:
during flight

During a flight in a corner it looks like this:
during flight corners

Symbol not found: _DJISupportedCameraPhotoShootModeRange

Finally, the UILibrary. However i encounter this issue when trying to build "dyld: Symbol not found: _DJISupportedCameraPhotoShootModeRange". I added the Library using cocoapod, I'm writing my app in Objective-C, any idea how to solve this? Thank you.

DULAircraftBatteryTemperatureChecklistItem Issues

First of all, the header file for this DULAircraftBatteryTemperatureChecklistItem CheckListItem is missing in the library.

To solve it, I added the following header in the library : DULAircraftBatteryTemperatureChecklistItem.h
`
#import "DULPreflightChecklistItem.h"

@interface DULAircraftBatteryTemperatureChecklistItem : DULPreflightChecklistItem

@EnD
`

Furthermore, if we try to remove this item from the DefaultCheckList, the application crashes.
This issue is really annoying for people using A3+LB2 without DJI batteries because if we don't remove this CheckListItem, the item remains in PendingState and, the complete PreflightCheckList remains also in Pending State.

This is only valid for this item. Others items can be removed from the DefaultCheckList without problem. It seems that some Listeners are not properly removed from the component when the component itself is removed from the list.

This is the code crashing the app.
if (item is DULAircraftBatteryTemperatureChecklistItem) { item.stopChecking() DULPreflightChecklistManager.default().remove(item) }
Could you please provide us a fix or provide us the library code to fix this issue ourself?

UILibrary used version is 4.2.2
IOS: 10.3.3 on Ipad
Software Language: Swift 3
XCode: 8.3.3

DULBatteryWidget is not working for non-DJI battery used with A3 flightController

DULBatteryWidget is not working for non-DJI battery used with A3 flightController.
But the battery level is correctly displayed with non-DJI battery on the official DJI-GO App.
Would it be possible to solve this issue?

DJI iOS UILibrary version: iOS UILibrary 4.0.1.1.0.0 & 4.1.1
DJI Product: A3 FlightController with DJI Lightbridge 2
iOS system version : 10.3.2
iOS Device type: iPad Pro 9.7 inch
Xcode version: 8.3.3
Are you using UILibrary Sample Code: YES

Hide map that now shows in 4.3

Hi,
I just updated the library from 4.2 to 4.3 and there is a map in one corner of the screen that I am not sure how to hide, are there any docs about how to hide this?

Thanks

Removing widgets from the status bar crashes the app with an NSRangeException

When we remove widgets from the status bar like this
` if let batteryWidget = self.statusViewController?.widget(with: DULBatteryWidget.self) {
self.statusViewController?.removeWidget(batteryWidget)
}

    if let visionWidget = self.statusViewController?.widget(with: DULVisionWidget.self) {
        self.statusViewController?.removeWidget(visionWidget)
    }
    
    if let connectionWidget = self.statusViewController?.widget(with: DULConnectionWidget.self) {
        self.statusViewController?.removeWidget(connectionWidget)
    }

the app crashes sometimes at startup with the following exception:
Fatal Exception: NSRangeException
0 CoreFoundation 0x182aa7d38 __exceptionPreprocess
1 libobjc.A.dylib 0x181fbc528 objc_exception_throw
2 CoreFoundation 0x182aa7c80 -[NSException initWithCoder:]
3 Foundation 0x1833986e4 -[NSRLEArray objectAtIndex:effectiveRange:]
4 Foundation 0x1833b4288 -[NSConcreteMutableAttributedString addAttribute:value:range:]
5 DJIUILibrary 0x103c53284 (Missing)
6 DJIUILibrary 0x103c53098 (Missing)
7 DJISDK 0x103304008 (Missing)
8 libdispatch.dylib 0x18242d088 _dispatch_call_block_and_release
9 libdispatch.dylib 0x18242d048 _dispatch_client_callout
10 libdispatch.dylib 0x182439b74 _dispatch_main_queue_callback_4CF$VARIANT$mp
11 CoreFoundation 0x182a4ff20 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
12 CoreFoundation 0x182a4dafc __CFRunLoopRun
13 CoreFoundation 0x18296e2d8 CFRunLoopRunSpecific
14 GraphicsServices 0x1847fff84 GSEventRunModal
15 UIKit 0x18bf1a880 UIApplicationMain
16 QualiticsInspector 0x102e6553c main (AppDelegate.swift:16)
17 libdyld.dylib 0x18249256c start
`
Could you please have a look on this issue and provide us a fix for it?

IOS 11
XCode 9
Ipad.
SDK-IOS: 4.3.1
IOS-UILibrary: 4.3

Can't get Mobile-UXSDK-iOS to build in non bitcode and framework environment

I'm trying to get an FPV view, but the SDKs confound me at every step.

We're running in a cocoapods environment, ultimately the SDKs will be dependents of another cocoapod.
We do not use Bitcode.
We use use_frameworks! for dynamic frameworks and we're in a dual Swift/Obj-c environment.
I've tried using DJIWidget but we can't get that to load either (I'll make a seperate issue).

So, 1st Problem, I created a empty demo project here : https://github.com/valentary/DJISDKTest
It's a default single view swift project, all I did was to configure the podfile and run pod install.
If we try and build we get a link error :
ld: '<home_dir>/DJISDKTest/DJISDKTest/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '<home_dir>/DJISDKTest/DJISDKTest/Pods/DJI-SDK-iOS/iOS_Mobile_SDK/DJISDK.framework/DJISDK' for architecture arm64

This only happens if I include the DJI-UXSDK-iOS pod. We don't want bitcode anyway, so I'm a bit unclear why it's asking for it.

iPhone gets too hot when flying drone

Hi,
Is there a way to prevent the iPhone from getting too hot when flying the drone? Right now it gets very very hot after 10 or more minutes.

using:
DJI SDK 4.3, 4.3.1UI and latest version of the VideoPreviewer

Thanks

4.7.1升级到4.8.1之后运行闪崩(组件化开发)

dyld: Library not loaded: @rpath/DJIWidget.framework/DJIWidget
Referenced from: /private/var/containers/Bundle/Application/041A9035-F827-41A7-8A06-BDB7B914367A/YZKFlyControl_DJ_Example.app/Frameworks/DJIUXSDK.framework/DJIUXSDK
Reason: image not found

旧版本使用正常

Incorrect license comments in VideoPreviewer/VideoFrameExtractor.h and .m ?

The LICENSE.txt file states that Sample code is offered under MIT License, however the sample VideoPreviewer's VideoFrameExtractor.h and .m files contain comments that it is LGPL code from iFrameExtractor.

However, based on a diff of these files against the iFrameExtractor files it appears VideoFrameExtractor is completely different from iFrameExtractor, so unless iFrameExtractor is being linked in via .a files, which I don't see, the comments in your source code may be incorrect.

Please delete the incorrect comments or update your license file.

This is important for anyone wanting to use this sample code in a published app as we need to correctly attribute any open source that we use in our own licenses.

DUXFocusTargetWidget bug

When I try to tap the Video Previewer to change the focus point in the AF mode, the DUXFocusTargetWidget is not showed in the view.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.