renamed antenna angle states

This commit is contained in:
2026-05-03 08:40:36 -07:00
parent 6349212dd5
commit 81fe1b67c5
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ function value = transmitterGain(obj, t, a)
% Angular offset from boresight via spherical law of cosines
% Convention: t=0° nadir, t=90° horizon; a=0° +y, a=90° +x
cos_theta = sind(obj.boresightTilt) .* sind(t) .* cosd(a - obj.boresightAzimuth) + ...
cosd(obj.boresightTilt) .* cosd(t);
cos_theta = sind(obj.tilt) .* sind(t) .* cosd(a - obj.tilt) + ...
cosd(obj.tilt) .* cosd(t);
cos_theta = max(-1, min(1, cos_theta)); % clamp for numerical safety
theta = acosd(cos_theta);