began developing new sensor model

This commit is contained in:
kdee committed 2026-04-19 12:25:05 -07:00
1 parent fbcaa32abd
commit dd0861d11c
29 files changed
+257 -5

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
function value = RSS(obj, d, t)
arguments (Input)
obj (1, 1) {mustBeA(obj, "rfSensor")};
d (:, 1) double; % distance from agent to target
t (:, 1) double; % LOS tilt angle
end
arguments (Output)
value (:, 1) double
end
rho_dBm = 10*log10(obj.P_TX/1e-3);
% RSS = TX Power + Antenna Gain - Path Loss
value = rho_dBm + obj.antennaGain(t) - obj.pathLoss(d);
end