|
1 | | -function HOGS = HOGS(Wavelength) |
| 1 | +function HOGS = HOGS(Wavelength,options) |
2 | 2 | %HOGS Construct HOGS |
3 | 3 | % need to detail the correct OGS parameters and components |
4 | 4 | % need to implement the Errol_OGS class to give the correct position |
5 | 5 |
|
6 | | -%% ChannelFlag describes which channel is to be modelled. Options are 780, 808 and 1550 |
7 | | -assert(ismember(Wavelength,[785,808,1550]),'Wavelength must be one of the intended channels, 780, 808 or 1550 (nm)'); |
| 6 | +arguments |
| 7 | + Wavelength {mustBeMember(Wavelength,[785,808,1550])} |
| 8 | + options.BeaconCamera {mustBeMember(options.BeaconCamera,{'Coarse','Fine'})} = 'Coarse' |
| 9 | +end |
8 | 10 |
|
9 | 11 | %% parameters and components |
10 | 12 | %Telescope |
|
47 | 49 | end |
48 | 50 |
|
49 | 51 | %beacon camera |
| 52 | +switch options.BeaconCamera |
| 53 | + case 'Coarse' |
50 | 54 | Camera_Scope_Diameter = 0.4; |
51 | 55 | Camera_Scope_Focal_Length = 2.72; |
52 | 56 | Camera_Scope_Optical_Efficiency = 1-0.39^2; |
|
59 | 63 | Exposure_Time = 0.01; |
60 | 64 | Spectral_Filter_Width = 10; |
61 | 65 | HOGS_Camera = AC4040(Camera_Telescope,Exposure_Time,Spectral_Filter_Width);%this is a constructor for the ATIK camera we use |
| 66 | + case 'Fine' |
| 67 | +Camera_Scope_Diameter = Telescope_Diameter; |
| 68 | +Camera_Scope_Focal_Length = Telescope_Focal_Length; |
| 69 | +Camera_Scope_Optical_Efficiency = 1-0.3^2; |
| 70 | +Camera_Pointing_Precision = 1E-3; |
| 71 | +Camera_Telescope = components.Telescope(Camera_Scope_Diameter,... |
| 72 | + 'Wavelength',685,... |
| 73 | + 'Optical_Efficiency',Camera_Scope_Optical_Efficiency,... |
| 74 | + 'Focal_Length',Camera_Scope_Focal_Length,... |
| 75 | + 'Pointing_Jitter',Camera_Pointing_Precision); |
| 76 | +Exposure_Time = 0.001; |
| 77 | +Spectral_Filter_Width = 10; |
| 78 | +HOGS_Camera = OWL320HS(Camera_Telescope,Exposure_Time,Spectral_Filter_Width);%this is a constructor for the ATIK camera we use |
| 79 | +end |
62 | 80 |
|
63 | 81 | %uplink beacon |
64 | 82 | Beacon_Power = 40E-3; %power of uplink beacon in W |
|
0 commit comments