Giter Club home page Giter Club logo

ios-simulatordemo's People

Contributors

dji-dev avatar oliverou avatar

Stargazers

 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

ios-simulatordemo's Issues

Unable to execute DJIGoToStep mission using DJICustomMission in Simulator Mode

I am using DJI Phantom 3
-DJI SDK 3.5
-iPad
I am unable to start DJIGoToStep mission using Simulator mode is ON .I am using following code:-

    if let flightController = DroneUtility.fetchFlightController(){
        if CLLocationCoordinate2DIsValid(self.droneLocationCoordinate) {
         self.min_height = proxy.sharedProxy().getAltitudeDictionary(arrTemp: zoneCreateModal.zones).object(forKey: "minimum_height") as! Float
            self.takeOffCoordinates = self.droneLocationCoordinate
           
            let max_height = proxy.sharedProxy().getAltitudeDictionary(arrTemp: self.zoneCreateModal.zones).object(forKey: "maximum_height") as! Float
            let stepsToGo = DJIGoToStep.init(coordinate: self.droneLocationCoordinate, altitude: self.min_height)
            let customMission = DJICustomMission.init(steps: [stepsToGo!])
            DJIMissionManager.sharedInstance()!.prepare(customMission!, withProgress: { (value) in
            }, withCompletion: { (error) in
                if error?.localizedDescription.characters.count > 0{
                    proxy.sharedProxy().displayStatusCodeAlert("Error: \(error!.localizedDescription)")
                }else{
                    DJIMissionManager.sharedInstance()!.startMissionExecution(completion: { (error) in
                        if error?.localizedDescription.characters.count > 0{
                            proxy.sharedProxy().displayStatusCodeAlert("Error: \(error!.localizedDescription)")
                        }else{
                         proxy.sharedProxy().displayStatusCodeAlert("Take off succeeded...")
                            flightController.setFlightOrientationMode(.courseLock, withCompletion: { (error) in
                                if error?.localizedDescription.characters.count > 0{
                                }else{
                                    //Set maximum flight height
                                    proxy.sharedProxy().displayStatusCodeAlert("Maximum : \(max_height)")
                                    flightController.flightLimitation?.setMaxFlightHeight(max_height, withCompletion: nil)
                                    
                                    }
                            })
                        }
                    })
                }
            })
            
        }else{
            proxy.sharedProxy().displayStatusCodeAlert("Error: Unable to fetch current location")
        }
    }else{
        proxy.sharedProxy().displayStatusCodeAlert("Please connect drone")
    }

DJI SDJ 3.3 version using cocoa pods not working with Swift 3 Xcode project

I have used DemoUtility.h/DemoUtility.m file and installed DJI sdk 3.3 in my swift 3 project .I have used DemoUtility class which in objective c provided by your demo project but your iOS-Simulator project is working fine easily connected with Remote controller of drone.But when i used same sdk but intalled using cocoapods in my Swift 3 project it cannot register the app.Please provide some info as soon as possible.

Simulator is not started

  • DJI-SDK-iOS (4.5.2)
  • DJI-UXSDK-iOS (4.5.1)
  • M600 Pro(F/W 3.2.41.13)
  • LightBridge 2
  • iPad mini 4

When I click the "Start Simulator" button, it's starting is failed and it returns following message.

Star simulator error: Error Domain=DJISDKErrorDomainCode=-1003 "Execution of this process has timed out(code:-1003)" UserInfo={NSLocalizedDescription=Execution of this process had timed out(code:-1003)}

无法安装4.0.1

!] Unable to satisfy the following requirements:

  • DJI-SDK-iOS (~> 4.0.1) required by Podfile

None of your spec sources contain a spec satisfying the dependency: DJI-SDK-iOS (~> 4.0.1).

You have either:

  • out-of-date source repos which you can update with pod repo update.
  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.

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.