dji-sdk / mobile-uxsdk-beta-ios Goto Github PK
View Code? Open in Web Editor NEWMobile iOS UXSDK Beta
License: MIT License
Mobile iOS UXSDK Beta
License: MIT License
Is there a plan to implement something similar to DUXDefaultLayoutViewController based on new SDK? Is there some kind of roadmap available?
self.showDetailViewController(DefaultLayoutViewController(), sender: self)
-> everything is ok.
self.show(DefaultLayoutViewController(), sender: self)
-> widget's viewWillAppear will never be called.
I am trying to integrate UX SDK with SwiftUI and have written some code to make it work, see code and screenshots on Stackoverflow: https://stackoverflow.com/q/67320963/1065468
The problem I am facing is as follows:
When I start the app through Xcode all is fine, the app starts, the connection icon turns green and the video feed is being shown.
But when I start the app by tapping the app icon on the phone directly, the connection icon stays red and there is also no video feed.
Any pointers to troubleshoot this are higly appreciated.
Hello,
I'm looking at the https://github.com/dji-sdk/Mobile-UXSDK-Beta-iOS/blob/master/UXSDKCore/UXSDKCore/Audio/DUXBetaAudioFilePCMParser.m to integrate into my application. What specific file is supposed to be passed to it? I've tried AIF and WAV files (Mono, 44.1KHz, 16bit PCM) to pace the data to the drone from the pcmParser callback but the audio in the drone is played too quick and choppy. Near double the rate of the original file. Any ideas on what I'm seeing? Thanks.
I have the following pods in Podfile for my project:
pod 'DJI-SDK-iOS', '> 4.14-trial1'
pod 'DJI-UXSDK-iOS', '> 4.14-trial1'
pod 'DJI-UXSDK-iOS-Beta', '> 0.3.0'
pod 'DJIWidget', '> 1.6'
Unfortunately, build fails with the errors:
Property 'isObstacleAvoidanceSensorInVerticalDirectionEnabled' not found on object of type 'DJIFlightAssistantObstacleAvoidanceSensorState *'; did you mean 'isVisualObstacleAvoidanceSensorInVerticalDirectionEnabled'?
Property 'isObstacleAvoidanceSensorsInHorizontalDirectionEnabled' not found on object of type 'DJIFlightAssistantObstacleAvoidanceSensorState *'; did you mean 'isVisualObstacleAvoidanceSensorsInHorizontalDirectionEnabled'?
Hello. I would like to know if I can access and create a video feed from the front camera (not the FPV camera) built in Inspire 2. In DJI GO it is possible.
Currently I have tried both primary and secondary video feed but nothing shows up.
I want to change fpvWidget.fpvView.backgroundColor,
but the fpvView is fileprivate.
How can I change the fpvView.backgroundColor?
Can I get the battery charge cycle count from SDK?
Thank you.
Currently when installing DJI-UXSDK-iOS-Beta
via cocoapods it depends on DJI-SDK-iOS
4.11. This means that projects which attempt to update to DJI-SDK-iOS
4.11.1 fail with the following error:
[!] CocoaPods could not find compatible versions for pod "DJI-SDK-iOS":
In Podfile:
DJI-SDK-iOS (= 4.11.1)
DJI-UXSDK-iOS-Beta (~> 0.1.1) was resolved to 0.1.1, which depends on
DJI-UXSDK-iOS-Beta-Core (= 0.1.1) was resolved to 0.1.1, which depends on
DJI-SDK-iOS (= 4.11)
Will there be an update to this before the main release or should we plan on having to work around this in the mean time?
M300RTK + UXSDK-Beta:
The current power can only be obtained when the Widget is created.
But during the flight, the remaining battery is not updated.
Hello all! Found issue.
If I remove FPV widget from one superview and insert it onto another, the image will be frozen.
This same trick works great with DUXFPVViewController
Demo Video https://monosnap.com/file/TymPUsxbwsVMMZu3HENDxtiKYPX9uH
private func configureMapAndFPVViews() {
// Initial position for video preview
addChild(fpvViewController)
movePreviewToSecondaryViewContainer(view: fpvViewController.view)
fpvViewController.didMove(toParent: self)
fpvViewController.view.subviews.first?.backgroundColor = .black // Fix gray borders
hideAdditionalControlsForFPVView()
// Initial position for map preview
addChild(mapViewController)
movePreviewToPrimaryViewContainer(view: mapViewController.view)
mapViewController.didMove(toParent: self)
}
// Move FPV widget to front
private func movePreviewToPrimaryViewContainer(view: UIView) {
movePreview(view: view, toContainer: primaryViewContainer)
view.isUserInteractionEnabled = true
}
private func movePreview(view: UIView, toContainer containerView: UIView) {
view.removeFromSuperview()
view.translatesAutoresizingMaskIntoConstraints = false
containerView.insertSubview(view, at: 0)
view.topAnchor.constraint(equalTo: containerView.topAnchor, constant: 0).isActive = true
view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor, constant: 0).isActive = true
view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor, constant: 0).isActive = true
view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor, constant: 0).isActive = true
}
We cannot transfer our for testing to pilots in TestFlight, because the validator finds the wrong value for CFBundleShortVersionString
Summary:
1 package(s) were not uploaded because they had problems:
/var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/6C703A03-7FDA-4D6C-8219-A62738692D52/1196876612.itmsp - Error Messages:
ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '4.14-trial1' in the Info.plist file at '${bundlePath}' must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring"
2020-12-23 22:32:39.867 altool[21700:69781] *** Error: Error uploading '/Users/vagrant/deploy/DroneUpApp.ipa'.
2020-12-23 22:32:39.867 altool[21700:69781] *** Error: code -18000 (ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '4.14-trial1' in the Info.plist file at '${bundlePath}' must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring")
Uploading IPA failed: exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.