             if error != nil {
                 self?.showAlertResult(info: "Max Height Error: \(error!.localizedDescription)")
             }
-
+            
         })
     }
     func setMaxFlightRadius(_ fc: DJIFlightController!) {

            })
        }
    }
    func runDirectionDistanceCommand(NSEW: Bool){
        //if the recongnition text matchesthe NSEW regex,then this method will execute
        if commands.count > 0 {
            for comm in commands {

                enableVirtualStickModeSaid()
            }
            //say "disable" to disable virtual stick mode
            if str == "disable" {
                disableVirtualStickModeSaid()
            }
            //say "execute" to executeMission
            if str == "execute" {
                executeMission()
            }
            
            // say "cancel" to cancel mission
            if str == "cancel" {
                cancelMissionSaid()
                VSMText.text = "Mission cancelled"
            }
            // say "stop" to stop mission
            if str == "stop" {
                pauseMissionSaid()
                VSMText.text = "Mission paused"
            }
            // say "resume" to resume mission
            if str == "resume" {
                resumeMissionSaid()
                VSMText.text = "Mission resume"
            }
            
            
            
        }
    }
