def __init__(self, tello): self.tello = tello # self.joy = xbox.Joystick() # self.tello.connect() # self.tello.streamoff() # self.tello.streamon() self.orient = orient(self.tello) self.align_initial = align_initial(self.tello) self.skip_first = skip_first(self.tello) self.align_next = align_initial(self.tello) self.height = 180 #to change along with line 40
def __init__(self, tello): # Init pygame # Init Tello object that interacts with the Tello drone self.tello = tello self.telloEulerAngles = np.zeros((1, 3)) self.rcOut = np.zeros(4) self.R = np.zeros((3, 3)) self.PoseFlag = 1 self.ar = 0 self.ARmean = np.array([0]) self.ARqueue = np.zeros((7, 1)) self.telloPose = np.zeros((1, 3)) self.poseQueue = np.zeros((7, 3)) self.telloPoseVariance = np.zeros(3) self.telloPoseMean = np.zeros(3) self.telloPoseMean15 = np.zeros(3) self.cntErNrm = 0 self.cntError = np.array([0, 0, 0]) self.tello.TIME_BTW_RC_CONTROL_COMMANDS = 20 self.frameCenter = np.zeros((1, 2)) # variables for shelf passing self.trigger = 0 self.lastValue = 0 self.lastValue1 = 0 self.lastValue2 = 0 self.lastValue3 = 0 self.flag1 = 1 self.distanceFrmRect = 0 self.apprchFlowFlag = 0 self.passFromWindowModSccss = 0 #variables for aligning with the window self.alnFlowFlag = 0 self.alnFlowFlag2 = 0 self.centerCounter = 0 self.c = 0 # self.telloPose = np.array([]) # self.telloEulerAngles = EulerAngles self.orient = orient(self.tello)
def __init__(self, tello): self.tello = tello self.starting = starting(self.tello) self.initial_yaw = self.tello.get_yaw() self.warehouse = warehouse_overall(self.tello) self.rect_pass = rect_pass(self.tello) self.after = after(self.tello) self.orient = orient(self.tello)
def __init__(self, tello): self.tello = tello # self.joy = xbox.Joystick() # print("nooooooooo") #self.left_right = left_right(self.tello) # print("yesssssssssssss") self.up_down = up_down(self.tello) # self.passing = passWin(self.tello) # self.after = after(self.tello) # print("outtttttttttttttt") self.orient = orient(self.tello) self.up = 0 self.right = 0 self.trig = 0
def __init__(self): self.tello = Tello() # self.joy = xbox.Joystick() self.tello.connect() self.tello.streamoff() self.tello.streamon() # print("nooooooooo") #self.left_right = left_right(self.tello) # print("yesssssssssssss") self.up_down = up_down(self.tello) # self.passing = passWin(self.tello) # self.after = after(self.tello) # print("outtttttttttttttt") self.orient = orient(self.tello) self.up = 0 self.right = 0 self.trig = 0
def __init__(self, tello): self.tello = tello self.txt_R = warehouse_R(tello) self.txt_L = warehouse_L(tello) self.orient = orient(self.tello)