RF antenna azimuth, plotting improvements

This commit is contained in:
2026-04-26 10:28:28 -07:00
parent 6cb6dabcb5
commit d07df25528
13 changed files with 88 additions and 65 deletions
+3 -1
View File
@@ -1,9 +1,10 @@
function obj = initialize(obj, txPower, bandwidth, centerFreq)
function obj = initialize(obj, txPower, bandwidth, centerFreq, rxGain_dBi)
arguments (Input)
obj (1, 1) {mustBeA(obj, "rfSensor")}
txPower (1, 1) double;
bandwidth (1, 1) double;
centerFreq (1, 1) double;
rxGain_dBi (1, 1) double;
end
arguments (Output)
obj (1, 1) {mustBeA(obj, "rfSensor")}
@@ -13,6 +14,7 @@ function obj = initialize(obj, txPower, bandwidth, centerFreq)
obj.P_TX = txPower; % Transmit power (W)
obj.BW = bandwidth; % Bandwidth (Hz)
obj.f_c = centerFreq; % Center frequency (Hz)
obj.G_RX_dBi = rxGain_dBi; % Receiving Antenna Gain (dBi)
% Computed values
obj.P_TX_dBm = 10*log10(obj.P_TX/1e-3); % Transmit power in dBm