Sha256: 2f399a89fd63632f3ba0753c5ccb092e07db3389c82004af492c8a6c85dd63e3
Contents?: true
Size: 1.88 KB
Versions: 28
Compression:
Stored size: 1.88 KB
Contents
# frozen_string_literal: true module DjiMqttConnect module Thing::Product # Notification of device exits the Return to Home (RTH) state # https://developer.dji.com/doc/cloud-api-tutorial/en/server-api-reference/mqtt/thing-model/gateway/dock/wayline.html#notification-of-device-exits-the-return-to-home-rth-state class DeviceExitHomingNotifyEventsMessage < EventsMessage ENTERING_EXIT_RTH_STATE_ACTION = 1 EXIT_EXITING_RTH_STATE_ACTION = 0 attribute :_method, Types::String.enum("device_exit_homing_notify") attribute :data do # {"1":"Enter exiting RTH state"},{"0":"Exit exiting RTH state"} attribute :action, Types::Coercible::Integer.enum(EXIT_EXITING_RTH_STATE_ACTION, ENTERING_EXIT_RTH_STATE_ACTION) attribute :sn, Types::SerialNumber # {"0":"Add joystick throttle","1":"Add joystick pitch","2":"The initialization of behavior tree is failed","3":"Surrounded by obstacles","4":"Flight restriction is triggered","5":"Obstacle is too closed","6":"No GPS signal","7":"The output flag of GPS and VIO location is false","8":"The error of GPS and VIO fusion position is too large","9":"Backtrack in a short distance","10":"Trigger the RTH in a short distance"} attribute :reason, Types::Coercible::Integer.enum( ADD_JOYSTICK_THROTTLE_REASON = 0, ADD_JOYSTICK_PITCH_REASON = 1, THE_INITIALIZATION_OF_BEHAVIOR_TREE_IS_FAILED_REASON = 2, SURROUNDED_BY_OBSTACLES_REASON = 3, FLIGHT_RESTRICTION_IS_TRIGGERED_REASON = 4, OBSTACLE_IS_TOO_CLOSE_REASON = 5, NO_GPS_SIGNAL_REASON = 6, THE_OUTPUT_FLAG_OF_GPS_AND_VIO_LOCATION_IS_FALSE_REASON = 7, THE_ERROR_OF_GPS_AND_VIO_FUSION_POSITION_IS_TOO_LARGE_REASON = 8, BACKTRACK_IN_A_SHORT_DISTANCE_REASON = 9, TRIGGER_THE_RTH_IN_A_SHORT_DISTANCE_REASON = 10 ) end end end end
Version data entries
28 entries across 28 versions & 1 rubygems