Class: DjiMqttConnect::Thing::Product::FlyToPointProgressEventsMessage

Inherits:
EventsMessage
  • Object
show all
Defined in:
lib/dji_mqtt_connect/messages/thing/product/events/fly_to_point_progress.rb

Overview

Instance Method Summary collapse

Methods inherited from EventsMessage

#humanized_summary, #need_reply?, #to_s

Methods inherited from Message

current_timestamp, generate_bid, generate_tid, #to_s

Instance Method Details

#flight_idsObject

All the flight IDs in the message



43
44
45
# File 'lib/dji_mqtt_connect/messages/thing/product/events/fly_to_point_progress.rb', line 43

def flight_ids
  []
end

#humanized_summary_interpolationObject



35
36
37
38
39
40
# File 'lib/dji_mqtt_connect/messages/thing/product/events/fly_to_point_progress.rb', line 35

def humanized_summary_interpolation
  super.merge(
    remaining_distance: data.remaining_distance.round(2).to_s("F"),
    remaining_time: data.remaining_time.round(2).to_s("F")
  )
end