Class: DjiMqttConnect::Thing::Product::JoystickInvalidNotifyEventsMessage
- Inherits:
-
EventsMessage
- Object
- Dry::Struct
- Message
- EventsMessage
- DjiMqttConnect::Thing::Product::JoystickInvalidNotifyEventsMessage
- Defined in:
- lib/dji_mqtt_connect/messages/thing/product/events/joystick_invalid_notify.rb
Overview
Notification of joystick control invalidity reasons https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/drc.html#notification-of-joystick-control-invalidity-reasons https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/dock-to-cloud/mqtt/dock/dock2/drc.html#notification-of-joystick-control-invalidity-reasons
Constant Summary collapse
- REMOTE_CONTROLLER_LOST_CONNECTION_REASON =
0- LOW_BATTERY_RETURN_REASON =
1- LOW_BATTERY_LANDING_REASON =
2- CLOSE_TO_THE_FLIGHT_RESTRICTION_ZONE_REASON =
3- REMOTE_CONTROLLER_TAKEOVER_CONTROL_AUTHORITY_REASON =
4- Reason =
Types::Coercible::Integer.enum( REMOTE_CONTROLLER_LOST_CONNECTION_REASON, LOW_BATTERY_RETURN_REASON, LOW_BATTERY_LANDING_REASON, CLOSE_TO_THE_FLIGHT_RESTRICTION_ZONE_REASON, REMOTE_CONTROLLER_TAKEOVER_CONTROL_AUTHORITY_REASON )
Instance Method Summary collapse
Methods inherited from EventsMessage
#flight_ids, #humanized_summary, #need_reply?, #to_s
Methods inherited from Message
current_timestamp, generate_bid, generate_tid, #to_s
Instance Method Details
#humanized_summary_interpolation ⇒ Object
42 43 44 |
# File 'lib/dji_mqtt_connect/messages/thing/product/events/joystick_invalid_notify.rb', line 42 def humanized_summary_interpolation super.merge(reason: data.humanized_reason) end |