Sha256: 3c59b8a10e87158e018a846f9dec8ddd03a7c385e82341827d7b702fdb092412

Contents?: true

Size: 956 Bytes

Versions: 28

Compression:

Stored size: 956 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    # Cancel return to home
    #
    # After returning to home, the aircraft will exit the wayline mode. At this point, if the return-to-home command is canceled, the aircraft will hover.
    #
    # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/wayline.html#cancel-return-to-home
    class ReturnHomeCancelServicesMessage < Message
      def self.build(bid: generate_bid, tid: generate_tid, timestamp: current_timestamp)
        new(
          bid: bid,
          tid: tid,
          timestamp: timestamp,
          _method: "return_home_cancel"
        )
      end

      attribute :tid, Types::UUID
      attribute :bid, Types::UUID
      attribute :timestamp, Types::Timestamp

      attribute :_method, Types::String.enum("return_home_cancel")
      attribute :data, Types::Hash.default({}.freeze)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.16 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb
dji_mqtt_connect-0.1.15.2 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb
dji_mqtt_connect-0.1.15.1 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb
dji_mqtt_connect-0.1.15 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb
dji_mqtt_connect-0.1.14.1 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb
dji_mqtt_connect-0.1.14 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/services/return_home_cancel.rb