forked from NCSUCORE/poolTest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCalibrateLAS.m
More file actions
11 lines (11 loc) · 871 Bytes
/
CalibrateLAS.m
File metadata and controls
11 lines (11 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
stopCallback
Az_calib = str2num(get_param(['towTest_dualWinch/LAS_Calculation','/Az_deg_calib'],'Value'))
El_calib = str2num(get_param(['towTest_dualWinch/LAS_Calculation','/El_deg_calib'],'Value'))
get_param(['towTest_dualWinch/LAS_Calculation','/Az_deg_calib'],'Value')
calib_val_az = mean(tsc.Az_deg.Data(tsc.Az_deg.Length-LAScalTimeLen/Ts:tsc.Az_deg.Length));
calib_val_el = mean(tsc.El_deg.Data(tsc.El_deg.Length-LAScalTimeLen/Ts:tsc.El_deg.Length));
Az_calib = Az_calib - calib_val_az
El_calib = El_calib - calib_val_el + 90
set_param(['towTest_dualWinch/LAS_Calculation','/Az_deg_calib'],'Value',num2str(Az_calib));
set_param(['towTest_dualWinch/LAS_Calculation','/El_deg_calib'],'Value',num2str(El_calib));
plot(tsc.El_deg.Time(tsc.El_deg.Length-LAScalTimeLen/Ts:tsc.El_deg.Length), tsc.El_deg.Data(tsc.El_deg.Length-LAScalTimeLen/Ts:tsc.El_deg.Length))