Sha256: 55830650b7d03694d540e60e64bff1ebea2adb7ad252a28fa66f3d475ac0dd17

Contents?: true

Size: 856 Bytes

Versions: 15

Compression:

Stored size: 856 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    # https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/wayline.html#return-to-home-information
    class ReturnHomeInfoEventsMessage < EventsMessage
      attribute :_method, Types::String.enum("return_home_info")

      attribute :data do
        attribute :planned_path_points, Types::Array do
          attribute :latitude, Types::Latitude
          attribute :longitude, Types::Longitude
          attribute :height, Types::JSON::Decimal
        end

        # {"0":"Last point of trajectory is located above the return point.","1":"Last point of trajectory is not located above the return point."}
        attribute :last_point_type, Types::Integer.enum(0, 1)

        attribute :flight_id, Types::String
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.24 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.23.3 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.23.2 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.23.1 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.23 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.22.2 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.22.1 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.22 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.21 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.20.1 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.20 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.19.2 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.19.1 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.19 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb
dji_mqtt_connect-0.1.18 lib/dji_mqtt_connect/messages/thing/product/events/return_home_info.rb