0330lxr修改

This commit is contained in:
NightPoem 2024-03-31 01:44:24 +08:00
parent d5469bf014
commit 18a585d355
3 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
function [MCS, mcs_no] = MCS_sel(ModulationMode,CodeRate)
CodeRate = eval(CodeRate);
switch ModulationMode
case 'BPSK'
MCS = 0;

View File

@ -9,7 +9,7 @@ operator = cfgUI.JamDetect;
%
y = fft(rx_format(1:NFFT,:));
data_Freuq = y(1:NFFT/2,:);
J = Selecdt_Detection(data_Freuq,Pf,PfH,32,operator);
J = Select_Detection(data_Freuq,Pf,PfH,32,operator);
Type = JudgeTypeJam(J);
% struct jam_data;

View File

@ -10,6 +10,8 @@ if cfgUI.numTx == 1
NumerologyNo = jj;
break;
end
% if isempty(NumerologyNo)
end
PacketSize = cfgUI.user1.APEPlength;
[MCS, MCS_no] = MCS_sel(cfgUI.user1.ModulationMode,cfgUI.user1.CodeRate);
@ -20,6 +22,7 @@ if cfgUI.numTx == 1
cfgHE.ChannelCoding = cfgUI.user1.ChannelCode;
cfgHE.NumTransmitAntennas = 1;
cfgHE.NumerologyNo = NumerologyNo;
cfgUI.allocation = RU_index;%
else
if strcmp(cfgUI.UserMode,'SU')
% HE-SU