0330lxr修改
This commit is contained in:
parent
d5469bf014
commit
18a585d355
@ -1,4 +1,5 @@
|
|||||||
function [MCS, mcs_no] = MCS_sel(ModulationMode,CodeRate)
|
function [MCS, mcs_no] = MCS_sel(ModulationMode,CodeRate)
|
||||||
|
CodeRate = eval(CodeRate);
|
||||||
switch ModulationMode
|
switch ModulationMode
|
||||||
case 'BPSK'
|
case 'BPSK'
|
||||||
MCS = 0;
|
MCS = 0;
|
||||||
|
@ -9,7 +9,7 @@ operator = cfgUI.JamDetect;
|
|||||||
% 干扰检测
|
% 干扰检测
|
||||||
y = fft(rx_format(1:NFFT,:));
|
y = fft(rx_format(1:NFFT,:));
|
||||||
data_Freuq = y(1:NFFT/2,:);
|
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);
|
Type = JudgeTypeJam(J);
|
||||||
|
|
||||||
% struct jam_data;
|
% struct jam_data;
|
||||||
|
@ -10,6 +10,8 @@ if cfgUI.numTx == 1
|
|||||||
NumerologyNo = jj;
|
NumerologyNo = jj;
|
||||||
break;
|
break;
|
||||||
end
|
end
|
||||||
|
% if isempty(NumerologyNo)
|
||||||
|
|
||||||
end
|
end
|
||||||
PacketSize = cfgUI.user1.APEPlength;
|
PacketSize = cfgUI.user1.APEPlength;
|
||||||
[MCS, MCS_no] = MCS_sel(cfgUI.user1.ModulationMode,cfgUI.user1.CodeRate);
|
[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.ChannelCoding = cfgUI.user1.ChannelCode;
|
||||||
cfgHE.NumTransmitAntennas = 1;
|
cfgHE.NumTransmitAntennas = 1;
|
||||||
cfgHE.NumerologyNo = NumerologyNo;
|
cfgHE.NumerologyNo = NumerologyNo;
|
||||||
|
cfgUI.allocation = RU_index;% 为什么要回传?
|
||||||
else
|
else
|
||||||
if strcmp(cfgUI.UserMode,'SU')
|
if strcmp(cfgUI.UserMode,'SU')
|
||||||
% HE-SU
|
% HE-SU
|
||||||
|
Loading…
x
Reference in New Issue
Block a user