-
Notifications
You must be signed in to change notification settings - Fork 0
/
WACOWC3.m
59 lines (42 loc) · 1.08 KB
/
WACOWC3.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% General conditions:
interactive = 0;
usegraphics = 0;
% when rectifyIndication==1, the transimpedance
% circuit will rectify the results, eliminating
% negative results.
rectifyIndication = 1;
% Define the model default values
% Room dimensions
W = 4;
L = 4;
H = 2.5;
% Steps for travelling the room
Wstep = W/25;
Lstep = L/25;
% Number of repetitions
Nrep = 5;
%% Define experiment conditions
% Emitters
n_Emitters = 2; % Number of emitters
Pb = 0.5 ; % Transmitted power
Ps = 0.025;
% Half-power angles
HPA_v = [ 60 ];
% Lambertian mode number
m_v = -log(2) ./ log(cosd(HPA_v));
% Receivers:
% Sensor configuration in meridians and parallels
NmNp = ...
[12 3
24 6
36 9
48 12
60 15];
Psi_v = [1 1.5 2]; % Hemi-Fov
Ar = 1e-6; % Active receiving area
Ts = 1; % Optical filter gain
n = 1; % Receiver's internal refractive index
R = 1; % Receiver's responsivity
validReadingThreshold = 8-Inf;
Psi_mode = 2; % Use FOVmax = 2*FOVmin
nonoise = 1;