pyaidrone 1.7__tar.gz → 1.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyaidrone might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyaidrone
3
- Version: 1.7
3
+ Version: 1.8
4
4
  Summary: Library for AIDrone Products
5
5
  Home-page: http://www.ir-brain.com
6
6
  Author: IR-Brain
@@ -22,8 +22,10 @@ class IKeyEvent:
22
22
  self.keyLTurn = True
23
23
  if key == keyboard.KeyCode(char="d"):
24
24
  self.keyRTurn = True
25
+ if key == keyboard.KeyCode(char="r"):
26
+ self.keyRecording = True
25
27
  if key == keyboard.KeyCode(char="s"):
26
- self.keyPicture = True
28
+ self.keyPicture = True
27
29
  if key == keyboard.Key.esc:
28
30
  self.keyEsc = True
29
31
 
@@ -48,8 +50,10 @@ class IKeyEvent:
48
50
  self.keyLTurn = False
49
51
  if key == keyboard.KeyCode(char="d"):
50
52
  self.keyRTurn = False
53
+ if key == keyboard.KeyCode(char="r"):
54
+ self.keyRecording = False
51
55
  if key == keyboard.KeyCode(char="s"):
52
- self.keyPicture = False
56
+ self.keyPicture = False
53
57
  if key == keyboard.Key.esc:
54
58
  self.keyEsc = False
55
59
 
@@ -64,6 +68,7 @@ class IKeyEvent:
64
68
  self.keyGoDown = False
65
69
  self.keyLTurn= False
66
70
  self.keyRTurn = False
71
+ self.keyRecording = False
67
72
  self.keyPicture = False
68
73
  self.keyEsc = False
69
74
 
@@ -99,7 +104,10 @@ class IKeyEvent:
99
104
 
100
105
  def isKeyDPressed(self):
101
106
  return self.keyRTurn
102
-
107
+
108
+ def isKeyRPressed(self):
109
+ return self.keyRecording
110
+
103
111
  def isKeySPressed(self):
104
112
  return self.keyPicture
105
113
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyaidrone
3
- Version: 1.7
3
+ Version: 1.8
4
4
  Summary: Library for AIDrone Products
5
5
  Home-page: http://www.ir-brain.com
6
6
  Author: IR-Brain
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pyaidrone",
5
- version="1.7",
5
+ version="1.8",
6
6
  description="Library for AIDrone Products",
7
7
  long_description=open("README.md").read(), # README.md 내용을 long_description으로 사용
8
8
  long_description_content_type="text/markdown", # README 파일이 markdown 형식임을 지정
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes