pyaidrone 1.7__py3-none-any.whl → 1.8__py3-none-any.whl

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.

pyaidrone/ikeyevent.py CHANGED
@@ -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
@@ -1,10 +1,10 @@
1
1
  pyaidrone/__init__.py,sha256=LTT-ZpL6vrKdC5t0O71pJnk3zMhDf1eXkNmoLoIRupo,19
2
2
  pyaidrone/aiDrone.py,sha256=gGkD6MdcGmXDPxg02AGmpEO8uvqTusJ9g56HUctNWyY,7458
3
3
  pyaidrone/deflib.py,sha256=ZeA_qfnhuXEIhJHUMNSKkCkBEaWuoIS5X7ZqjTo9Sx4,735
4
- pyaidrone/ikeyevent.py,sha256=XSWCQjByvD5FswdOb2JSviaMlJO69IGnvbDWsDC1mG0,3140
4
+ pyaidrone/ikeyevent.py,sha256=-F5FJk0nJOH6FHmVXctqh9gidR3G0jDCs7M7F7cUyts,3429
5
5
  pyaidrone/packet.py,sha256=h02k9dMUhP4oyEBaDuJ9L9HdutfZE_znreBmPOfTLog,813
6
6
  pyaidrone/parse.py,sha256=XKfAVLo0nlciaxxFwui8CJIaB5B3ZGWF1L6zyfXICoA,1376
7
- pyaidrone-1.7.dist-info/METADATA,sha256=3ztdm0ag7IUXBitcX9mReSXusryvinJzwKpsg_BANuw,593
8
- pyaidrone-1.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
9
- pyaidrone-1.7.dist-info/top_level.txt,sha256=YLnJwG3F2TdfFcg6r7jcx02fekcXHF_GC0nv12hJGT8,10
10
- pyaidrone-1.7.dist-info/RECORD,,
7
+ pyaidrone-1.8.dist-info/METADATA,sha256=Yf1fUSL2Yt2aukCSWHFlebHyYfE4LHIHCvE04cyFMQc,593
8
+ pyaidrone-1.8.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
9
+ pyaidrone-1.8.dist-info/top_level.txt,sha256=YLnJwG3F2TdfFcg6r7jcx02fekcXHF_GC0nv12hJGT8,10
10
+ pyaidrone-1.8.dist-info/RECORD,,