dji_mqtt_connect 0.1.30 → 0.1.30.2

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: 1970e0a7336ae5097dce7afb34a8ebd0d5267eee02c326199716ed2c95e7d276
4
- data.tar.gz: 21baf8d1756fb4add30ce19ae7cc4f7f3df7d893cbe18853a748d7c08a5aec06
3
+ metadata.gz: 9228a05f0a4255c439cbae85468ea3ef5a52a4dbc2aa4fff1337704035395687
4
+ data.tar.gz: 85440a3169f7c3d471376b95cbec487647d88b2090e79daf4d658ef7f3b8fc77
5
5
  SHA512:
6
- metadata.gz: f7a5b75dad5eba4150c375d573ed4ebbc9a808f20d388de161383e1e306254bf01177e229035b4f55836302699ff32fd431d78ffff9a09bb035e52198d6e10bf
7
- data.tar.gz: 46da87f973ee3ef4eb11beec649c3dcb4e7c392a778c72b66a82e766391b1102de9f585f614da69de81a2142e58b04a0ae3558a0c0e49eda3f712aabeac01f27
6
+ metadata.gz: c7673ae71b0526afc26edd0bbd896a453a7f2ac724b5a5738cd29bfb14ac3098cae32827216ad330663a5e4033376c139b622c0c3bd74dae579f6d40c035c38d
7
+ data.tar.gz: 2c007f30c60f9eb1089617befb50e749ad302d5ee3bab66bc849fcf81eca57fb6f8c40c082810440b64baacb9a401537f514718a31cb7fb49e462fed71df8dc5
@@ -100,7 +100,7 @@ module DjiMqttConnect
100
100
  # M30 Fields
101
101
 
102
102
  attribute? :cameras, Types::Array do
103
- attribute :payload_index, Types::String
103
+ attribute :payload_index, Types::PayloadIndex
104
104
 
105
105
  attribute? :camera_mode, Types::Integer
106
106
 
@@ -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.optional
73
+ attribute :left, Types::JSON::Decimal.optional
74
+ attribute :right, Types::JSON::Decimal.optional
75
+ attribute :top, Types::JSON::Decimal.optional
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
- # {"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"}
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
- attribute :payload_index, Types::String
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
- attribute :payload_index, Types::String
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"}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.30"
4
+ VERSION = "0.1.30.2"
5
5
  end
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.30
4
+ version: 0.1.30.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sphere Drones
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-10-07 00:00:00.000000000 Z
11
+ date: 2025-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport