pymammotion 0.4.0b8__py3-none-any.whl → 0.4.2__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.
Files changed (42) hide show
  1. pymammotion/bluetooth/ble_message.py +6 -7
  2. pymammotion/data/model/device.py +2 -7
  3. pymammotion/data/model/device_limits.py +4 -4
  4. pymammotion/data/model/hash_list.py +84 -10
  5. pymammotion/data/model/raw_data.py +1 -8
  6. pymammotion/data/state_manager.py +30 -10
  7. pymammotion/mammotion/commands/abstract_message.py +2 -2
  8. pymammotion/mammotion/commands/messages/driver.py +27 -20
  9. pymammotion/mammotion/commands/messages/media.py +13 -14
  10. pymammotion/mammotion/commands/messages/navigation.py +16 -13
  11. pymammotion/mammotion/commands/messages/network.py +13 -10
  12. pymammotion/mammotion/commands/messages/ota.py +9 -14
  13. pymammotion/mammotion/commands/messages/system.py +36 -25
  14. pymammotion/mammotion/commands/messages/video.py +8 -10
  15. pymammotion/mammotion/devices/base.py +10 -10
  16. pymammotion/mammotion/devices/mammotion.py +18 -14
  17. pymammotion/mammotion/devices/mammotion_bluetooth.py +2 -3
  18. pymammotion/mammotion/devices/mammotion_cloud.py +1 -2
  19. pymammotion/mqtt/mammotion_mqtt.py +1 -1
  20. pymammotion/proto/__init__.py +2174 -1
  21. pymammotion/proto/luba_mul_pb2.py +8 -8
  22. pymammotion/proto/luba_mul_pb2.pyi +1 -0
  23. pymammotion/proto/mctrl_nav.proto +3 -3
  24. pymammotion/proto/mctrl_nav_pb2.py +69 -67
  25. pymammotion/proto/mctrl_nav_pb2.pyi +13 -5
  26. pymammotion/proto/mctrl_sys_pb2.py +41 -37
  27. pymammotion/proto/mctrl_sys_pb2.pyi +34 -11
  28. pymammotion/utility/device_config.py +121 -121
  29. {pymammotion-0.4.0b8.dist-info → pymammotion-0.4.2.dist-info}/METADATA +1 -1
  30. {pymammotion-0.4.0b8.dist-info → pymammotion-0.4.2.dist-info}/RECORD +32 -42
  31. pymammotion/proto/basestation.py +0 -59
  32. pymammotion/proto/common.py +0 -12
  33. pymammotion/proto/dev_net.py +0 -381
  34. pymammotion/proto/luba_msg.py +0 -81
  35. pymammotion/proto/luba_mul.py +0 -77
  36. pymammotion/proto/mctrl_driver.py +0 -100
  37. pymammotion/proto/mctrl_nav.py +0 -664
  38. pymammotion/proto/mctrl_ota.py +0 -48
  39. pymammotion/proto/mctrl_pept.py +0 -41
  40. pymammotion/proto/mctrl_sys.py +0 -574
  41. {pymammotion-0.4.0b8.dist-info → pymammotion-0.4.2.dist-info}/LICENSE +0 -0
  42. {pymammotion-0.4.0b8.dist-info → pymammotion-0.4.2.dist-info}/WHEEL +0 -0
@@ -1,81 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # sources: pymammotion/proto/luba_msg.proto
3
- # plugin: python-betterproto
4
- from dataclasses import dataclass
5
-
6
- import betterproto
7
- from .common import *
8
- from .basestation import *
9
- from .dev_net import *
10
- from .luba_mul import *
11
- from .mctrl_driver import *
12
- from .mctrl_nav import *
13
- from .mctrl_ota import *
14
- from .mctrl_pept import *
15
- from .mctrl_sys import *
16
-
17
-
18
- class MsgCmdType(betterproto.Enum):
19
- MSG_CMD_TYPE_START = 0
20
- MSG_CMD_TYPE_NAV = 240
21
- MSG_CMD_TYPE_LOCALIZATION = 241
22
- MSG_CMD_TYPE_PLANNING = 242
23
- MSG_CMD_TYPE_EMBED_DRIVER = 243
24
- MSG_CMD_TYPE_EMBED_SYS = 244
25
- MSG_CMD_TYPE_EMBED_MIDWARE = 245
26
- MSG_CMD_TYPE_EMBED_OTA = 246
27
- MSG_CMD_TYPE_APPLICATION = 247
28
- MSG_CMD_TYPE_ESP = 248
29
- MSG_CMD_TYPE_MUL = 249
30
- MSG_CMD_TYPE_PEPT = 250
31
-
32
-
33
- class MsgAttr(betterproto.Enum):
34
- MSG_ATTR_NONE = 0
35
- MSG_ATTR_REQ = 1
36
- MSG_ATTR_RESP = 2
37
- MSG_ATTR_REPORT = 3
38
-
39
-
40
- class MsgDevice(betterproto.Enum):
41
- DEV_COMM_ESP = 0
42
- DEV_MAINCTL = 1
43
- DEV_LEFTMOTOR = 2
44
- DEV_RIGHTMOTOR = 3
45
- DEV_BASESTATION = 4
46
- DEV_RTKCLI = 5
47
- DEV_USBHOST = 6
48
- DEV_MOBILEAPP = 7
49
- DEV_IOTSERVER = 8
50
- DEV_BMS = 9
51
- DEV_NAVIGATION = 17
52
- DEV_LOCALIZATION = 18
53
- DEV_PERCEPTION = 19
54
- SOC_MODULE_MULTIMEDIA = 21
55
- DEV_IOTCTRL = 25
56
-
57
-
58
- @dataclass
59
- class MsgNull(betterproto.Message):
60
- pass
61
-
62
-
63
- @dataclass
64
- class LubaMsg(betterproto.Message):
65
- msgtype: "MsgCmdType" = betterproto.enum_field(1)
66
- sender: "MsgDevice" = betterproto.enum_field(2)
67
- rcver: "MsgDevice" = betterproto.enum_field(3)
68
- msgattr: "MsgAttr" = betterproto.enum_field(4)
69
- seqs: int = betterproto.int32_field(5)
70
- version: int = betterproto.int32_field(6)
71
- subtype: int = betterproto.int32_field(7)
72
- net: "DevNet" = betterproto.message_field(8, group="LubaSubMsg")
73
- sys: "MctlSys" = betterproto.message_field(10, group="LubaSubMsg")
74
- nav: "MctlNav" = betterproto.message_field(11, group="LubaSubMsg")
75
- driver: "MctlDriver" = betterproto.message_field(12, group="LubaSubMsg")
76
- ota: "MctlOta" = betterproto.message_field(13, group="LubaSubMsg")
77
- mul: "SocMul" = betterproto.message_field(14, group="LubaSubMsg")
78
- null: "MsgNull" = betterproto.message_field(16, group="LubaSubMsg")
79
- pept: "MctlPept" = betterproto.message_field(17, group="LubaSubMsg")
80
- base: "BaseStation" = betterproto.message_field(18, group="LubaSubMsg")
81
- timestamp: int = betterproto.uint64_field(15)
@@ -1,77 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # sources: pymammotion/proto/luba_mul.proto
3
- # plugin: python-betterproto
4
- from dataclasses import dataclass
5
-
6
- import betterproto
7
-
8
-
9
- class MUL_LANGUAGE(betterproto.Enum):
10
- ENGLISH = 0
11
- GERMAN = 1
12
- UNRECOGNIZED = -1
13
-
14
-
15
- class MUL_CAMERA_POSITION(betterproto.Enum):
16
- LEFT = 0
17
- RIGHT = 1
18
- REAR = 2
19
- ALL = 3
20
-
21
-
22
- class MUL_VIDEO_ERROR_CODE(betterproto.Enum):
23
- SUCCESS = 0
24
- ACTIVATION_FAILED = 1
25
- NETWORK_NOT_AVAILABLE = 2
26
- CREATE_CHANNEL_FAILED = 3
27
- PARAM_INVAILD = 4
28
- CELLULAR_RESTRICTION = 5
29
-
30
-
31
- class MUL_WIPER_ERROR_CODE(betterproto.Enum):
32
- SET_SUCCESS = 0
33
- HW_ERROR = 1
34
- NAVIGATION_WORK_FORBID = 2
35
-
36
-
37
- @dataclass
38
- class MulSetAudio(betterproto.Message):
39
- at_switch: int = betterproto.int32_field(1, group="AudioCfg_u")
40
- au_language: "MUL_LANGUAGE" = betterproto.enum_field(2, group="AudioCfg_u")
41
-
42
-
43
- @dataclass
44
- class MulSetVideo(betterproto.Message):
45
- position: "MUL_CAMERA_POSITION" = betterproto.enum_field(1)
46
- vi_switch: int = betterproto.int32_field(2)
47
-
48
-
49
- @dataclass
50
- class MulSetVideoAck(betterproto.Message):
51
- error_code: "MUL_VIDEO_ERROR_CODE" = betterproto.enum_field(1)
52
-
53
-
54
- @dataclass
55
- class MulAudioCfg(betterproto.Message):
56
- au_switch: int = betterproto.int32_field(1)
57
- au_language: "MUL_LANGUAGE" = betterproto.enum_field(2)
58
-
59
-
60
- @dataclass
61
- class MulSetWiper(betterproto.Message):
62
- round: int = betterproto.int32_field(1)
63
-
64
-
65
- @dataclass
66
- class MulSetWiperAck(betterproto.Message):
67
- error_code: "MUL_WIPER_ERROR_CODE" = betterproto.enum_field(1)
68
-
69
-
70
- @dataclass
71
- class SocMul(betterproto.Message):
72
- set_audio: "MulSetAudio" = betterproto.message_field(1, group="SubMul")
73
- audio_cfg: "MulAudioCfg" = betterproto.message_field(2, group="SubMul")
74
- set_video: "MulSetVideo" = betterproto.message_field(3, group="SubMul")
75
- set_video_ack: "MulSetVideoAck" = betterproto.message_field(4, group="SubMul")
76
- set_wiper: "MulSetWiper" = betterproto.message_field(5, group="SubMul")
77
- set_wiper_ack: "MulSetWiperAck" = betterproto.message_field(6, group="SubMul")
@@ -1,100 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # sources: pymammotion/proto/mctrl_driver.proto
3
- # plugin: python-betterproto
4
- from dataclasses import dataclass
5
-
6
-
7
- import betterproto
8
-
9
-
10
- @dataclass
11
- class DrvMotionCtrl(betterproto.Message):
12
- set_linear_speed: int = betterproto.int32_field(1)
13
- set_angular_speed: int = betterproto.int32_field(2)
14
-
15
-
16
- @dataclass
17
- class DrvKnifeHeight(betterproto.Message):
18
- knife_height: int = betterproto.int32_field(1)
19
-
20
-
21
- @dataclass
22
- class DrvSrSpeed(betterproto.Message):
23
- rw: int = betterproto.int32_field(1)
24
- speed: float = betterproto.float_field(2)
25
-
26
-
27
- @dataclass
28
- class DrvKnifeStatus(betterproto.Message):
29
- knife_status: int = betterproto.int32_field(1)
30
-
31
-
32
- @dataclass
33
- class DrvKnifeChangeReport(betterproto.Message):
34
- is_start: int = betterproto.int32_field(1)
35
- start_high: int = betterproto.int32_field(2)
36
- end_high: int = betterproto.int32_field(3)
37
-
38
-
39
- @dataclass
40
- class DrvMowCtrlByHand(betterproto.Message):
41
- main_ctrl: int = betterproto.int32_field(1)
42
- cut_knife_ctrl: int = betterproto.int32_field(2)
43
- cut_knife_height: int = betterproto.int32_field(3)
44
- max_run__speed: float = betterproto.float_field(4)
45
-
46
-
47
- @dataclass
48
- class RtkCfgReqT(betterproto.Message):
49
- cmd_length: int = betterproto.int32_field(1)
50
- cmd_req: str = betterproto.string_field(2)
51
-
52
-
53
- @dataclass
54
- class RtkCfgReqAckT(betterproto.Message):
55
- cmd_length: int = betterproto.int32_field(1)
56
- cmd_response: str = betterproto.string_field(2)
57
-
58
-
59
- @dataclass
60
- class RtkSysMaskQueryT(betterproto.Message):
61
- sat_system: int = betterproto.uint32_field(1)
62
-
63
-
64
- @dataclass
65
- class RtkSysMaskQueryAckT(betterproto.Message):
66
- sat_system: int = betterproto.uint32_field(1)
67
- system_mask_bits: list[int] = betterproto.uint32_field(2)
68
-
69
-
70
- @dataclass
71
- class MctlDriver(betterproto.Message):
72
- todev_devmotion_ctrl: "DrvMotionCtrl" = betterproto.message_field(
73
- 1, group="SubDrvMsg"
74
- )
75
- todev_knife_height_set: "DrvKnifeHeight" = betterproto.message_field(
76
- 2, group="SubDrvMsg"
77
- )
78
- bidire_speed_read_set: "DrvSrSpeed" = betterproto.message_field(
79
- 3, group="SubDrvMsg"
80
- )
81
- bidire_knife_height_report: "DrvKnifeHeight" = betterproto.message_field(
82
- 4, group="SubDrvMsg"
83
- )
84
- toapp_knife_status: "DrvKnifeStatus" = betterproto.message_field(
85
- 5, group="SubDrvMsg"
86
- )
87
- mow_ctrl_by_hand: "DrvMowCtrlByHand" = betterproto.message_field(
88
- 6, group="SubDrvMsg"
89
- )
90
- rtk_cfg_req: "RtkCfgReqT" = betterproto.message_field(7, group="SubDrvMsg")
91
- rtk_cfg_req_ack: "RtkCfgReqAckT" = betterproto.message_field(8, group="SubDrvMsg")
92
- rtk_sys_mask_query: "RtkSysMaskQueryT" = betterproto.message_field(
93
- 9, group="SubDrvMsg"
94
- )
95
- rtk_sys_mask_query_ack: "RtkSysMaskQueryAckT" = betterproto.message_field(
96
- 10, group="SubDrvMsg"
97
- )
98
- toapp_knife_status_change: "DrvKnifeChangeReport" = betterproto.message_field(
99
- 11, group="SubDrvMsg"
100
- )