i think that this is nearly the beginning of task 1
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
carrier_frequency = 2.4e9;
|
||||
wifi_be_subcarrier_spacing = 78.125e3;
|
||||
leo_altitude = 600e3;
|
||||
bandwidth = 20;
|
||||
mcs = 2;
|
||||
apep = 1000;
|
||||
tx_antenna_count = 1;
|
||||
rx_antenna_count = 1;
|
||||
|
||||
elevation_angle = 50;
|
||||
|
||||
random_stream = "mt19937ar with seed";
|
||||
seed = 666;
|
||||
|
||||
ntn_tdl_delay_profiles = ["A" "B" "C" "D"];
|
||||
|
||||
[cfgEHT, simParameters, channel, chInfo, maxChDelay, satelliteDopplerShift, chanBW] = ...
|
||||
create_baseline_configuration(ntn_tdl_delay_profiles(3), bandwidth, false, "None", ...
|
||||
carrier_frequency, elevation_angle, 0, ...
|
||||
0, leo_altitude, random_stream, ...
|
||||
seed, tx_antenna_count, ...
|
||||
rx_antenna_count, apep, mcs);
|
||||
|
||||
normalized_cfo = satelliteDopplerShift / wifi_be_subcarrier_spacing;
|
||||
|
||||
disp("Channel Info: ")
|
||||
disp(chInfo)
|
||||
disp("Satellite Doppler Shift: " + satelliteDopplerShift)
|
||||
disp("Normalized CFO: " + normalized_cfo)
|
||||
|
||||
|
||||
snrs = (0:1:40);
|
||||
packets_per_snr = 250;
|
||||
maxNumErrors = 10;
|
||||
|
||||
errorCounts = zeros(size(snrs));
|
||||
for snrIndex = 1:length(snrs)
|
||||
errorCounts(snrIndex) = simulateTransmission(cfgEHT, channel, snrs(snrIndex), packets_per_snr, maxNumErrors, simParameters, chanBW, snrIndex);
|
||||
end
|
||||
|
||||
errorRate = errorCounts / packets_per_snr;
|
||||
|
||||
disp("ErrorRatePerSNR: " + errorRate);
|
||||
|
||||
Reference in New Issue
Block a user