coordinate bug cleanup

This commit is contained in:
2026-05-03 09:23:21 -07:00
parent 81fe1b67c5
commit 4159a3a5cb
4 changed files with 22 additions and 2 deletions
+9 -1
View File
@@ -30,10 +30,18 @@ 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, 0, 0);
tc.testClass = tc.testClass.initialize(P_TX, BW, f_c, G_RX_dBi, 30, 135);
altitude = 30;
% Boresight azimuth=135° (between +X at 90° and -Y at 180°) hotspot at +X,-Y.
% SNR at (5,-5) should be higher than at (5,+5).
agentPos = [0, 0, altitude];
[~, snrA] = tc.testClass.sensorPerformance(agentPos, [5, -5, 0]);
% tc.testClass = tc.testClass.clearRssCache();
[~, snrB] = tc.testClass.sensorPerformance(agentPos, [5, 5, 0]);
tc.assertGreaterThan(snrA, snrB, "SNR should be higher toward boresight (+X,-Y) than away from it (+X,+Y)");
tc.testClass.plotPerformance(altitude);
end
function plot_SINR_one_interferer(tc)