Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard event bug removed #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Tello_Video/tello_control_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,35 +312,35 @@ def updateDegreebar(self):

def on_keypress_w(self, event):
print "up %d m" % self.distance
self.telloUp(self.distance)
self.telloUp(self.distance_bar.get())

def on_keypress_s(self, event):
print "down %d m" % self.distance
self.telloDown(self.distance)
self.telloDown(self.distance_bar.get())

def on_keypress_a(self, event):
print "ccw %d degree" % self.degree
self.tello.rotate_ccw(self.degree)
self.tello.rotate_ccw(self.degree_bar.get())

def on_keypress_d(self, event):
print "cw %d m" % self.degree
self.tello.rotate_cw(self.degree)
self.tello.rotate_cw(self.degree_bar.get())

def on_keypress_up(self, event):
print "forward %d m" % self.distance
self.telloMoveForward(self.distance)
self.telloMoveForward(self.distance_bar.get())

def on_keypress_down(self, event):
print "backward %d m" % self.distance
self.telloMoveBackward(self.distance)
self.telloMoveBackward(self.distance_bar.get())

def on_keypress_left(self, event):
print "left %d m" % self.distance
self.telloMoveLeft(self.distance)
self.telloMoveLeft(self.distance_bar.get())

def on_keypress_right(self, event):
print "right %d m" % self.distance
self.telloMoveRight(self.distance)
self.telloMoveRight(self.distance_bar.get())

def on_keypress_enter(self, event):
if self.frame is not None:
Expand Down