Sha256: 556651f5eb3f2dfa3f71909240808ef5ef9538713f6c29ba4fab9ffc67da1ac9

Contents?: true

Size: 1.48 KB

Versions: 9

Compression:

Stored size: 1.48 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 :longitude, Types::Longitude

        attribute? :live_status do
          attribute :live_time, Types::Integer
          attribute :live_trendline, Types::Integer
          attribute :video_id, Types::String | Types::Nil
          attribute :video_quality, Types::Integer
        end
        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

9 entries across 9 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.24.1 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.24 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.23.3 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.23.2 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.23.1 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.23 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.22.2 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.22.1 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb
dji_mqtt_connect-0.1.22 lib/dji_mqtt_connect/messages/thing/product/osd/remote.rb