/**
  * Decode a request_data_stream message into this class fields
  *
  * @param payload The message to decode
  */
 public void unpack(MAVLinkPayload payload) {
   payload.resetIndex();
   req_message_rate = payload.getShort();
   target_system = payload.getByte();
   target_component = payload.getByte();
   req_stream_id = payload.getByte();
   start_stop = payload.getByte();
 }
 /**
  * Decode a gps_inject_data message into this class fields
  *
  * @param payload The message to decode
  */
 public void unpack(MAVLinkPayload payload) {
   payload.resetIndex();
   this.target_system = payload.getByte();
   this.target_component = payload.getByte();
   this.len = payload.getByte();
   for (int i = 0; i < this.data.length; i++) {
     this.data[i] = payload.getByte();
   }
 }
예제 #3
0
 /**
  * Decode a param_value message into this class fields
  *
  * @param payload The message to decode
  */
 public void unpack(MAVLinkPayload payload) {
   payload.resetIndex();
   param_value = payload.getFloat();
   param_count = payload.getShort();
   param_index = payload.getShort();
   for (int i = 0; i < param_id.length; i++) {
     param_id[i] = payload.getByte();
   }
   param_type = payload.getByte();
 }
 /**
  * Decode a global_position_setpoint_int message into this class fields
  *
  * @param payload The message to decode
  */
 public void unpack(MAVLinkPayload payload) {
   payload.resetIndex();
   latitude = payload.getInt();
   longitude = payload.getInt();
   altitude = payload.getInt();
   yaw = payload.getShort();
   coordinate_frame = payload.getByte();
 }
 /**
  * Decode a mission_set_current message into this class fields
  *
  * @param payload The message to decode
  */
 public void unpack(MAVLinkPayload payload) {
   payload.resetIndex();
   seq = payload.getShort();
   target_system = payload.getByte();
   target_component = payload.getByte();
 }
 /**
  * Decode a auth_key message into this class fields
  *
  * @param payload The message to decode
  */
 public void unpack(MAVLinkPayload payload) {
   payload.resetIndex();
   for (int i = 0; i < this.key.length; i++) {
     this.key[i] = payload.getByte();
   }
 }
예제 #7
0
 /**
  * Decode a set_mode message into this class fields
  *
  * @param payload The message to decode
  */
 public void unpack(MAVLinkPayload payload) {
   payload.resetIndex();
   custom_mode = payload.getInt();
   target_system = payload.getByte();
   base_mode = payload.getByte();
 }