                 if CLLocationCoordinate2DIsValid(commLoc) {
                     let commWayPoint: DJIWaypoint = DJIWaypoint(coordinate: commLoc)
                     commWayPoint.altitude = ALTITUDE
-                    self.mission.add(commWayPoint)
-                }
-                
+                    self.waypointMission.add(commWayPoint)
+                }
                 // 5 mission paramenter always needed
-                self.mission.maxFlightSpeed = 2
-                self.mission.autoFlightSpeed = 1
-                self.mission.headingMode = DJIWaypointMissionHeadingMode.auto
-                self.mission.flightPathMode = DJIWaypointMissionFlightPathMode.curved
-                mission.finishedAction = DJIWaypointMissionFinishedAction.noAction
+                self.waypointMission.maxFlightSpeed = 2
+                self.waypointMission.autoFlightSpeed = 1
+                self.waypointMission.headingMode = DJIWaypointMissionHeadingMode.auto
+                self.waypointMission.flightPathMode = DJIWaypointMissionFlightPathMode.curved
+                waypointMission.finishedAction = DJIWaypointMissionFinishedAction.noAction
                
                 //prepare mission
-                prepareMission(missionName: self.mission)
+                prepareMission(missionName: self.waypointMission)
             }
         }
     }

    //store coordinate that uses to create waypoint mission
    var waypointList: [DJIWaypoint] = []
    
    var waypointMission: DJIWaypointMission = DJIMutableWaypointMission()
    var mission = DJIMutableWaypointMission()
    
    var customMission: DJICustomMission? = nil
    var missionSetup: Bool = false
    var deltaProcess: CGFloat = 0

        
    }
    func checkProductConnected() {
        //Display conneciton status
        if ConnectedProductManager.sharedInstance.product != nil {
            connectionStatus.text = "Connected"
