dji_mqtt_connect 0.1.23.3 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c02edaaaf852b86b7a232011a4cbddeac70d5002a0ed80b988280e74e7b53ed4
4
- data.tar.gz: c626c5ec70d72cb5661f6ce0562143630d025b2ee9c7639a47d137c3c910c2cc
3
+ metadata.gz: a5f4a30bcf00c34333f1ba41fe6253a71e79cfcbf0640b5487e5f815ba372aa8
4
+ data.tar.gz: 28cd4d757b493def4abb99fa0bdc62d13dbfa93d320b1743737b0618c088091d
5
5
  SHA512:
6
- metadata.gz: 569aab752ec15a303bee5846f38772057ef6a6df823c9655dd9483395d4cf47e18e491abceb64ff64382ff59129382280a6cd8a6fc08c042b7049ef5936adc44
7
- data.tar.gz: 2a8d79beaa54ebfa8c94d8fe78c9ecf57f5ca0e6c8493b30113f3c6cc75dd4d3379ca9d3d61341657486cc5a95efd235001b43ad67e4bb2de54d9fa466ce28a2
6
+ metadata.gz: 9f2962fedfd1a2b3f6e08b952d0cc4ccf0709d15948e14433fd9d431a14a6b043eb4c198e94a78a0982ef38987dbcdc1904fcf18a91f318df16a2213740bf263
7
+ data.tar.gz: 3f83495440f395d39b1e43e210ab5c276b2d0d09b7dd971c1d319c089e32d0d78c91bb2f2fd8e4fc1a70507cbaf2add928e09c05ab04b7a1a287452fab168386
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dji_mqtt_connect (0.1.23.3)
4
+ dji_mqtt_connect (0.1.24)
5
5
  activesupport (>= 6.0, <= 8)
6
6
  dry-struct (~> 1.6)
7
7
  dry-transformer (~> 1.0)
@@ -2,8 +2,19 @@
2
2
  :en:
3
3
  :dji_mqtt_connect:
4
4
  :result_codes:
5
+ :316031: rth_mode is required for flighttask_prepare
5
6
  default: "Something went wrong..."
6
7
  :0: "OK"
8
+ :312014: Updating device firmware. Wait until update completed.
9
+ :312015: Unable to update device firmware. Dock ({dock_org_name}) busy. Try again when dock is idle.
10
+ :312016: Update failed. Dock and aircraft transmission error. Restart dock and aircraft and try again.
11
+ :312022: Failed to power on aircraft, or aircraft not connected. Check if aircraft is inside dock, battery installed, and dock and aircraft linked.
12
+ :312023: Failed to push driving rods back into place. Unable to update aircraft firmware. Check if emergency stop button is pressed down or driving rods are stuck.
13
+ :312027: Failed to update firmware. Aircraft not detected inside dock.
14
+ :312028: Failed to update firmware. Device restarted during update.
15
+ :312029: Restarting device. Unable to update firmware. Wait until restart completed.
16
+ :312030: Aircraft enhanced transmission enabled. Failed to update firmware. Disable enhanced transmission and try again.
17
+ :312704: Aircraft battery level too low. Wait until aircraft is charged to above 20% and try again.
7
18
  :314000: Operation not supported. Check device status.
8
19
  :314001: Failed to distribute task. Try again later.
9
20
  :314002: Failed to distribute task. Try again later.
@@ -26,12 +37,49 @@
26
37
  :314019: Failed to converge aircraft RTK data. Unable to perform task. Try again later or restart dock and try again.
27
38
  :314020: Aircraft not in the middle of landing pad or aircraft heading incorrect. Unable to perform task. Check aircraft position and heading.
28
39
  :314021: Aircraft RTK positioning error. Unable to perform task. Try again later or restart dock and try again.
40
+ :314025: RTK convergence timed out. Cancel task manually.
41
+ :314200: Task failed. Dock network disconnected. Aircraft automatically returned to home. Make sure network is connected and try again.
42
+ :315000: Dock communication error. Restart dock and try again.
43
+ :315001: Dock communication error. Power on aircraft remotely and wait for 1 min before distributing task again.
44
+ :315002: Dock communication error. Restart dock and try again.
45
+ :315003: Dock communication error. Restart dock and try again.
46
+ :315004: Task failed. Wait until both docks are in idle status and distribute task again.
47
+ :315005: Dock communication error. Restart dock and try again.
48
+ :315006: Dock communication error. Restart dock and try again.
49
+ :315007: Dock communication error. Update dock firmware to latest version or restart dock and try again.
50
+ :315008: RTK calibration method inconsistent between docks for takeoff and landing. Make sure the same calibration method is used and connection is stable.
51
+ :315009: Dock communication error. Restart dock and try again.
52
+ :315010: Unable to stop task. Try again later. Contact DJI Support if issue persists.
53
+ :315011: Unable to stop task. Try again later. Contact DJI Support if issue persists.
54
+ :315012: Unable to stop task. Try again later. Contact DJI Support if issue persists.
55
+ :315013: Failed to distribute task. Try again later. Contact DJI Support if issue persists.
56
+ :315014: Unable to set Home Point for current task type.
57
+ :315015: Failed to set Home Point. Try again later. Contact DJI Support if issue persists.
58
+ :315016: Failed to distribute task. Try again later. Contact DJI Support if issue persists.
59
+ :315017: Failed to distribute task. Try again later. Contact DJI Support if issue persists.
60
+ :315018: Task failed. Wait until both docks are in idle status and distribute task again.
61
+ :315050: Dock system error. Restart dock and try again.
62
+ :315051: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
63
+ :315052: RTK data not converged. Dock location not calibrated. Wait and try again.
64
+ :315053: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
65
+ :315054: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
66
+ :315055: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
67
+ :315056: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
68
+ :315057: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
69
+ :315058: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
70
+ :315059: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
71
+ :315060: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
72
+ :315061: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
73
+ :315062: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
74
+ :315063: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
75
+ :315064: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
76
+ :315065: Task failed. Restart dock and distribute task again. Contact DJI Support if issue persists.
29
77
  :316001: Failed to configure aircraft parameters. Restart dock and try again.
30
78
  :316002: Failed to configure aircraft parameters. Restart dock and try again.
31
79
  :316003: Failed to configure aircraft parameters. Restart dock and try again.
32
80
  :316004: Failed to configure aircraft parameters. Restart dock and try again.
33
81
  :316005: Failed to converge aircraft RTK data. Unable to perform task. Restart dock and try again.
34
- :316006: Aircraft unable to land on dock. Dock cover closed or driving rods pushed into place. Check aircraft status on dock deployment site.
82
+ :316006: Task timed out. Aircraft lost or unable to land on dock because dock cover closed or driving rods pulled back. Check aircraft status on-site.
35
83
  :316007: Failed to initiate aircraft. Restart dock and try again.
36
84
  :316008: Dock failed to obtain aircraft flight control. Unable to perform task. Make sure flight control not locked by remote controller.
37
85
  :316009: Aircraft battery level lower than 30%. Unable to perform task. It is recommended to charged battery up to 50% before trying again.
@@ -44,7 +92,7 @@
44
92
  :316016: Aircraft landing on dock timed out. Aircraft and dock may be disconnected. Check livestream view to see if aircraft landed on dock.
45
93
  :316017: Obtaining number of aircraft media files timed out. Aircraft and dock may be disconnected. Check livestream view to see if aircraft landed on dock.
46
94
  :316018: Task performance timed out. Aircraft and dock may be disconnected. Check livestream view to see if aircraft landed on dock.
47
- :316019: Internal server error. Unable to perform task. Try again later.
95
+ :316019: Dock system error. Unable to perform task. Try again later.
48
96
  :316020: Aircraft RTK signal source error. Try again later.
49
97
  :316021: Checking aircraft RTK signal source timed out. Try again later.
50
98
  :316022: Aircraft unable to return to home. Check if aircraft is powered on, aircraft and dock are connected, and try again.
@@ -54,11 +102,32 @@
54
102
  :316026: Dock emergency stop button pressed down. Unable to perform task. Release button and try again.
55
103
  :316027: Setting aircraft parameters timed out. Try again later or restart dock and try again.
56
104
  :316029: Dock emergency stop button pressed down. Aircraft flying to alternate landing site. Make sure aircraft has safely landed and place aircraft inside dock.
105
+ :316032: Obtaining battery data timed out. Try again later or restart aircraft and try again.
106
+ :316033: Battery approaching cycle count limit. Task stopped to ensure flight safety. Changing battery recommended.
107
+ :316034: Unable to take off. Aircraft and dock firmware versions do not match. Update firmware and try again.
108
+ :316050: Aircraft landed outside of dock because of low battery level. Make sure aircraft has landed safely and place aircraft inside dock.
109
+ :316051: Task error. Aircraft landed outside of dock. Make sure aircraft has safely landed and place aircraft inside dock.
110
+ :316052: Task error. Aircraft flying to alternate landing site. Make sure aircraft safely lands on-site and place aircraft inside dock.
111
+ :316053: Aircraft has been manually landed by pilot. Make sure aircraft has safely landed and place aircraft inside dock.
112
+ :316100: Failed to obtain camera info. Try again.
113
+ :316101: Failed to switch to Single Shot mode. Try again.
114
+ :316102: Failed to disable watermark. Try again.
115
+ :316103: Failed to switch to average metering mode. Try again.
116
+ :316104: Failed to switch to wide-angle camera. Try again.
117
+ :316105: Failed to save photo storage settings. Try again.
118
+ :316106: Failed to set infrared camera zoom ratio. Try again.
119
+ :316107: Failed to set photo resolution to 4K. Try again.
120
+ :316108: Failed to set photo format as JPEG. Try again.
121
+ :316109: Failed to disable dewarp. Try again.
122
+ :316110: Failed to open mechanical shutter. Try again.
123
+ :316111: Failed to set focus mode. Try again.
57
124
  :317001: Failed to obtain number of aircraft media files. Restart dock and try again.
58
125
  :317002: Failed to format aircraft storage. Make sure aircraft is powered on and connected to dock and camera can be detected. Or restart aircraft and try again.
59
126
  :317003: Failed to format aircraft storage. Restart aircraft and try again.
60
127
  :317004: Failed to format media files. Try again later or restart dock and try again.
61
128
  :317005: Aircraft video recording terminated unsuccessfully, media files for this flight mission may not be able to be uploaded.
129
+ :317006: Unable to format. Wait until media files are downloaded and try again.
130
+ :317007: Failed to obtain number of media files. Try again later. If there are media files collected by current flight but issue persists, contact DJI Support.
62
131
  :319001: Unable to perform task. Dock is performing task or uploading issue logs. Wait until task is complete or logs uploaded and try again.
63
132
  :319002: Dock system error. Restart dock and try again.
64
133
  :319003: Dock system error. Distribute task again.
@@ -74,9 +143,30 @@
74
143
  :319017: Dock processing media files captured in last task. Unable to perform current task. Try again later.
75
144
  :319018: Unable to perform task. Dock uploading issue logs. Try again later.
76
145
  :319019: Unable to perform task. Dock obtaining issue logs. Try again later.
146
+ :319020: Failed to pause flight task. Try again later.
147
+ :319021: Failed to disable Live Flight Controls. Try again later.
148
+ :319022: FlyTo task failed. Try again later.
149
+ :319023: Failed to stop FlyTo task. Try again later.
150
+ :319024: Takeoff failed. Try again later.
77
151
  :319025: Task in preparation. Dock unable to perform task distributed from cloud. Try again later.
78
152
  :319026: Aircraft battery level lower than set value. Unable to perform task. Wait until charging completes and try again.
79
153
  :319027: Insufficient storage on dock or aircraft. Unable to perform task. Wait until media files are uploaded to cloud and try again.
154
+ :319028: Updating custom flight area...
155
+ :319029: Updating offline maps...
156
+ :319030: Operation failed. No aircraft control.
157
+ :319031: Flight control error. Refresh page and try again.
158
+ :319032: FlyTo task failed. Try again later.
159
+ :319033: Keyboard commands failed. Try again later.
160
+ :319034: Keyboard commands failed. Try again later.
161
+ :319035: Failed to pause. Try again later.
162
+ :319036: Device in remote debugging mode. Try again later.
163
+ :319037: Device in on-site debugging mode. Try again later.
164
+ :319038: Updating device. Try again later.
165
+ :319042: Failed to resume flight. Try again later.
166
+ :319043: Failed to cancel RTH. Try again later.
167
+ :319044: Task completed. Unable to resume.
168
+ :319045: Aircraft paused. Operate aircraft by keyboard commands.
169
+ :319046: Task completed or paused. Unable to pause.
80
170
  :319999: Dock system error. Restart dock and try again.
81
171
  :321000: Task error. Try again later or restart dock and try again.
82
172
  :321004: Failed to process flight route file. Unable to perform task. Check file.
@@ -88,10 +178,14 @@
88
178
  :321513: Unable to perform task. Flight route altitude greater than aircraft max flight altitude.
89
179
  :321514: Failed to perform task. Flight route start or end point in buffer zone or exceeds distance limit.
90
180
  :321515: Unable to perform task. Aircraft will fly across GEO Zone.
91
- :321517: Obstacle sensed. Task stopped.
181
+ :321516: Flight altitude too low. Task stopped.
182
+ :321517: Obstacle detected. Task stopped. To ensure flight safety, do not resume task from breakpoint.
92
183
  :321519: Aircraft approached GEO Zone or reached max distance and automatically returned to home. Unable to complete task.
93
- :321523: Failed to start motors. Try again later. Contact DJI Support if issue persists.
184
+ :321523: Failed to take off. Try again later. Contact DJI Support if issue persists.
94
185
  :321524: The preparation before takeoff of the aircraft has failed, possibly due to the aircraft's inability to locate or gear error. Please check the status of the aircraft.
186
+ :321528: Approaching boundary of custom flight area. Flight task paused.
187
+ :321529: Unable to reach FlyTo destination. Task paused. FlyTo destination inside Restricted Zone or obstacle area. Adjust route and try again.
188
+ :321530: Task paused. Failed to plan flight route.
95
189
  :321769: Aircraft satellite positioning signal weak. Unable to perform task. Restart dock and try again.
96
190
  :321770: Aircraft flight mode error. Unable to perform task. Restart dock and try again.
97
191
  :321771: Aircraft Home Point not set. Unable to perform task. Restart dock and try again.
@@ -101,9 +195,11 @@
101
195
  :321776: Failed to converge aircraft RTK data. Unable to perform task. Restart dock and try again.
102
196
  :321777: Aircraft not hovering. Unable to start task.
103
197
  :321778: Unable to perform task. Aircraft controlled by Controller B, and propellers started.
104
- :322282: Task stopped. Aircraft control obtained by cloud user or Controller B.
198
+ :321784: Aircraft returned to home during task due to strong wind.
199
+ :322282: Task stopped. Aircraft control obtained by cloud user or remote controller.
105
200
  :322283: RTH command sent by user. Aircraft unable to complete task.
106
201
  :322539: Breakpoint info error. Dock unable to perform task.
202
+ :322563: Failed to generate flight route. Check if vision sensor is stained or restart aircraft and try again. Contact DJI Support if issue persists.
107
203
  :324012: Compressing logs timed out. Too many logs selected. Unselect some logs and try again.
108
204
  :324013: Failed to obtain device log list. Try again later.
109
205
  :324014: Device log list is empty. Refresh page or restart dock and try again.
@@ -112,22 +208,171 @@
112
208
  :324017: Failed to compress logs. Unable to obtain logs of selected aircraft. Refresh page or restart dock and try again.
113
209
  :324018: Failed to obtaining logs and submit issue report. Try again later or restart dock and try again.
114
210
  :324019: Due to network anomalies at the airport, the log upload has failed. Please retry later. If this issue persists, please contact your agent or DJI Support for network troubleshooting.
115
- :325001: Cloud command parameter error. Dock unable to execute command.
211
+ :324021: Failed to export log. Dock power supply off or restarted. Try again later.
212
+ :324030: Failed to upload media files due to reasons such as dock network or aircraft image transmission error.
213
+ :325001: Cloud command parameter error. Device unable to execute command.
214
+ :325003: Command failed. Try again.
215
+ :325004: Device command request timed out. Try again.
216
+ :325005: Dock unable to respond to current task. Try again later.
217
+ :325006: Dock in task preparation status. Try again later.
218
+ :325007: Dock is performing task. Try again later.
219
+ :325008: Dock is processing task output. Try again later.
220
+ :325009: Dock is exporting logs to cloud. Try again later.
221
+ :325010: Dock is updating custom flight area. Try again later.
222
+ :325011: Dock is updating offline map. Try again later.
223
+ :325012: Aircraft not connected. Try again later.
224
+ :326002: No DJI Cellular Dongle on aircraft.
225
+ :326003: No SIM card in DJI Cellular Dongle of aircraft.
226
+ :326004: Updating DJI Cellular Dongle of aircraft required. Otherwise, features will be unavailable.
227
+ :326005: Operation failed. Check 4G signal or contact network provider to check data allowance and APN settings.
228
+ :326006: Failed to change enhanced transmission status. Try again later.
229
+ :326008: No DJI Cellular Dongle in dock.
230
+ :326009: No SIM card in DJI Cellular Dongle of dock.
231
+ :326010: Updating DJI Cellular Dongle of dock required. Otherwise, features will be unavailable.
232
+ :326103: Activating eSIM. Try again later.
233
+ :326104: Switching network provider. Try again later.
234
+ :326105: Switching DJI Cellular Dongle mode. Try again later.
235
+ :326106: DJI Cellular Dongle error. Restart device and try again. Contact DJI Support if issue persists.
236
+ :326107: Click Devices > Dock > Device Maintenance to activate eSIM of DJI Cellular Dongle or insert SIM card and try again.
237
+ :327000: Failed to set parameters. Try again later.
238
+ :327001: Failed to set parameters. Try again later.
239
+ :327002: Failed to obtain control. Try again later.
240
+ :327003: Failed to obtain control. Try again later.
241
+ :327004: Failed to drag livestream view. Try again later.
242
+ :327005: Failed to center livestream view around clicked point.
243
+ :327006: Failed to take photo.
244
+ :327007: Failed to start recording.
245
+ :327008: Failed to stop recording.
246
+ :327009: Failed to switch camera modes.
247
+ :327010: Failed to zoom in/out with zoom camera.
248
+ :327011: Failed to zoom in/out with IR camera.
249
+ :327012: Failed to obtain control. Try again later.
250
+ :327013: Failed to set parameters. Try again later.
251
+ :327014: Gimbal reached movement limit.
252
+ :327015: Failed to start livestream. Refresh livestream view or reopen device status window.
253
+ :327016: Failed to set signal lost action. Try again.
254
+ :327017: Failed to set FlyTo altitude. Try again.
255
+ :327018: Failed to change FlyTo mode. Try again.
256
+ :327019: Failed to face PinPoint in current status.
257
+ :327020: Panorama stopp failed,Command timed out.
258
+ :327050: Broadcast not supported in current device status.
259
+ :327051: Failed to download audio file.
260
+ :327052: Failed to switch operating modes of speaker.
261
+ :327053: Failed to upload audio file.
262
+ :327054: Failed to play audio.
263
+ :327055: Failed to set work mode.
264
+ :327056: Failed to upload text.
265
+ :327057: Failed to stop playing.
266
+ :327058: Failed to set play mode.
267
+ :327059: Failed to set volume.
268
+ :327060: Failed to set widget value.
269
+ :327061: Failed to send text value.
270
+ :327062: Failed to switch system languages.
271
+ :327063: Failed to obtain device function list.
272
+ :327064: Failed to obtain device configuration file.
273
+ :327065: Failed to obtain device photos.
274
+ :327066: Failed to compress device file.
275
+ :327067: Failed to upload device file.
276
+ :327068: Failed to upload audio file. MD5 checksum error.
277
+ :327069: Failed to upload audio file.
278
+ :327070: Failed to upload audio file. Abnormal termination.
279
+ :327071: Failed to upload TTS file. MD5 checksum error.
280
+ :327072: Failed to upload TTS file.
281
+ :327073: Failed to upload TTS file. Abnormal termination.
282
+ :327074: Replay failed.
283
+ :327075: Speaker encoding failed.
284
+ :327201: Taking panorama failed.
285
+ :327202: Panorama stopped.
286
+ :327203: Panorama not supported on current device.
287
+ :327204: System busy.Panorama not allowed.
288
+ :327205: Request failed.Panorama not allowed.
289
+ :327206: Aircraft not in flight. Unable to take panorama.
290
+ :327207: Getting control failed. Panorama stopped.
291
+ :327208: Unknown camera error. Unable to start panorama.
292
+ :327209: Camera response timed out. Panorama stopped.
293
+ :327210: Panorama not allowed.
294
+ :327211: Insufficient storage. Panorama stopped.
295
+ :327212: Aircraft moving. Unable to take panorama.
296
+ :327213: Gimbal moving. Unable to take panorama.
297
+ :327214: Control stick moved. Panorama stopped.
298
+ :327215: Max altitude limit reached. Panorama stopped.
299
+ :327216: Max distance reached. Panorama stopped.
300
+ :327217: Gimbal stuck. Panorama stopped.
301
+ :327218: Taking photo failed. Panorama stopped.
302
+ :327219: Stitching panorama failed.
303
+ :327220: Loading calibration parameters failed. Panorama stopped.
304
+ :327221: Adjusting camera parameters failed. Panorama stopped.
116
305
  :327500: Failed to defog lens. Try again later.
306
+ :328051: CAAC registration is not completed. Connect to remote controller and complete registration based on instructions before flight.
307
+ :328052: CAAC registration is canceled. Connect to remote controller and complete registration based on instructions before flight.
308
+ :336000: Failed to send FlyTo command. Try again.
309
+ :336001: Aircraft data error. Unable to respond to command.
310
+ :336002: Aircraft GPS signal weak.
311
+ :336003: Aircraft positioning error. Unable to respond to command.
312
+ :336004: Failed to plan FlyTo task.
313
+ :336005: Home Point not updated.
314
+ :336006: Aircraft signal lost. FlyTo task exited.
315
+ :336017: Unable to complete task with current aircraft battery level.
316
+ :336018: FlyTo mode changed.
317
+ :336019: FlyTo altitude exceeds limit. Altitude automatically adjusted.
318
+ :336513: FlyTo destination in Restricted Zone.
319
+ :336514: FlyTo destination exceeds max flight distance.
320
+ :336515: FlyTo destination in Restricted Zone.
321
+ :336516: FlyTo destination exceeds max flight altitude.
322
+ :336517: FlyTo destination is below min flight altitude.
323
+ :337025: Unable to take off.
324
+ :337026: FlyTo destination error. Try again.
325
+ :337027: Aircraft speed setting error. Try again.
326
+ :337028: Aircraft version error. Check aircraft version.
327
+ :337029: Aircraft unable to respond to current task. Try again later.
328
+ :337030: Clearance altitude for FlyTo task is too low.
329
+ :337537: Reached Restricted Zone.
330
+ :337538: Reached aircraft max flight distance.
331
+ :337539: Reached Restricted Zone.
332
+ :337540: Aircraft reached max flight altitude or altitude limit in Altitude Zone.
333
+ :337541: Reached aircraft min flight altitude.
334
+ :337542: Failed to take off. Try again.
335
+ :337543: FlyTo destination may be within obstacle area. Check surrounding environment.
336
+ :337544: Obstacle detected. Check surrounding environment.
337
+ :337545: FlyTo task planning error. Try again.
338
+ :337546: Reached custom flight area boundary.
339
+ :338001: Unable to perform task. Aircraft communication error. Restart aircraft and dock and try again.
340
+ :338002: Unable to perform task. Aircraft communication error. Restart aircraft and dock and try again.
341
+ :338003: Unable to perform task. Aircraft communication error. Restart aircraft and dock and try again.
342
+ :338004: Unable to perform task. Aircraft communication error. Restart aircraft and dock and try again.
343
+ :338005: Unable to perform task. Distance between docks must not exceed 15 km.
344
+ :338006: Unable to perform task. Make sure unlocking license is applied for the area where aircraft lands and dock is not in custom Restricted Zone or outside custom flight area.
345
+ :338007: Unable to perform task. Dock altitude higher than altitude limit in Altitude Zone. Aircraft will not be able to land on dock. Apply for unlocking license and try again.
346
+ :338008: Unable to perform task. Dock altitude higher than max flight altitude. Aircraft unable to land on dock. Adjust flight altitude limit and try again.
347
+ :338009: Unable to perform task. GPS signal weak. Restart aircraft and try again.
348
+ :338010: Unable to perform task. Aircraft positioning error. Restart aircraft and try again.
349
+ :338011: Task failed. Dock for landing is outside of flight geography area. Plan task and try again.
350
+ :338017: Unable to perform task. Aircraft data update error. Restart aircraft and try again.
351
+ :338018: Unable to perform task. Failed to update aircraft data. Restart aircraft and try again.
352
+ :338019: Unable to perform task. Planning RTH route to selected dock. Restart aircraft and try again.
353
+ :338020: Unable to perform task. Aircraft unable to land on selected dock based on planned route. Select another dock and try again.
354
+ :338021: Unable to perform task. Battery level insufficient for aircraft to land on selected dock. Charge aircraft and try again.
355
+ :338049: Control stick moved. FlyTo task exited.
356
+ :338050: Aircraft responds to command to end task. FlyTo task exited.
357
+ :338051: Aircraft battery level low and returning to home. FlyTo task exited.
358
+ :338052: Aircraft battery level low. Aircraft landing. FlyTo task exited.
359
+ :338053: Crewed aircraft nearby. FlyTo task exited.
360
+ :338054: Aircraft responds to task with higher priority. FlyTo task exited.
361
+ :338255: Unable to perform task. Aircraft communication error. Restart aircraft and dock and try again.
117
362
  :386535: Task error. Try again later or restart dock and try again.
118
- :513001: Livestream failed. Aircraft does not exist or aircraft type error.
119
363
  :513002: Livestream failed. Camera does not exist or camera type error.
120
364
  :513003: Camera livestream in progress. Do not start livestream again.
121
365
  :513005: Livestream failed. Livestream definition setting error.
122
- :513006: Operation failed. Livestream not enabled.
366
+ :513006: Failed to start livestream. Refresh and try again.
123
367
  :513008: Livestream failed. Image transmission data on device is abnormal.
124
368
  :513010: Livestream failed. Device unable to connect to network.
125
369
  :513011: Operation failed. Livestream not enabled.
126
370
  :513012: Livestream failed. Device livestream in progress. Switching lens not supported.
127
371
  :513013: Livestream failed. Video transmission protocol not supported.
128
372
  :513014: Livestream failed. Livestream parameter error or incomplete.
129
- :513015: Livestream error. Network lags.
373
+ :513015: Livestream error. Network lags. Please refresh and retry.
130
374
  :513016: Livestream error. Video decoding failed.
375
+ :513017: Livestream paused. Wait until aircraft file download is completed.
131
376
  :513099: Livestream failed. Try again later.
132
377
  :514100: Dock error. Restart dock and try again.
133
378
  :514101: Failed to push driving rods into place. Make sure landing pad is clear of obstacles and aircraft heading is the same as arrow direction, or restart dock and try again.
@@ -138,7 +383,7 @@
138
383
  :514106: Aircraft battery error. Restart dock and try again.
139
384
  :514107: Failed to open dock cover. Make sure dock cover is clear of obstacles or restart dock and try again.
140
385
  :514108: Failed to close dock cover. Make sure dock cover is clear of obstacles or restart dock and try again.
141
- :514109: Failed to power on aircraft. Restart dock and try again.
386
+ :514109: Failed to power on aircraft. Check if aircraft is inside dock, aircraft battery level is sufficient. Restart dock and try again.
142
387
  :514110: Failed to power off aircraft. Restart dock and try again.
143
388
  :514111: Propeller error in slow motion mode. Restart dock and try again.
144
389
  :514112: Propeller error in slow motion mode. Restart dock and try again.
@@ -154,9 +399,9 @@
154
399
  :514124: Failed to obtain aircraft battery information. Unable to perform task. Restart dock and try again.
155
400
  :514125: Aircraft battery level almost full. Unable to start charging. Charge battery when battery level is lower than 95%.
156
401
  :514134: Heavy rainfall. Unable to perform task. Try again later.
157
- :514135: Wind speed too high (≥12 m/s). Unable to perform task. Try again later.
402
+ :514135: Unable to perform task. Wind speed too high. Try again later.
158
403
  :514136: Dock power supply error. Unable to perform task. Resume power supply and try again.
159
- :514137: Environment temperature too low (< -20° C). Unable to perform task. Try again later.
404
+ :514137: Environment temperature lower than -20° C (-4°F). Unable to perform task. Try again later.
160
405
  :514138: Maintaining aircraft battery. Unable to perform task. Wait until maintenance is complete.
161
406
  :514139: Failed to maintain aircraft battery. No maintenance required.
162
407
  :514140: Failed to maintain aircraft battery. No maintenance required.
@@ -164,22 +409,34 @@
164
409
  :514142: Connection error between driving rod and aircraft before takeoff. Check if aircraft is inside dock, driving rods are stuck, or charging connector is stained or damaged.
165
410
  :514143: Driving rods pulled back or not pushed into place. Try again later or restart dock and try again.
166
411
  :514144: Dock cover is open or not fully closed. Try again later or restart dock and try again.
167
- :514145: Dock in onsite debugging mode. Unable to perform current operation or task. Disconnect dock from remote controller and try again.
412
+ :514145: Dock in on-site debugging mode. Unable to perform current operation or task. Disconnect dock from remote controller and try again.
168
413
  :514146: Dock in remote debugging mode. Unable to perform task. Exit debugging mode and try again.
169
- :514147: Updating device firmware. Unable to perform task. Wait until update is complete.
414
+ :514147: Unable to start remote debugging or perform task. Updating device firmware. Wait until update is complete.
170
415
  :514148: Task in progress. Dock unable to enter remote debugging mode or perform task again. Wait until current task is complete and try again.
171
416
  :514149: Dock system error. Unable to perform task. Restart dock and try again.
172
417
  :514150: Restarting device. Unable to perform task. Wait until restart is complete.
173
418
  :514151: Updating device firmware. Unable to restart device. Wait until update is complete.
174
419
  :514153: Dock exited remote debugging mode. Unable to perform current operation.
420
+ :514154: Failed to obtain internal circulation supply vent temperature. Try again later.
421
+ :514156: Aircraft is outside of dock. Make sure aircraft has safely landed and place aircraft inside dock.
422
+ :514157: Failed to power on. Wireless charging module busy. Restart dock and try again.
423
+ :514158: Unable to take off. Dock RTK error. Restart dock and try again.
424
+ :514159: Task failed. Aircraft detected in dock for landing. Make sure there is no aircraft inside the dock and try again.
425
+ :514162: Failed to connect aircraft and dock. Close dock cover or restart dock and try again.
426
+ :514163: Battery error. Make sure battery is inserted properly or restart aircraft and try again.
427
+ :514164: Failed to restart device. Try again later. Contact DJI Support if issue persists.
428
+ :514165: Failed to restart device. Try again later. Contact DJI Support if issue persists.
175
429
  :514170: Initializing dock. Unable to perform operation. Wait until initialization completes.
176
430
  :514171: Cloud command parameter error. Dock unable to execute command.
431
+ :514172: Unable to power off aircraft. Bluetooth disconnected. Restart aircraft and dock remotely or reconnect on-site and try again.
432
+ :514173: Unable to perform task. Ambient temperature lower than 5° C and rainfall intensity is moderate rain or heavier, which may result in propellers being frozen.
433
+ :514174: Failed to charge aircraft. Dock cover open or not properly closed. Close dock cover and try again.
177
434
  :514180: Failed to disable AC cooling or heating. Try again later.
178
435
  :514181: Failed to enable AC cooling. Try again later.
179
436
  :514182: Failed to enable AC heating. Try again later.
180
437
  :514183: Failed to enable AC dehumidifying. Try again later.
181
- :514184: Ambient temperature below 0° C. Unable to enable AC cooling.
182
- :514185: Ambient temperature above 45° C. Unable to enable AC heating.
438
+ :514184: Ambient temperature below 0° C (32°F). Unable to enable AC cooling.
439
+ :514185: Ambient temperature above 45° C (115°F). Unable to enable AC heating.
183
440
  :514300: Gateway error.
184
441
  :514301: Request timed out. Disconnected.
185
442
  :514302: Network certificate error. Connection failed.
@@ -604,6 +604,7 @@ module DjiMqttConnect
604
604
  wayline_id: 0
605
605
  },
606
606
  rth_altitude: 100,
607
+ rth_mode: 1,
607
608
  out_of_control_action: 0,
608
609
  exit_wayline_when_rc_lost: 0
609
610
  }
@@ -6,10 +6,13 @@ module DjiMqttConnect
6
6
  attribute :_method, Types::String.enum("takeoff_to_point_progress")
7
7
 
8
8
  attribute :data do
9
+ include Mixins::ResultMessage
10
+
11
+ attribute :result, Types::ResultCode
12
+
9
13
  attribute :flight_id, Types::String
10
14
  attribute :remaining_distance, Types::Integer
11
15
  attribute :remaining_time, Types::Integer
12
- attribute :result, Types::Integer
13
16
  attribute :status, Types::String
14
17
  attribute :track_id, Types::String | Types::Nil
15
18
  attribute :way_point_index, Types::Integer
@@ -25,6 +25,8 @@ module DjiMqttConnect
25
25
 
26
26
  attribute :_method, Types::String.enum("flight_areas_get")
27
27
  attribute :data do
28
+ include Mixins::ResultMessage
29
+
28
30
  attribute :result, Types::ResultCode
29
31
 
30
32
  attribute :output do
@@ -25,6 +25,8 @@ module DjiMqttConnect
25
25
 
26
26
  attribute :_method, Types::String.enum("offline_map_get")
27
27
  attribute :data do
28
+ include Mixins::ResultMessage
29
+
28
30
  attribute :result, Types::ResultCode
29
31
 
30
32
  # Debugging issues related to the offline map
@@ -75,6 +75,9 @@ module DjiMqttConnect
75
75
  # {"unit":"meter","min":20,"max":1500}
76
76
  attribute :rth_altitude, Types::Integer.constrained(gteq: 20, lteq: 1500)
77
77
 
78
+ # {"0":"Intelligent altitude","1":"Preset altitude"}
79
+ attribute? :rth_mode, Types::Integer.enum(0, 1)
80
+
78
81
  # {"0":"Return to Home (RTH)","1":"Hovering","2":"Landing"}
79
82
  attribute :out_of_control_action, Types::Integer.enum(0, 1, 2)
80
83
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.23.3"
4
+ VERSION = "0.1.24"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dji_mqtt_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23.3
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones