Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extension MapViewController: DJISDKManagerDelegate {
- func appRegisteredWithError(_ error: Error?) {
- if let error = error {
- print(error.localizedDescription)
- } else {
- DJISDKManager.startConnectionToProduct()
- }
- }
- func productConnected(_ product: DJIBaseProduct?) {
- if let _ = product {
- if DJISDKManager.product()!.isKind(of: DJIAircraft.self) {
- let flightController = (DJISDKManager.product()! as! DJIAircraft).flightController!
- flightController.delegate = self
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment