dji_mqtt_connect 0.1.37.7 → 0.1.37.8

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: 127fe0fe90647f78ce5a4780c73fb368650d20799473278a45a42dbff11efd82
4
- data.tar.gz: d9b6dc615e7cdd91760855f3627279af8a16c3f13044e8a324863ae461a0214a
3
+ metadata.gz: 60fff37d4609cf3ba72054b394ea921fd4d5402970d5d08a18816e951f145ee4
4
+ data.tar.gz: f8b60b7a76e6bcb2b20f2da14447dcd2da4c7f6a18d0bd11739ba76852cf206e
5
5
  SHA512:
6
- metadata.gz: 9effc40fa3053a2c504a926d9d716e442ca2250e5b9d052ad7043a013d4ead122dc3055514df4bd2424fa1866a8ab5f78ba3e6c82dc0ea2f0bbf524e7174deed
7
- data.tar.gz: a7fcf77dac18d9b483a0ebffcfd9a809d4b594479ce685acd2744a2e0301c9039368ea25488c950d68a2e395265508f1ffa6b1ba4b983b3cbb0135ccfb053b26
6
+ metadata.gz: c0f4e65b55db608a175e3a6023a854fdb5d440f4b17ece1edebcc4dff272edf4aa1b65b54bff1317c67cb391b1297acafa9502f0062bee4ed2e18547a3082ded
7
+ data.tar.gz: c90374bcb9f3be0a9cc79ffa1cd3d3a48a6e68d0475722081772edce049d43e6257b59bcc8e60b41d011ac03471e21b487f3f2d3075d88c699aab02a3c1bf0f9
@@ -25,8 +25,14 @@ 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","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
- attribute :status, Types::TakeoffToPointProgressStatus
28
+ # {"landing_prepare":"Preparing for landing","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
+ # Docks send statuses DJI does not document, so an unknown status is kept rather than
30
+ # rejecting the message. Check status? before relying on it being one of the above.
31
+ attribute :status, Types::TakeoffToPointProgressStatus | Types::String
32
+
33
+ def status?
34
+ Types::TakeoffToPointProgressStatus.valid?(status)
35
+ end
30
36
 
31
37
  attribute :track_id, Types::String | Types::Nil
32
38
 
@@ -331,8 +331,9 @@ module DjiMqttConnect
331
331
  )
332
332
 
333
333
  # How far a one-key takeoff has got. The statuses a flight to a target point reports, plus the
334
- # ones the takeoff itself reports. DJI does not document takeoff_prepare, but docks send it
335
- # {"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"}
334
+ # ones the takeoff itself reports. DJI does not document takeoff_prepare or landing_prepare, but
335
+ # docks send them
336
+ # {"landing_prepare":"Preparing for landing","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"}
336
337
  TakeoffToPointProgressStatus = Types::String.enum(
337
338
  FLY_TO_POINT_PROGRESS_STATUS_IN_PROGRESS,
338
339
  FLY_TO_POINT_PROGRESS_STATUS_OK,
@@ -340,7 +341,8 @@ module DjiMqttConnect
340
341
  FLY_TO_POINT_PROGRESS_STATUS_CANCELED,
341
342
  TAKEOFF_TO_POINT_PROGRESS_STATUS_PREPARE = "takeoff_prepare",
342
343
  TAKEOFF_TO_POINT_PROGRESS_STATUS_READY = "task_ready",
343
- TAKEOFF_TO_POINT_PROGRESS_STATUS_FINISHED = "task_finish"
344
+ TAKEOFF_TO_POINT_PROGRESS_STATUS_FINISHED = "task_finish",
345
+ TAKEOFF_TO_POINT_PROGRESS_STATUS_LANDING_PREPARE = "landing_prepare"
344
346
  )
345
347
 
346
348
  # {"0":"Inform","1":"Notice","2":"Alarm"}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DjiMqttConnect
4
- VERSION = "0.1.37.7"
4
+ VERSION = "0.1.37.8"
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.37.7
4
+ version: 0.1.37.8
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-10-29 00:00:00.000000000 Z
11
+ date: 2026-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport