added antenna pointing parameters

This commit is contained in:
2026-04-30 09:49:16 -07:00
parent a202164875
commit 35702a6ce2
5 changed files with 50 additions and 44 deletions
+6 -6
View File
@@ -19,7 +19,7 @@ classdef test_rfSensor < matlab.unittest.TestCase
f_c = 2e9; % Center frequency (Hz)
G_RX_dBi = 3; % Receiving Antenna Gain (dBi)
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi);
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi, 0, 0);
tc.testClass.plotParameters();
end
@@ -30,7 +30,7 @@ classdef test_rfSensor < matlab.unittest.TestCase
f_c = 2e9; % Center frequency (Hz)
G_RX_dBi = 3; % Receiving Antenna Gain (dBi)
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi);
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi, 0, 0);
altitude = 30;
@@ -43,7 +43,7 @@ classdef test_rfSensor < matlab.unittest.TestCase
f_c = 2e9; % Center frequency (Hz)
G_RX_dBi = 3; % Receiving Antenna Gain (dBi)
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi);
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi, 0, 0);
altitude = 30;
otherSensorsPos = [6, -4, -1]; % relative to main sensor
@@ -60,7 +60,7 @@ classdef test_rfSensor < matlab.unittest.TestCase
f_c = 2e9; % Center frequency (Hz)
G_RX_dBi = 3; % Receiving Antenna Gain (dBi)
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi);
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi, 0, 0);
altitude = 30;
otherSensorsPos = [6, -4, -1; -2, 6, 0]; % relative to main sensor
@@ -69,8 +69,8 @@ classdef test_rfSensor < matlab.unittest.TestCase
otherSensors{2} = rfSensor;
% Must use same center frequency and bandwidth for interference sources
otherSensors{1} = otherSensors{1}.initialize(10 * P_TX, BW, f_c, G_RX_dBi);
otherSensors{2} = otherSensors{2}.initialize(100 * P_TX, BW, f_c, G_RX_dBi);
otherSensors{1} = otherSensors{1}.initialize(10 * P_TX, BW, f_c, G_RX_dBi, 0, 0);
otherSensors{2} = otherSensors{2}.initialize(10 * P_TX, BW, f_c, G_RX_dBi, 0, 0);
tc.testClass.plotPerformance(altitude, otherSensorsPos, otherSensors);
end