-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLiDAR_Emission_Pattern.m
More file actions
20 lines (18 loc) · 877 Bytes
/
Copy pathLiDAR_Emission_Pattern.m
File metadata and controls
20 lines (18 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function LiDAR_Emission_Pattern(FOV_Start, FOV_End, Lower_Angle, Upper_Angle, Azimuth_Resolution, Radius_Start, Radius_End, LiDAR_x, LiDAR_y, LiDAR_z)
for Azimuth=FOV_Start:Azimuth_Resolution:FOV_End
for Vertical_Angle=Lower_Angle:2:Upper_Angle
P_Start = [Radius_Start*sind(Azimuth) + LiDAR_x, ...
Radius_Start*cosd(Azimuth) + LiDAR_y, ...
LiDAR_z];
P_End = [Radius_End*sind(Azimuth)*cosd(Vertical_Angle) + LiDAR_x, ...
Radius_End*cosd(Azimuth)*cosd(Vertical_Angle) + LiDAR_y, ...
Radius_End*sind(Vertical_Angle) + LiDAR_z];
plot3([P_Start(1) P_End(1)], [P_Start(2) P_End(2)], [P_Start(3) P_End(3)], 'LineWidth', 2.0);
end
end
title('LiDAR Emission Pattern')
xlabel('X')
ylabel('Y')
zlabel('Z')
daspect([1 1 1])
end