/** * Decode a meminfo message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.brkval = payload.getUnsignedShort(); this.freemem = payload.getUnsignedShort(); }
/** * Decode a hwstatus message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.Vcc = payload.getUnsignedShort(); this.I2Cerr = payload.getUnsignedByte(); }
/** * Decode a rangefinder message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.distance = payload.getFloat(); this.voltage = payload.getFloat(); }
/** * Decode a terrain_request message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); mask = payload.getLong(); lat = payload.getInt(); lon = payload.getInt(); grid_spacing = payload.getShort(); }
/** * Decode a wind message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.direction = payload.getFloat(); this.speed = payload.getFloat(); this.speed_z = payload.getFloat(); }
/** * 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(); } }
/** * Decode a gimbal_axis_calibration_progress message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.calibration_axis = payload.getUnsignedByte(); this.calibration_progress = payload.getUnsignedByte(); this.calibration_status = payload.getUnsignedByte(); }
/** * 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_int message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.time_boot_ms = payload.getUnsignedInt(); this.lat = payload.getInt(); this.lon = payload.getInt(); this.alt = payload.getInt(); this.relative_alt = payload.getInt(); this.vx = payload.getShort(); this.vy = payload.getShort(); this.vz = payload.getShort(); this.hdg = payload.getUnsignedShort(); }
/** * 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 log_entry message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); time_utc = payload.getInt(); size = payload.getInt(); id = payload.getShort(); num_logs = payload.getShort(); last_log_num = payload.getShort(); }
/** * 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 landing_target message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.time_usec = payload.getUnsignedLong(); this.angle_x = payload.getFloat(); this.angle_y = payload.getFloat(); this.distance = payload.getFloat(); this.size_x = payload.getFloat(); this.size_y = payload.getFloat(); this.target_num = payload.getUnsignedByte(); this.frame = payload.getUnsignedByte(); }
/** * Decode a distance_sensor message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.time_boot_ms = payload.getUnsignedInt(); this.min_distance = payload.getUnsignedShort(); this.max_distance = payload.getUnsignedShort(); this.current_distance = payload.getUnsignedShort(); this.type = payload.getUnsignedByte(); this.id = payload.getUnsignedByte(); this.orientation = payload.getUnsignedByte(); this.covariance = payload.getUnsignedByte(); }
/** * Decode a vision_position_estimate message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.usec = payload.getUnsignedLong(); this.x = payload.getFloat(); this.y = payload.getFloat(); this.z = payload.getFloat(); this.roll = payload.getFloat(); this.pitch = payload.getFloat(); this.yaw = payload.getFloat(); }
/** * Decode a set_mag_offsets message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.mag_ofs_x = payload.getShort(); this.mag_ofs_y = payload.getShort(); this.mag_ofs_z = payload.getShort(); this.target_system = payload.getUnsignedByte(); this.target_component = payload.getUnsignedByte(); }
/** * Decode a led_control message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.target_system = payload.getUnsignedByte(); this.target_component = payload.getUnsignedByte(); this.instance = payload.getUnsignedByte(); this.pattern = payload.getUnsignedByte(); this.custom_len = payload.getUnsignedByte(); for (int i = 0; i < this.custom_bytes.length; i++) { this.custom_bytes[i] = payload.getUnsignedByte(); } }
/** * Decode a serial_control message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.baudrate = payload.getUnsignedInt(); this.timeout = payload.getUnsignedShort(); this.device = payload.getUnsignedByte(); this.flags = payload.getUnsignedByte(); this.count = payload.getUnsignedByte(); for (int i = 0; i < this.data.length; i++) { this.data[i] = payload.getUnsignedByte(); } }
/** * 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(); } }
/** * Decode a mission_item_reached message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.seq = payload.getUnsignedShort(); }
/** * Decode a home_position message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.latitude = payload.getInt(); this.longitude = payload.getInt(); this.altitude = payload.getInt(); this.x = payload.getFloat(); this.y = payload.getFloat(); this.z = payload.getFloat(); for (int i = 0; i < this.q.length; i++) { this.q[i] = payload.getFloat(); } this.approach_x = payload.getFloat(); this.approach_y = payload.getFloat(); this.approach_z = payload.getFloat(); }
/** * Decode a mission_item_reached message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); seq = payload.getShort(); }
/** * Decode a mission_item message into this class fields * * @param payload The message to decode */ public void unpack(MAVLinkPayload payload) { payload.resetIndex(); this.param1 = payload.getFloat(); this.param2 = payload.getFloat(); this.param3 = payload.getFloat(); this.param4 = payload.getFloat(); this.x = payload.getFloat(); this.y = payload.getFloat(); this.z = payload.getFloat(); this.seq = payload.getUnsignedShort(); this.command = payload.getUnsignedShort(); this.target_system = payload.getUnsignedByte(); this.target_component = payload.getUnsignedByte(); this.frame = payload.getUnsignedByte(); this.current = payload.getUnsignedByte(); this.autocontinue = payload.getUnsignedByte(); }
/** * 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(); }