pymammotion 0.4.43__py3-none-any.whl → 0.4.44__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.
@@ -2,8 +2,17 @@
2
2
  from abc import ABC
3
3
 
4
4
  from pymammotion.mammotion.commands.abstract_message import AbstractMessage
5
- from pymammotion.proto import (LubaMsg, MsgAttr, MsgCmdType, MsgDevice, MulSetAudio, MulSetWiper, SocMul,
6
- MUL_SEX, MUL_LANGUAGE)
5
+ from pymammotion.proto import (
6
+ MUL_LANGUAGE,
7
+ MUL_SEX,
8
+ LubaMsg,
9
+ MsgAttr,
10
+ MsgCmdType,
11
+ MsgDevice,
12
+ MulSetAudio,
13
+ MulSetWiper,
14
+ SocMul,
15
+ )
7
16
 
8
17
 
9
18
  class MessageMedia(AbstractMessage, ABC):
@@ -36,4 +45,4 @@ class MessageMedia(AbstractMessage, ABC):
36
45
  # 2
37
46
  return self.send_order_msg_media(SocMul(set_wiper=MulSetWiper(round=round_num)))
38
47
 
39
- # TODO add lamp methods
48
+ # TODO add lamp methods
@@ -3,7 +3,7 @@ from abc import ABC
3
3
  import time
4
4
 
5
5
  from pymammotion.mammotion.commands.abstract_message import AbstractMessage
6
- from pymammotion.proto import LubaMsg, MsgAttr, MsgCmdType, MsgDevice, MulCameraPosition, MulSetVideo, SocMul
6
+ from pymammotion.proto import LubaMsg, MsgAttr, MsgCmdType, MsgDevice, MUL_CAMERA_POSITION, MulSetVideo, SocMul
7
7
  from pymammotion.utility.device_type import DeviceType
8
8
 
9
9
 
@@ -24,6 +24,6 @@ class MessageVideo(AbstractMessage, ABC):
24
24
  return luba_msg.SerializeToString()
25
25
 
26
26
  def device_agora_join_channel_with_position(self, enter_state: int):
27
- position = MulCameraPosition.ALL if DeviceType.is_yuka(self.get_device_name()) else MulCameraPosition.LEFT
27
+ position = MUL_CAMERA_POSITION.ALL if DeviceType.value_of_str(self.get_device_name()).get_value() == DeviceType.LUBA_YUKA.get_value() else MUL_CAMERA_POSITION.LEFT
28
28
  mctl_sys = SocMul(set_video=MulSetVideo(position=position, vi_switch=enter_state))
29
29
  return self.send_order_msg_video(mctl_sys)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymammotion
3
- Version: 0.4.43
3
+ Version: 0.4.44
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: Michael Arthur
@@ -61,12 +61,12 @@ pymammotion/mammotion/commands/abstract_message.py,sha256=C1teY4Bd_BpBhAWWzKokoe
61
61
  pymammotion/mammotion/commands/mammotion_command.py,sha256=3OFXQjF7HFwPd_j6utHVI2Kfwh7t6_6ff_9MKAWGTlk,2570
62
62
  pymammotion/mammotion/commands/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  pymammotion/mammotion/commands/messages/driver.py,sha256=LAYGvAcDDXwwliQ1OfRwNBk1VpIdpURo1TlA64zpLA4,3701
64
- pymammotion/mammotion/commands/messages/media.py,sha256=eMjiyO03qCX9IZRdONVQ6f9v1gkfZlSpDo3Fm-NOWpQ,1457
64
+ pymammotion/mammotion/commands/messages/media.py,sha256=a6CY_1wEpepH9zg6-HfH1lt-jtC1sFy8hm7tFRgzlG4,1493
65
65
  pymammotion/mammotion/commands/messages/navigation.py,sha256=aEEpvDW5QukJ0QiWMhPjjz0eTTF1ndQuvv8a6hJlUg0,23257
66
66
  pymammotion/mammotion/commands/messages/network.py,sha256=oO3PK6TKY563Jw-ZRpNmIzGCgkuk2SQm0BhcDL5claM,7595
67
67
  pymammotion/mammotion/commands/messages/ota.py,sha256=ZHLQRE5ETvLEIu2Vbj3m2XidIWT8uorYSHxkZd3pkRc,1376
68
68
  pymammotion/mammotion/commands/messages/system.py,sha256=P3ndyhvvJbYFjurwMi6LRObG4yTBlooZAxuwa4guYec,14813
69
- pymammotion/mammotion/commands/messages/video.py,sha256=Vn5F65ojr3chePBtfYjOg90EHmZnZyA-1t6U3XB1m6A,1189
69
+ pymammotion/mammotion/commands/messages/video.py,sha256=KN9Zj8h7EnVipVBOzHxWF4RXhU3MpueYe1GNErGHapg,1248
70
70
  pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
71
  pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
72
72
  pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
@@ -123,7 +123,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
123
123
  pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
124
124
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
125
125
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
126
- pymammotion-0.4.43.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
127
- pymammotion-0.4.43.dist-info/METADATA,sha256=g8yCTgzKLaBHe2ZhlVtfAvzgzM7fuMiR3FfMKGjtGXw,3878
128
- pymammotion-0.4.43.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
129
- pymammotion-0.4.43.dist-info/RECORD,,
126
+ pymammotion-0.4.44.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
127
+ pymammotion-0.4.44.dist-info/METADATA,sha256=UeCwaD1fOFYMoGxtIX8c_IsdXPW83oCg632WKK-Pn1M,3878
128
+ pymammotion-0.4.44.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
129
+ pymammotion-0.4.44.dist-info/RECORD,,