dji_mqtt_connect 0.1.24.1 → 0.1.25
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config/locales/flighttask_status.en.yml +136 -0
- data/config/locales/result_codes.en.yml +2 -0
- data/config/locales/sys_product_status.en.yml +4 -0
- data/config/locales/thing_product_events.en.yml +64 -0
- data/config/locales/thing_product_events_reply.en.yml +4 -0
- data/config/locales/thing_product_osd.en.yml +7 -0
- data/config/locales/thing_product_requests.en.yml +12 -0
- data/config/locales/thing_product_requests_reply.en.yml +14 -0
- data/config/locales/thing_product_services.en.yml +27 -0
- data/config/locales/thing_product_services_reply.en.yml +4 -0
- data/config/locales/thing_product_state.en.yml +4 -0
- data/config/locales/thing_product_state_reply.en.yml +3 -0
- data/config/locales/video_qualities.en.yml +8 -0
- data/config/locales/video_types.en.yml +7 -0
- data/lib/dji_mqtt_connect/factories/events_messages.rb +73 -14
- data/lib/dji_mqtt_connect/factories/services_messages.rb +190 -0
- data/lib/dji_mqtt_connect/factories/state_messages.rb +19 -19
- data/lib/dji_mqtt_connect/factories.rb +14 -176
- data/lib/dji_mqtt_connect/marshals/sys/product/status_reply_marshal.rb +2 -16
- data/lib/dji_mqtt_connect/marshals/thing/product/events_marshal.rb +11 -4
- data/lib/dji_mqtt_connect/marshals/thing/product/events_reply_marshal.rb +2 -16
- data/lib/dji_mqtt_connect/marshals/thing/product/osd_marshal.rb +4 -4
- data/lib/dji_mqtt_connect/marshals/thing/product/requests_marshal.rb +4 -4
- data/lib/dji_mqtt_connect/marshals/thing/product/requests_reply_marshal.rb +2 -16
- data/lib/dji_mqtt_connect/marshals/thing/product/services_marshal.rb +2 -16
- data/lib/dji_mqtt_connect/marshals/thing/product/services_reply_marshal.rb +4 -4
- data/lib/dji_mqtt_connect/marshals/thing/product/state_marshal.rb +4 -4
- data/lib/dji_mqtt_connect/marshals/thing/product/state_reply_marshal.rb +2 -16
- data/lib/dji_mqtt_connect/messages/sys/product/status/update_topo.rb +1 -1
- data/lib/dji_mqtt_connect/messages/sys/product/status_message.rb +10 -0
- data/lib/dji_mqtt_connect/messages/sys/product/status_reply/update_topo.rb +1 -10
- data/lib/dji_mqtt_connect/messages/sys/product/status_reply_message.rb +22 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events/airsense_warning.rb +16 -15
- data/lib/dji_mqtt_connect/messages/thing/product/events/cover_close.rb +9 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events/cover_open.rb +9 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events/device_exit_homing_notify.rb +13 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events/device_reboot.rb +9 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events/file_upload_callback.rb +13 -1
- data/lib/dji_mqtt_connect/messages/thing/product/events/fileupload_progress.rb +28 -1
- data/lib/dji_mqtt_connect/messages/thing/product/events/flight_areas_sync_progress.rb +8 -0
- data/lib/dji_mqtt_connect/messages/thing/product/events/flighttask_progress.rb +50 -2
- data/lib/dji_mqtt_connect/messages/thing/product/events/flighttask_ready.rb +6 -1
- data/lib/dji_mqtt_connect/messages/thing/product/events/highest_priority_upload_flighttask_media.rb +6 -1
- data/lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb +24 -1
- data/lib/dji_mqtt_connect/messages/thing/product/events/takeoff_to_point_progress.rb +7 -1
- data/lib/dji_mqtt_connect/messages/thing/product/events_message.rb +19 -1
- data/lib/dji_mqtt_connect/messages/thing/product/events_reply_message.rb +12 -1
- data/lib/dji_mqtt_connect/messages/thing/product/osd/dock.rb +5 -1
- data/lib/dji_mqtt_connect/messages/thing/product/osd/drone.rb +5 -1
- data/lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb +4 -0
- data/lib/dji_mqtt_connect/messages/thing/product/osd_message.rb +14 -4
- data/lib/dji_mqtt_connect/messages/thing/product/requests/airport_bind_status.rb +8 -1
- data/lib/dji_mqtt_connect/messages/thing/product/requests/airport_organization_bind.rb +15 -1
- data/lib/dji_mqtt_connect/messages/thing/product/requests/config.rb +0 -1
- data/lib/dji_mqtt_connect/messages/thing/product/requests/flight_areas_get.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/requests/flighttask_resource_get.rb +6 -1
- data/lib/dji_mqtt_connect/messages/thing/product/requests/offline_map_get.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/requests_message.rb +18 -1
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_bind_status.rb +16 -6
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_bind.rb +2 -6
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/airport_organization_get.rb +7 -5
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/config.rb +9 -5
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/flight_areas_get.rb +21 -5
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/flighttask_resource_get.rb +1 -5
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/offline_map_get.rb +3 -14
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply/storage_config_get.rb +7 -5
- data/lib/dji_mqtt_connect/messages/thing/product/requests_reply_message.rb +26 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services/alarm_state_switch.rb +10 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services/cover_close.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/services/cover_open.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/services/debug_mode_close.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/services/debug_mode_open.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/services/flighttask_execute.rb +81 -1
- data/lib/dji_mqtt_connect/messages/thing/product/services/flighttask_pause.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/services/flighttask_prepare.rb +19 -5
- data/lib/dji_mqtt_connect/messages/thing/product/services/flighttask_progress_get.rb +25 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services/flighttask_recovery.rb +0 -2
- data/lib/dji_mqtt_connect/messages/thing/product/services/flighttask_stop.rb +37 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services/flighttask_undo.rb +12 -1
- data/lib/dji_mqtt_connect/messages/thing/product/services/live_lens_change.rb +10 -16
- data/lib/dji_mqtt_connect/messages/thing/product/services/live_set_quality.rb +10 -18
- data/lib/dji_mqtt_connect/messages/thing/product/services/live_start_push.rb +5 -19
- data/lib/dji_mqtt_connect/messages/thing/product/services/live_stop_push.rb +2 -1
- data/lib/dji_mqtt_connect/messages/thing/product/services/return_home.rb +1 -6
- data/lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb +1 -6
- data/lib/dji_mqtt_connect/messages/thing/product/services/return_specific_home.rb +27 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services_message.rb +18 -1
- data/lib/dji_mqtt_connect/messages/thing/product/services_reply/flighttask_progress_get.rb +48 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services_reply/flighttask_stop.rb +9 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services_reply/return_specific_home.rb +22 -0
- data/lib/dji_mqtt_connect/messages/thing/product/services_reply_message.rb +8 -0
- data/lib/dji_mqtt_connect/messages/thing/product/state_message.rb +71 -9
- data/lib/dji_mqtt_connect/messages/thing/product/state_reply_message.rb +12 -1
- data/lib/dji_mqtt_connect/mixins/video_quality.rb +43 -0
- data/lib/dji_mqtt_connect/mixins/video_type.rb +37 -0
- data/lib/dji_mqtt_connect/translations.rb +144 -0
- data/lib/dji_mqtt_connect/types.rb +24 -1
- data/lib/dji_mqtt_connect/utils/message_dumping.rb +49 -0
- data/lib/dji_mqtt_connect/version.rb +1 -1
- data/lib/dji_mqtt_connect.rb +12 -0
- metadata +26 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de5b0588cfd34fb75c0aed999a0ba146a0ee74ab9687bf300431c89387b7551e
|
4
|
+
data.tar.gz: 45ae73344a2501eb48c69d9de66f84564d52a0ef0fe8a1102d00f87c78ee7080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b0402df1723511503f3922d45daa155b08ab10334effb489f77a98426b3fa801995b811c52293e8af8ab2760a0a408eab9dc8b1452274474d285311ed14bf34
|
7
|
+
data.tar.gz: a3212c1035d686e252a4e9436cef30f4f221416ab8baff47568598bd277cdaac087abbbb4e1444c6d9ef6f4b1f07a405e82a729be1d05443bc0e35732922045a
|
data/Gemfile.lock
CHANGED
@@ -5,3 +5,139 @@
|
|
5
5
|
partially_done: Partially Done
|
6
6
|
in_progress: In Progress
|
7
7
|
ok: "OK"
|
8
|
+
:flighttask_progress:
|
9
|
+
break_reason:
|
10
|
+
:0: "No abnormalities"
|
11
|
+
:1: "Mission ID does not exist. The wayline mission has not been executed."
|
12
|
+
:2: "Uncommon error, please contact technical support"
|
13
|
+
:4: "Error loading wayline file when requesting to start/resume the wayline mission, please try uploading the file again or contact technical support"
|
14
|
+
:5: "Failed to query breakpoint file when requesting breakpoint information. Failed to parse breakpoint type when requesting to resume the wayline mission"
|
15
|
+
:6: "Incorrect cmd parameter when requesting to start/end the wayline mission, incorrect protocol command in the request. Failed to parse breakpoint type when requesting to resume the wayline mission"
|
16
|
+
:7: "Timeout parsing the WPMZ file when requesting to start/resume the wayline mission, please retry"
|
17
|
+
:257: "Wayline has already started, cannot start again"
|
18
|
+
:258: "Unable to interrupt the wayline in this state, only allowed to pause the wayline in the executing state"
|
19
|
+
:259: "Wayline has not started, cannot end the wayline"
|
20
|
+
:261: "Flight mission conflict, unable to obtain control of the aircraft, not allowed to start the wayline during landing and return"
|
21
|
+
:262: "Unable to resume wayline in this state, only allowed when the wayline is paused"
|
22
|
+
:513: "Aircraft exceeded the maximum altitude limit"
|
23
|
+
:514: "Aircraft exceeded the maximum distance limit"
|
24
|
+
:516: "Aircraft triggered altitude limit"
|
25
|
+
:517: "Aircraft triggered obstacle sensing"
|
26
|
+
:518: "Poor RTK signal"
|
27
|
+
:519: "Approaching the boundary of Restricted Zone"
|
28
|
+
:521: "Exceeded the dock's GEO zone altitude limit"
|
29
|
+
:522: "Failed to request takeoff for the wayline"
|
30
|
+
:523: "Takeoff mission execution failed"
|
31
|
+
:524: "Failed to request wayline mission"
|
32
|
+
:526: "Failed to request wayline RTK fixing mission"
|
33
|
+
:527: "Wayline RTK fixing mission failed to run"
|
34
|
+
:769: "Weak GPS signal"
|
35
|
+
:770: "The remote controller gear is not in N position."
|
36
|
+
:771: "Home point not refreshed"
|
37
|
+
:772: "Unable to start the mission due to low current battery level"
|
38
|
+
:773: "Wayline interrupted due to low battery causing return to home"
|
39
|
+
:775: "Disconnection between the remote controller and the aircraft"
|
40
|
+
:778: "Aircraft is on the ground with propellers spinning, not allowed to start the wayline"
|
41
|
+
:779: "During the real-time terrain follow, the camera state is abnormal(such as too bright, too dark and inconsistent brightness on both sides)"
|
42
|
+
:780: "Real-time terrain-following altitude set by the user is invalid (greater than 200m or less than 30m)"
|
43
|
+
:781: "Global map calculation error during real-time terrain follow"
|
44
|
+
:784: "Wayline interrupted due to strong winds causing return to home"
|
45
|
+
:1281: "User exit"
|
46
|
+
:1282: "User interruption"
|
47
|
+
:1283: "User triggered return to home"
|
48
|
+
:1539: "Incorrect start information (waypoint index or progress)"
|
49
|
+
:1540: "Using an unsupported coordinate system"
|
50
|
+
:1541: "Using an unsupported altitude mode"
|
51
|
+
:1542: "Using an unsupported transitional wayline mode"
|
52
|
+
:1543: "Using an unsupported yaw mode"
|
53
|
+
:1544: "Using an unsupported yaw direction reversal mode"
|
54
|
+
:1545: "Using an unsupported waypoint type"
|
55
|
+
:1546: "Coordinated turning type cannot be used for the start and end points"
|
56
|
+
:1547: "Wayline global speed exceeds a reasonable range"
|
57
|
+
:1548: "Waypoint number abnormal"
|
58
|
+
:1549: "Abnormal latitude and longitude data"
|
59
|
+
:1550: "Abnormal turning intercept"
|
60
|
+
:1551: "Maximum speed of wayline segment exceeds a reasonable range"
|
61
|
+
:1552: "Wayline segment target speed exceeds a reasonable range"
|
62
|
+
:1553: "Waypoint yaw angle exceeds a reasonable range"
|
63
|
+
:1555: "Input mission_id of resuming from breakpoint is wrong"
|
64
|
+
:1556: "Progress information of resuming from breakpoint input error"
|
65
|
+
:1557: "Mission state of resuming from breakpoint is abnormal"
|
66
|
+
:1558: "Waypoint index information of resuming from breakpoint input error"
|
67
|
+
:1559: "Incorrect latitude and longitude information for resuming from breakpoint"
|
68
|
+
:1560: "Yaw input error for waypoints during resuming from breakpoint"
|
69
|
+
:1561: "Incorrect flag setting for resuming from breakpoint"
|
70
|
+
:1563: "Wayline generation failed"
|
71
|
+
:1564: "Wayline execution failed"
|
72
|
+
:1565: "Emergency stop due to wayline obstacle sensing"
|
73
|
+
:1588: "Unrecognized action type"
|
74
|
+
:1595: "Action ID must be unique."
|
75
|
+
:1598: "Action ID value cannot be 65535"
|
76
|
+
:1602: "Number of action groups exceeds a reasonable range"
|
77
|
+
:1603: "Error in action group effective range"
|
78
|
+
:1606: "Action index exceeds a reasonable range during resuming from breakpoint"
|
79
|
+
:1608: "Trigger running result of breakpoint information is abnormal"
|
80
|
+
:1609: "Action group ID information can not be duplicated during resume from breakpoint"
|
81
|
+
:1610: "Action group positions cannot be repeated during resuming from breakpoint"
|
82
|
+
:1611: "Action group positions exceed a reasonable range during resuming from breakpoint"
|
83
|
+
:1612: "Action ID is not in the breakpoint information during resuming"
|
84
|
+
:1613: "The action state can not be set to interrupt during the resuming flight from breakpoint"
|
85
|
+
:1614: "Resume failure due to incorrect breakpoint information"
|
86
|
+
:1634: "Unrecognized action type"
|
87
|
+
:1649: "Unrecognized trigger type"
|
88
|
+
:65534: "Unknown issue"
|
89
|
+
:65535: "Unknown iss"
|
90
|
+
current_step:
|
91
|
+
:0: "Initial state"
|
92
|
+
:1: "Pre-flight check, whether the aircraft is executing a wayline"
|
93
|
+
:2: "Pre-flight check, whether the dock has exited working mode"
|
94
|
+
:3: "Pre-flight check, wayline execution in progress"
|
95
|
+
:4: "Pre-return-to-home check, in the process of returning to home"
|
96
|
+
:5: "Wayline execution enters the preparation state, waiting for the mission to be issued"
|
97
|
+
:6: "Dock enters working state"
|
98
|
+
:7: "Enter the startup check and cover preparation work"
|
99
|
+
:8: "Remote image transmission frequency Pairing"
|
100
|
+
:9: "Waiting for the flight system to be ready, push connection established"
|
101
|
+
:10: "Waiting for RTK source to listen for reported values"
|
102
|
+
:11: "Check if the RTK source is from the dock, if not, reset it"
|
103
|
+
:12: "Waiting for flight control notification"
|
104
|
+
:13: "The dock has no control and seizes the control of the aircraft"
|
105
|
+
:14: "Consistency check of custom flight area"
|
106
|
+
:15: "Consistency check of offline maps"
|
107
|
+
:16: "Get the latest KMZ URL"
|
108
|
+
:17: "Download KMZ"
|
109
|
+
:18: "KMZ uploading"
|
110
|
+
:19: "Coloring configuration"
|
111
|
+
:20: "Aircraft takeoff parameter setting, alternate landing point setting, takeoff altitude setting, coloring setting"
|
112
|
+
:21: "Aircraft flyto takeoff parameter setting"
|
113
|
+
:22: "Takeoff dock checks the landing dock preparation status"
|
114
|
+
:23: "Home point setting"
|
115
|
+
:24: "Trigger wayline execution"
|
116
|
+
:25: "Wayline executing"
|
117
|
+
:26: "Enter pre-return-to-home check"
|
118
|
+
:27: "Aircraft landing at the dock"
|
119
|
+
:28: "Close the cover after landing"
|
120
|
+
:29: "Dock exits working mode"
|
121
|
+
:30: "Dock abnormal recovery"
|
122
|
+
:31: "Dock uploads flight system logs"
|
123
|
+
:32: "Check camera recording state"
|
124
|
+
:33: "Get the number of media files"
|
125
|
+
:34: "Abnormal recovery after dock takeoff cover"
|
126
|
+
:35: "Notify mission result"
|
127
|
+
:36: "Log list retrieval - Aircraft list"
|
128
|
+
:37: "Log list retrieval - Retrieve the list of docks"
|
129
|
+
:38: "Log list retrieval - Upload log list result"
|
130
|
+
:39: "Log retrieval - Retrieve aircraft logs"
|
131
|
+
:40: "Log retrieval - Retrieve dock logs"
|
132
|
+
:41: "Log retrieval - Compress aircraft logs"
|
133
|
+
:42: "Log retrieval - Compress dock logs"
|
134
|
+
:43: "Log retrieval - Upload aircraft logs"
|
135
|
+
:44: "Log retrieval - Upload dock logs"
|
136
|
+
:45: "Log retrieval - Notify the result"
|
137
|
+
:46: "Custom flight area file update preparation"
|
138
|
+
:47: "Custom flight area updating"
|
139
|
+
:48: "Offline map update preparation"
|
140
|
+
:49: "Offline map updating"
|
141
|
+
:65533: "Wait for service response after completion"
|
142
|
+
:65534: "No specific state"
|
143
|
+
:65535: "UNKNOWN"
|
@@ -0,0 +1,64 @@
|
|
1
|
+
en:
|
2
|
+
dji_mqtt_connect:
|
3
|
+
thing_product_events_summary:
|
4
|
+
default: "Received %{method} event: %{result}"
|
5
|
+
cover_close: "Cover closing: %{status} (%{current_step}/%{total_steps} %{percent}%)"
|
6
|
+
cover_open: "Cover opening: %{status} (%{current_step}/%{total_steps} %{percent}%)"
|
7
|
+
device_exit_homing_notify: "Device is exiting return to home: %{action} (%{reason})"
|
8
|
+
device_reboot: "Rebooting device: %{status} (%{current_step}/%{total_steps} %{percent}%)"
|
9
|
+
file_upload_callback: "Uploading file: %{file_name}"
|
10
|
+
fileupload_progress: "Uploading files: %{progress}"
|
11
|
+
flight_areas_sync_progress: "Syncing flight areas: %{status} (%{reason})"
|
12
|
+
flighttask_progress: "%{current_step} (%{status} %{percent}%)"
|
13
|
+
flighttask_progress_with_break_point: "Flight Halted: %{break_reason} [%{current_step}] (%{status} %{percent}%)"
|
14
|
+
highest_priority_upload_flighttask_media: "Highest priority flight task media upload"
|
15
|
+
offline_map_sync_progress: "Syncing offline maps: %{status} (%{reason})"
|
16
|
+
takeoff_to_point_progress: "Takeoff to Point: %{status} (%{way_point_index}/- | %{remaining_time} sec | %{remaining_distance} left)"
|
17
|
+
|
18
|
+
thing_product_device_exit_homing_notify_events_message:
|
19
|
+
humanized_action:
|
20
|
+
# TODO: Confirm the following assumptions
|
21
|
+
:0: "Cancelled by Device"
|
22
|
+
:1: "Cancelled by Dock"
|
23
|
+
|
24
|
+
humanized_reason:
|
25
|
+
:0: "Throttle added to the joystick"
|
26
|
+
:1: "Joystick interval added"
|
27
|
+
:2: "Behavior tree initialization failed"
|
28
|
+
:3: "Surrounded by obstacles"
|
29
|
+
:4: "Triggered flight restriction"
|
30
|
+
:5: "Obstacle too close"
|
31
|
+
:6: "No GPS signal"
|
32
|
+
:7: "GPS and VIO position output flags are false"
|
33
|
+
:8: "Large position error between GPS and VIO fusion"
|
34
|
+
:9: "Short-distance backtracking"
|
35
|
+
:10: "Return triggered at close range"
|
36
|
+
|
37
|
+
thing_product_fileupload_progress_events_message:
|
38
|
+
humanized_module:
|
39
|
+
:0: Aircraft
|
40
|
+
:3: DJI Dock
|
41
|
+
|
42
|
+
humanized_summary: "%{key} [%{module}] (%{status} %{progress}%)"
|
43
|
+
|
44
|
+
thing_product_flight_areas_sync_progress_events_message:
|
45
|
+
humanized_reason:
|
46
|
+
:0: "OK"
|
47
|
+
:1: "Failed to parse file information returned from the cloud"
|
48
|
+
:2: "Failed to retrieve file information from the aircraft's end"
|
49
|
+
:3: "Failed to download the file from the cloud"
|
50
|
+
:4: "Link flipping failed"
|
51
|
+
:5: "File transmission failed"
|
52
|
+
|
53
|
+
thing_product_flighttask_progress_events_message:
|
54
|
+
humanized_wayline_mission_state:
|
55
|
+
:0: "Disconnected"
|
56
|
+
:1: "This waypoint is not supported"
|
57
|
+
:2: "Wayline preparation state. It can upload files and execute existing files"
|
58
|
+
:3: "Wayline file uploading"
|
59
|
+
:4: "Trigger start command. The aircraft triggers logic such as reading the wayline. The mission has not started yet and it's in a preparation state"
|
60
|
+
:5: "Entering the wayline, heading to the first waypoint"
|
61
|
+
:6: "Wayline execution"
|
62
|
+
:7: "Wayline interrupted. Triggered conditions are 1 for User actively pauses and 2 for Flight control abnormality"
|
63
|
+
:8: "Wayline recovery"
|
64
|
+
:9: "Wayline completed"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
en:
|
2
|
+
dji_mqtt_connect:
|
3
|
+
thing_product_requests_summary:
|
4
|
+
default: "Received %{method} request: %{result}"
|
5
|
+
airport_bind_status: "Requesting airport bind status: %{devices}"
|
6
|
+
airport_organization_bind: "Requesting binding to organisation: %{bind_status}"
|
7
|
+
airport_organization_get: "Requesting organisation name: %{organization_id}"
|
8
|
+
flighttask_resource_get: "Requesting wayline file url"
|
9
|
+
storage_config_get: "Requesting storage config"
|
10
|
+
|
11
|
+
thing_product_airport_organization_bind_requests_message:
|
12
|
+
bind_devices_summary: "%{identifier} (to %{organization_id})"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
en:
|
2
|
+
dji_mqtt_connect:
|
3
|
+
thing_product_requests_reply_summary:
|
4
|
+
default: "Replied to %{method} request: %{result}"
|
5
|
+
airport_bind_status: "Replied with bind status: %{bind_status}"
|
6
|
+
airport_organization_get: "Replied with organisation name: %{organization_name}"
|
7
|
+
config: "Replied with config: App %{app_id}"
|
8
|
+
flight_areas_get_with_files: "Replied with files: %{files}"
|
9
|
+
storage_config_get: "Replied with bucket: %{bucket_name}"
|
10
|
+
|
11
|
+
thing_product_airport_bind_status_requests_reply_message:
|
12
|
+
humanized_summary:
|
13
|
+
bound: "%{sn} (Bound to %{organization_name})"
|
14
|
+
unbound: "%{sn} (Unbound)"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
en:
|
2
|
+
dji_mqtt_connect:
|
3
|
+
thing_product_services_summary:
|
4
|
+
default: "Requested %{method} service"
|
5
|
+
alarm_state_switch: "Requesting alarm state change: %{action}"
|
6
|
+
cover_open: "Requesting cover open"
|
7
|
+
cover_close: "Requesting cover close"
|
8
|
+
debug_mode_open: "Requesting enable debug mode"
|
9
|
+
debug_mode_close: "Requesting disable debug mode"
|
10
|
+
flighttask_execute: "Requesting flight task execution"
|
11
|
+
flighttask_pause: "Requesting pause for all Flights"
|
12
|
+
flighttask_prepare: "Requesting flight task preparation"
|
13
|
+
flighttask_recovery: "Requesting resume for all Flights"
|
14
|
+
flighttask_stop: "Requesting flight stop"
|
15
|
+
flighttask_undo: "Requesting cancellation of flights"
|
16
|
+
live_lens_change: "Requesting live lens change: %{video_type} (Video %{video_id})"
|
17
|
+
live_set_quality: "Requesting live quality change: %{video_quality} (Video %{video_id})"
|
18
|
+
live_start_push: "Requesting broadcast start: Video %{video_id}"
|
19
|
+
live_stop_push: "Requesting broadcast stop: Video %{video_id}"
|
20
|
+
return_home_cancel: "Requesting return to home cancellation"
|
21
|
+
return_home: "Requesting return to home"
|
22
|
+
return_specific_home: "Requesting return to dock: Dock %{home_dock_sn}"
|
23
|
+
|
24
|
+
thing_product_alarm_state_switch_services_message:
|
25
|
+
humanized_action:
|
26
|
+
:0: "Alarm off"
|
27
|
+
:1: "Alarm on"
|
@@ -2,7 +2,37 @@
|
|
2
2
|
|
3
3
|
module DjiMqttConnect
|
4
4
|
module Factories::EventsMessages
|
5
|
-
def
|
5
|
+
def build_thing_product_airsense_warning_events_message
|
6
|
+
message_data = {
|
7
|
+
list: [
|
8
|
+
{
|
9
|
+
icao: "icao",
|
10
|
+
warning_level: 1,
|
11
|
+
latitude: 22.1,
|
12
|
+
longitude: 113.9,
|
13
|
+
altitude: 100,
|
14
|
+
altitude_type: 0,
|
15
|
+
distance: 100,
|
16
|
+
heading: 90.0,
|
17
|
+
relative_altitude: 100,
|
18
|
+
vert_trend: 1
|
19
|
+
}
|
20
|
+
]
|
21
|
+
}
|
22
|
+
|
23
|
+
Thing::Product::AirsenseWarningEventsMessage.new(
|
24
|
+
_method: "airsense_warning",
|
25
|
+
bid: Message.generate_bid,
|
26
|
+
tid: Message.generate_tid,
|
27
|
+
need_reply: 1,
|
28
|
+
gateway: "GATEWAYSN",
|
29
|
+
timestamp: Message.current_timestamp,
|
30
|
+
data: message_data,
|
31
|
+
_data: message_data
|
32
|
+
)
|
33
|
+
end
|
34
|
+
|
35
|
+
def build_thing_product_device_exit_homing_notify_events_message
|
6
36
|
message_data = {
|
7
37
|
action: 1,
|
8
38
|
sn: "DOCK01",
|
@@ -42,7 +72,7 @@ module DjiMqttConnect
|
|
42
72
|
)
|
43
73
|
end
|
44
74
|
|
45
|
-
def
|
75
|
+
def build_thing_product_file_upload_callback_events_message
|
46
76
|
message_data = {
|
47
77
|
file: {
|
48
78
|
object_key: "object_key",
|
@@ -73,14 +103,14 @@ module DjiMqttConnect
|
|
73
103
|
bid: Message.generate_bid,
|
74
104
|
tid: Message.generate_tid,
|
75
105
|
need_reply: 1,
|
76
|
-
gateway: "
|
106
|
+
gateway: "GATEWAYSN",
|
77
107
|
timestamp: Message.current_timestamp,
|
78
108
|
data: message_data,
|
79
109
|
_data: message_data
|
80
110
|
)
|
81
111
|
end
|
82
112
|
|
83
|
-
def
|
113
|
+
def build_thing_product_fileupload_progress_events_message
|
84
114
|
message_data = {
|
85
115
|
output: {
|
86
116
|
ext: {
|
@@ -88,8 +118,8 @@ module DjiMqttConnect
|
|
88
118
|
{
|
89
119
|
module: "0",
|
90
120
|
size: 155232,
|
91
|
-
device_sn: "
|
92
|
-
key: "4bf0039f-6434-44a8-b891-8d7b6b7ff138/
|
121
|
+
device_sn: "DRONESN",
|
122
|
+
key: "4bf0039f-6434-44a8-b891-8d7b6b7ff138/DRONESN/video_20220621_110830.log",
|
93
123
|
fingerprint: "4f65b891f3bc09bdb6d4c36a996b532d",
|
94
124
|
progress: {
|
95
125
|
current_step: 19,
|
@@ -103,8 +133,8 @@ module DjiMqttConnect
|
|
103
133
|
{
|
104
134
|
module: "3",
|
105
135
|
size: 155232,
|
106
|
-
device_sn: "
|
107
|
-
key: "4bf0039f-6434-44a8-b891-8d7b6b7ff138/
|
136
|
+
device_sn: "DOCKSN",
|
137
|
+
key: "4bf0039f-6434-44a8-b891-8d7b6b7ff138/DOCKSN/video_20220621_110830.log",
|
108
138
|
fingerprint: "4f65b891f3bc09bdb6d4c36a996b532d",
|
109
139
|
progress: {
|
110
140
|
current_step: 19,
|
@@ -128,13 +158,13 @@ module DjiMqttConnect
|
|
128
158
|
bid: Message.generate_bid,
|
129
159
|
tid: Message.generate_tid,
|
130
160
|
timestamp: Message.current_timestamp,
|
131
|
-
gateway: "
|
161
|
+
gateway: "GATEWAYSN",
|
132
162
|
_data: message_data,
|
133
163
|
data: message_data
|
134
164
|
)
|
135
165
|
end
|
136
166
|
|
137
|
-
def
|
167
|
+
def build_thing_product_flighttask_progress_events_message
|
138
168
|
message_data = {
|
139
169
|
output: {
|
140
170
|
ext: {
|
@@ -173,7 +203,7 @@ module DjiMqttConnect
|
|
173
203
|
)
|
174
204
|
end
|
175
205
|
|
176
|
-
def
|
206
|
+
def build_thing_product_flighttask_ready_events_message
|
177
207
|
message_data = {
|
178
208
|
flight_ids: [
|
179
209
|
SecureRandom.uuid,
|
@@ -191,7 +221,7 @@ module DjiMqttConnect
|
|
191
221
|
)
|
192
222
|
end
|
193
223
|
|
194
|
-
def
|
224
|
+
def build_thing_product_highest_priority_upload_flighttask_media_events_message
|
195
225
|
message_data = {
|
196
226
|
flight_id: SecureRandom.uuid
|
197
227
|
}
|
@@ -208,7 +238,7 @@ module DjiMqttConnect
|
|
208
238
|
)
|
209
239
|
end
|
210
240
|
|
211
|
-
def
|
241
|
+
def build_thing_product_offline_map_sync_progress_events_message
|
212
242
|
message_data = {
|
213
243
|
status: "failed",
|
214
244
|
reason: 0,
|
@@ -226,7 +256,36 @@ module DjiMqttConnect
|
|
226
256
|
)
|
227
257
|
end
|
228
258
|
|
229
|
-
def
|
259
|
+
def build_thing_product_return_home_info_events_message
|
260
|
+
message_data = {
|
261
|
+
flight_id: "5c746ff3-3b3e-4787-8e06-23c491a99a13",
|
262
|
+
last_point_type: 0,
|
263
|
+
planned_path_points: [
|
264
|
+
{
|
265
|
+
height: 99.654359985142946,
|
266
|
+
latitude: -33.9614494331181,
|
267
|
+
longitude: 150.72803176939487
|
268
|
+
},
|
269
|
+
{
|
270
|
+
height: 99.654359985142946,
|
271
|
+
latitude: -33.961449558846653,
|
272
|
+
longitude: 150.72803218849
|
273
|
+
}
|
274
|
+
]
|
275
|
+
}
|
276
|
+
|
277
|
+
Thing::Product::ReturnHomeInfoEventsMessage.new(
|
278
|
+
bid: Message.generate_bid,
|
279
|
+
tid: Message.generate_tid,
|
280
|
+
timestamp: Message.current_timestamp,
|
281
|
+
_method: "return_home_info",
|
282
|
+
need_reply: 1,
|
283
|
+
data: message_data,
|
284
|
+
_data: message_data
|
285
|
+
)
|
286
|
+
end
|
287
|
+
|
288
|
+
def build_thing_product_takeoff_to_point_progress_events_message
|
230
289
|
message_data = {
|
231
290
|
flight_id: SecureRandom.uuid,
|
232
291
|
remaining_distance: 100,
|