/** * 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 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(); }