Class: DjiMqttConnect::Thing::Product::FlighttaskProgressEventsMessage
- Inherits:
-
EventsMessage
- Object
- Dry::Struct
- Message
- EventsMessage
- DjiMqttConnect::Thing::Product::FlighttaskProgressEventsMessage
- Defined in:
- lib/dji_mqtt_connect/messages/thing/product/events/flighttask_progress.rb
Overview
Report wayline task progress https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/wayline.html#report-wayline-task-progress https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock2/wayline.html#report-mission-progress
Instance Method Summary collapse
-
#flight_ids ⇒ Object
All the flight IDs in the message.
- #humanized_summary ⇒ Object
- #humanized_summary_interpolation ⇒ Object
Methods inherited from EventsMessage
Methods inherited from Message
current_timestamp, generate_bid, generate_tid, #to_s
Instance Method Details
#flight_ids ⇒ Object
All the flight IDs in the message
102 103 104 |
# File 'lib/dji_mqtt_connect/messages/thing/product/events/flighttask_progress.rb', line 102 def flight_ids [data.output.ext.flight_id] end |
#humanized_summary ⇒ Object
81 82 83 84 85 86 87 88 |
# File 'lib/dji_mqtt_connect/messages/thing/product/events/flighttask_progress.rb', line 81 def humanized_summary return super unless data.output.ext.break_point Translations.thing_product_events_summary( "#{_method}_with_break_point", **humanized_summary_interpolation ) end |
#humanized_summary_interpolation ⇒ Object
90 91 92 93 94 95 96 97 98 99 |
# File 'lib/dji_mqtt_connect/messages/thing/product/events/flighttask_progress.rb', line 90 def humanized_summary_interpolation super.merge( status: data.output.humanized_status, percent: data.output.progress.percent, current_step: data.output.progress.humanized_current_step, wayline_mission_state: data.output.ext.humanized_wayline_mission_state || "-", flight_id: data.output.ext.flight_id, break_reason: data.output.ext.break_point&.humanized_break_reason || "-" ) end |