dji_mqtt_connect 0.1.37.2 → 0.1.37.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d8adb4158d9fccb1b45f7805444d7290fb52f064560ac2a12c9f56dbde24101
|
|
4
|
+
data.tar.gz: a06a8235b15b11109f9977ad90f528da0b563db1bc489688746b12f5d4cb86d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60974b5c22f1bc027dad9f6de5c8a342749cd8f6a28ea314a2ec21c17c2f3510f32db2c9e456eff8a53ef3bee633bea66b07af38b9f0fc36bed0c9d3cdac6bd9
|
|
7
|
+
data.tar.gz: be4b0c518320e4e6641fb37010fc517424ed7272ca92ad5bebf12eda3764e912e62439db542ab55e2e270d103490f91e80f698612d8e6bf839d549f72d791082
|
|
@@ -33,9 +33,23 @@ module DjiMqttConnect
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
# Dock 3 sends tilt_angle as a bare value, with validity in tilt_valid_flag
|
|
37
|
+
# i.e. "tilt_angle":0.18,"tilt_valid_flag":1
|
|
38
|
+
guard ->(data) { data["tilt_angle"].is_a?(Numeric) } do
|
|
39
|
+
rename_keys "tilt_angle" => "value", "tilt_valid_flag" => "valid"
|
|
40
|
+
nest "tilt_angle", %w[value valid]
|
|
41
|
+
end
|
|
42
|
+
|
|
36
43
|
# FlightHub Dock messages have a host attribute
|
|
37
44
|
guard ->(data) { data.key?("host") } do
|
|
38
45
|
map_value "host" do
|
|
46
|
+
# Dock 3 sends tilt_angle as a bare value, with validity in tilt_valid_flag
|
|
47
|
+
# i.e. "tilt_angle":0.18,"tilt_valid_flag":1
|
|
48
|
+
guard ->(data) { data["tilt_angle"].is_a?(Numeric) } do
|
|
49
|
+
rename_keys "tilt_angle" => "value", "tilt_valid_flag" => "valid"
|
|
50
|
+
nest "tilt_angle", %w[value valid]
|
|
51
|
+
end
|
|
52
|
+
|
|
39
53
|
# Rename the invalid (for Ruby) wireless link attributes
|
|
40
54
|
guard ->(data) { data.key?("wireless_link") } do
|
|
41
55
|
# Translate wireless_link 4g keys (from remote payload)
|
|
@@ -25,7 +25,7 @@ module DjiMqttConnect
|
|
|
25
25
|
|
|
26
26
|
attribute :remaining_time, Types::JSON::Decimal
|
|
27
27
|
|
|
28
|
-
# {"task_finish":"One-key takeoff mission completed","task_ready":"Ready for takeoff","wayline_cancel":"Cancel flying to target point","wayline_failed":"Execution failed","wayline_ok":"Executed successfully, flown to target point","wayline_progress":"Executing"}
|
|
28
|
+
# {"task_finish":"One-key takeoff mission completed","task_ready":"Ready for takeoff","takeoff_prepare":"Preparing for takeoff","wayline_cancel":"Cancel flying to target point","wayline_failed":"Execution failed","wayline_ok":"Executed successfully, flown to target point","wayline_progress":"Executing"}
|
|
29
29
|
attribute :status, Types::TakeoffToPointProgressStatus
|
|
30
30
|
|
|
31
31
|
attribute :track_id, Types::String | Types::Nil
|
|
@@ -328,13 +328,14 @@ module DjiMqttConnect
|
|
|
328
328
|
)
|
|
329
329
|
|
|
330
330
|
# How far a one-key takeoff has got. The statuses a flight to a target point reports, plus the
|
|
331
|
-
#
|
|
332
|
-
# {"task_finish":"One-key takeoff mission completed","task_ready":"Ready for takeoff","wayline_cancel":"Cancel flying to target point","wayline_failed":"Execution failed","wayline_ok":"Executed successfully, flown to target point","wayline_progress":"Executing"}
|
|
331
|
+
# ones the takeoff itself reports. DJI does not document takeoff_prepare, but docks send it
|
|
332
|
+
# {"task_finish":"One-key takeoff mission completed","task_ready":"Ready for takeoff","takeoff_prepare":"Preparing for takeoff","wayline_cancel":"Cancel flying to target point","wayline_failed":"Execution failed","wayline_ok":"Executed successfully, flown to target point","wayline_progress":"Executing"}
|
|
333
333
|
TakeoffToPointProgressStatus = Types::String.enum(
|
|
334
334
|
FLY_TO_POINT_PROGRESS_STATUS_IN_PROGRESS,
|
|
335
335
|
FLY_TO_POINT_PROGRESS_STATUS_OK,
|
|
336
336
|
FLY_TO_POINT_PROGRESS_STATUS_FAILED,
|
|
337
337
|
FLY_TO_POINT_PROGRESS_STATUS_CANCELED,
|
|
338
|
+
TAKEOFF_TO_POINT_PROGRESS_STATUS_PREPARE = "takeoff_prepare",
|
|
338
339
|
TAKEOFF_TO_POINT_PROGRESS_STATUS_READY = "task_ready",
|
|
339
340
|
TAKEOFF_TO_POINT_PROGRESS_STATUS_FINISHED = "task_finish"
|
|
340
341
|
)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dji_mqtt_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.37.
|
|
4
|
+
version: 0.1.37.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sphere Drones
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|