dji_mqtt_connect 0.1.30 → 0.1.30.1
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/lib/dji_mqtt_connect/messages/thing/product/osd/drone.rb +1 -1
- data/lib/dji_mqtt_connect/messages/thing/product/osd/flight_hub_drone.rb +122 -1
- data/lib/dji_mqtt_connect/messages/thing/product/state_message.rb +7 -2
- data/lib/dji_mqtt_connect/types.rb +2 -0
- data/lib/dji_mqtt_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebc14e4ca0bf1f712c0875c20cdbd99b027560336c41a93a25583ddf4aec97aa
|
4
|
+
data.tar.gz: 6366d350a9f9cc6c82d5d207dee6b81278814543aaa46be40c70264869c2f841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ff2883c6259b1824c98a1d059db98a7ce6d2f05199c869c0ac26c93cf650677b9451a0e88dc7f174ba3a9f05f00c82ad2ea59d8b7c9119fad1b39752cef8fe
|
7
|
+
data.tar.gz: 6b4d733ea7f5394419408963a9ae86a67ee3289b261140eaeffa57766782da1014c28418bd215d20573092eb606b0a02c66707a74d49ae3c18865d30311606dc
|
@@ -58,8 +58,84 @@ module DjiMqttConnect
|
|
58
58
|
|
59
59
|
attribute :remain_flight_time, Types::Integer
|
60
60
|
|
61
|
+
attribute? :remain_job_time, Types::Integer
|
62
|
+
|
61
63
|
attribute :return_home_power, Types::Integer
|
62
64
|
end
|
65
|
+
|
66
|
+
attribute? :best_link_gateway, Types::SerialNumber.optional
|
67
|
+
|
68
|
+
attribute? :cameras, Types::Array do
|
69
|
+
attribute :camera_mode, Types::Integer
|
70
|
+
|
71
|
+
attribute :liveview_world_region do
|
72
|
+
attribute :bottom, Types::JSON::Decimal
|
73
|
+
attribute :left, Types::JSON::Decimal
|
74
|
+
attribute :right, Types::JSON::Decimal
|
75
|
+
attribute :top, Types::JSON::Decimal
|
76
|
+
end
|
77
|
+
|
78
|
+
attribute :payload_index, Types::PayloadIndex
|
79
|
+
|
80
|
+
attribute :photo_state, Types::Integer
|
81
|
+
|
82
|
+
attribute :record_time, Types::Integer
|
83
|
+
|
84
|
+
attribute? :recording_state, Types::Integer
|
85
|
+
|
86
|
+
attribute :remain_photo_num, Types::Integer
|
87
|
+
|
88
|
+
attribute :remain_record_duration, Types::Integer
|
89
|
+
|
90
|
+
attribute :wide_calibrate_farthest_focus_value, Types::Integer
|
91
|
+
|
92
|
+
attribute :wide_calibrate_nearest_focus_value, Types::Integer
|
93
|
+
|
94
|
+
attribute :wide_exposure_mode, Types::Integer
|
95
|
+
|
96
|
+
attribute :wide_exposure_value, Types::Integer
|
97
|
+
|
98
|
+
attribute :wide_focus_mode, Types::Integer
|
99
|
+
|
100
|
+
attribute :wide_focus_state, Types::Integer
|
101
|
+
|
102
|
+
attribute :wide_focus_value, Types::Integer
|
103
|
+
|
104
|
+
attribute :wide_iso, Types::Integer
|
105
|
+
|
106
|
+
attribute :wide_max_focus_value, Types::Integer
|
107
|
+
|
108
|
+
attribute :wide_min_focus_value, Types::Integer
|
109
|
+
|
110
|
+
attribute :wide_shutter_speed, Types::Integer
|
111
|
+
|
112
|
+
attribute :zoom_calibrate_farthest_focus_value, Types::Integer
|
113
|
+
|
114
|
+
attribute :zoom_calibrate_nearest_focus_value, Types::Integer
|
115
|
+
|
116
|
+
attribute :zoom_exposure_mode, Types::Integer
|
117
|
+
|
118
|
+
attribute :zoom_exposure_value, Types::Integer
|
119
|
+
|
120
|
+
attribute :zoom_factor, Types::JSON::Decimal
|
121
|
+
|
122
|
+
attribute :zoom_focus_mode, Types::Integer
|
123
|
+
|
124
|
+
attribute :zoom_focus_state, Types::Integer
|
125
|
+
|
126
|
+
attribute :zoom_focus_value, Types::Integer
|
127
|
+
|
128
|
+
attribute :zoom_iso, Types::Integer
|
129
|
+
|
130
|
+
attribute :zoom_max_focus_value, Types::Integer
|
131
|
+
|
132
|
+
attribute :zoom_min_focus_value, Types::Integer
|
133
|
+
|
134
|
+
attribute :zoom_shutter_speed, Types::Integer
|
135
|
+
end
|
136
|
+
|
137
|
+
attribute? :country, Types::String
|
138
|
+
|
63
139
|
attribute? :distance_limit_status do
|
64
140
|
attribute :distance_limit, Types::Integer
|
65
141
|
|
@@ -75,6 +151,15 @@ module DjiMqttConnect
|
|
75
151
|
|
76
152
|
attribute? :firmware_version, Types::String | Types::Nil
|
77
153
|
|
154
|
+
attribute? :fts_info do
|
155
|
+
attribute :fts_firmware_version, Types::String.optional
|
156
|
+
attribute :fts_sn, Types::SerialNumber.optional
|
157
|
+
attribute :fts_status, Types::Integer
|
158
|
+
attribute :fts_timestamp, Types::Integer
|
159
|
+
attribute :fts_valid_duration, Types::Integer
|
160
|
+
attribute :fts_verification_code, Types::String.optional
|
161
|
+
end
|
162
|
+
|
78
163
|
attribute :gear, Types::Integer
|
79
164
|
|
80
165
|
attribute :height, Types::JSON::Decimal
|
@@ -85,16 +170,41 @@ module DjiMqttConnect
|
|
85
170
|
|
86
171
|
attribute :horizontal_speed, Types::JSON::Decimal
|
87
172
|
|
173
|
+
attribute? :is_near_area_limit, Types::Integer.enum(0, 1)
|
174
|
+
|
175
|
+
attribute? :is_near_height_limit, Types::Integer.enum(0, 1)
|
176
|
+
|
88
177
|
attribute :latitude, Types::Latitude
|
89
178
|
include Mixins::Latitude
|
90
179
|
|
91
180
|
attribute :longitude, Types::Longitude
|
92
181
|
include Mixins::Longitude
|
93
182
|
|
94
|
-
|
183
|
+
attribute? :maintain_status do
|
184
|
+
attribute :maintain_status_array, Types::Array do
|
185
|
+
attribute :last_maintain_flight_sorties, Types::Integer
|
186
|
+
|
187
|
+
attribute :last_maintain_flight_time, Types::Integer
|
95
188
|
|
189
|
+
attribute :last_maintain_time, Types::Integer
|
190
|
+
|
191
|
+
attribute :last_maintain_type, Types::Integer
|
192
|
+
|
193
|
+
attribute :state, Types::Integer
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# {"0":"Standby","1":"Takeoff preparation","2":"Takeoff preparation completed","3":"Manual flight","4":"Automatic takeoff","5":"Wayline flight","6":"Panoramic photography","7":"Intelligent tracking","8":"ADS-B avoidance","9":"Auto returning to home","10":"Automatic landing","11":"Forced landing","12":"Three-blade landing","13":"Upgrading","14":"Not connected","15":"APAS","16":"Virtual stick state","17":"Live Flight Controls","18":"Airborne RTK fixing mode","19":"Dock address selecting","20":"POI"}
|
96
198
|
attribute :mode_code, Types::DroneModeCode
|
97
199
|
|
200
|
+
attribute? :night_lights_state, Types::Integer.enum(0, 1)
|
201
|
+
|
202
|
+
attribute? :obstacle_avoidance do
|
203
|
+
attribute :downside, Types::Integer.enum(0, 1)
|
204
|
+
attribute :horizon, Types::Integer.enum(0, 1)
|
205
|
+
attribute :upside, Types::Integer.enum(0, 1)
|
206
|
+
end
|
207
|
+
|
98
208
|
attribute :position_state do
|
99
209
|
attribute :gps_number, Types::Integer
|
100
210
|
|
@@ -105,6 +215,15 @@ module DjiMqttConnect
|
|
105
215
|
|
106
216
|
attribute :rtk_number, Types::Integer
|
107
217
|
end
|
218
|
+
|
219
|
+
# {"0":"Hovering","1":"Landing","2":"Returning to home"}
|
220
|
+
attribute? :rc_lost_action, Types::Integer.enum(0, 1, 2)
|
221
|
+
|
222
|
+
attribute? :rid_state, Types::Bool
|
223
|
+
|
224
|
+
# {"unit":"m","min":20,"max":500}
|
225
|
+
attribute? :rth_altitude, Types::Integer
|
226
|
+
|
108
227
|
attribute? :storage do
|
109
228
|
attribute :total, Types::Integer
|
110
229
|
|
@@ -113,6 +232,8 @@ module DjiMqttConnect
|
|
113
232
|
|
114
233
|
attribute :total_flight_distance, Types::JSON::Decimal
|
115
234
|
|
235
|
+
attribute? :total_flight_sorties, Types::Integer
|
236
|
+
|
116
237
|
attribute :total_flight_time, Types::JSON::Decimal
|
117
238
|
|
118
239
|
attribute? :track_id, Types::String | Types::Nil
|
@@ -104,7 +104,9 @@ module DjiMqttConnect
|
|
104
104
|
attribute :right, Types::JSON::Decimal
|
105
105
|
attribute :top, Types::JSON::Decimal
|
106
106
|
end
|
107
|
-
|
107
|
+
|
108
|
+
attribute :payload_index, Types::PayloadIndex
|
109
|
+
|
108
110
|
attribute? :photo_state, Types::Integer
|
109
111
|
attribute? :record_time, Types::Integer
|
110
112
|
attribute? :recording_state, Types::Integer
|
@@ -178,8 +180,11 @@ module DjiMqttConnect
|
|
178
180
|
|
179
181
|
attribute? :payloads, Types::Array do
|
180
182
|
attribute :control_source, Types::String | Types::Nil
|
183
|
+
|
181
184
|
attribute? :firmware_version, Types::String | Types::Nil
|
182
|
-
|
185
|
+
|
186
|
+
attribute :payload_index, Types::PayloadIndex
|
187
|
+
|
183
188
|
attribute? :sn, Types::SerialNumber | Types::Nil
|
184
189
|
end
|
185
190
|
|
@@ -184,6 +184,8 @@ module DjiMqttConnect
|
|
184
184
|
NETWORK_STATE_QUALITY_GOOD = 2
|
185
185
|
)
|
186
186
|
|
187
|
+
PayloadIndex = String.constrained(format: /\A\d+-\d+-\d+\z/)
|
188
|
+
|
187
189
|
PositionStateQuality = Types::Integer.enum(1, 2, 3, 4, 5, 10)
|
188
190
|
|
189
191
|
# {"0":"Closed","1":"Opened","2":"Half-open","3":"Putter state is abnormal"}
|