diff --git a/System_Analysis_Main.m b/System_Analysis_Main.m index ec9a3a0..d2b2bd6 100644 --- a/System_Analysis_Main.m +++ b/System_Analysis_Main.m @@ -113,7 +113,7 @@ tgt_pos = [tgt_rng.*cosd(tgt_azi).*cosd(tgt_elv) tgt_rng.*sind(tgt_azi).*cosd(tg %tgt_pos = [150 0 0].'; tgt_vel = [5 0 0].'; tgt_acc = [0 0 0].'; -tgt_rcs = [20]; +tgt_rcs = [10]; tgt_class = 'TCR'; tgt = gen_tgt(tgt_pos, tgt_vel, tgt_acc, tgt_rcs, 'TCR'); tgt.num = size(tgt.rcs, 1); @@ -147,23 +147,14 @@ timing_struct.T_jumpback = 0.5e-6; timing_struct.T_reset = 1e-6; timing_struct.T_acq = 51.2e-6; tx_phase_initial = 0; -timing_struct.T_idle = 9.5e-6; %[1e-6 9.5e-6 18e-6]; - -% timing_struct.T_dwell = 0e-6; -% timing_struct.T_settle = 0e-6; -% timing_struct.T_jumpback = 0e-6; -% timing_struct.T_reset = 0e-6; -% timing_struct.T_acq = 51.2e-6; -% tx_phase_initial = 0; -% timing_struct.T_idle = 0e-6; %[1e-6 9.5e-6 18e-6]; +timing_struct.T_idle = 1e-6; %[1e-6 9.5e-6 18e-6]; timing_struct.PRI = timing_struct.T_dwell + timing_struct.T_settle + timing_struct.T_jumpback + timing_struct.T_reset + timing_struct.T_acq + timing_struct.T_idle; %[56.7e-6 65.2e-6 73.7e-6]; % [24.08.22] Lowpass filter 구현 때문에 2배 oversampling 함. temp_Ref_wave = zeros(2*NumSamples, NumChirps); -for m = 1 : NumChirps - %Tx_wave = gen_fastramp_fmcw2(timing_struct, 2*fs, fc-TxBw/2, TxBw, m, NumChirps, 0, tx_phase_initial, opt_waveform); +for m = 1 : NumChirps Tx_wave = gen_fastramp_fmcw(timing_struct, 2*fs, fc-TxBw/2, TxBw, NumChirps, 0, tx_phase_initial, opt_waveform); temp_Ref_wave(:,m) = Tx_wave.waveform; end @@ -244,8 +235,7 @@ for tgtidx = 1 : tgt.num powVar_dB(txidx, rxidx) = powVar_dB(txidx, rxidx) + rx_ant_gain_db + pow2db(lambda_c^2/(4*pi)); target_prop_time = target_prop_time_dod + target_prop_time_doa; - % [24.08.22] Lowpass filter 구현 때문에 2배 oversampling 함. - %delayed_wave = gen_fastramp_fmcw2(timing_struct, 2*fs, fc-TxBw/2, TxBw, m, NumChirps, target_prop_time, tx_phase_initial, opt_waveform); + % [24.08.22] Lowpass filter 구현 때문에 2배 oversampling 함. delayed_wave = gen_fastramp_fmcw(timing_struct, 2*fs, fc-TxBw/2, TxBw, NumChirps, target_prop_time, tx_phase_initial, opt_waveform); delayed_Tx_sig(:,m,rxidx) = delayed_Tx_sig(:,m,rxidx) + sqrt(db2pow(powVar_dB(txidx, rxidx))) * (delayed_wave.waveform).' .* exp(-1i * 2 * pi * DDMA_freq(txidx) * ((m-1) * delayed_wave.T_chirp)); end