Sha256: 9a03bea41988e91975a0a6b7adb5349e710f177abcc8223787c033f18cbf657d

Contents?: true

Size: 1.46 KB

Versions: 18

Compression:

Stored size: 1.46 KB

Contents

# frozen_string_literal: true

module DjiMqttConnect
  module Thing::Product
    class RemoteOsdMessage < OsdMessage
      attribute :data do
        include Mixins::LatitudeConditional
        include Mixins::LongitudeConditional

        attribute :capacity_percent, Types::Integer
        attribute :latitude, Types::Latitude
        attribute :live_status do
          attribute :live_time, Types::Integer
          attribute :live_trendline, Types::Integer
          attribute :video_id, Types::String
          attribute :video_quality, Types::Integer
        end
        attribute :longitude, Types::Longitude
        attribute :transmission_signal_quality, Types::Integer
        attribute? :wireless_link do
          attribute :_4g_freq_band, Types::JSON::Decimal
          attribute :_4g_gnd_quality, Types::Integer
          attribute :_4g_link_state, Types::Integer
          attribute :_4g_quality, Types::Integer
          attribute :_4g_uav_quality, Types::Integer
          attribute :dongle_number, Types::Integer
          attribute :link_workmode, Types::Integer
          attribute :sdr_freq_band, Types::JSON::Decimal
          attribute :sdr_link_state, Types::Integer
          attribute :sdr_quality, Types::Integer
        end
        attribute :wireless_link_state do
          attribute :download_quality, Types::Integer
          attribute :frequency_band, Types::Integer
          attribute :upward_quality, Types::Integer
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.15 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.14.1 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.14 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.13.1 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.13 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.12.1 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.12 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.11 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.10 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.9 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.8 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.7 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.6 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.5 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.4.1 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.4 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.3 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb
dji_mqtt_connect-0.1.2 lib/dji_mqtt_connect/messages/thing/product/remote_osd_message.rb