📄 definefilter.m
字号:
%%% DynaEst 3.032 12/28/2000
% Copyright (c) 2000 Yaakov Bar-Shalom
%
% DefineSystem, Define system model
if ( exist('h_CommonWindow') == 0 ) CommonWindow; end
if (ishandle(h_CommonWindow) == 0) CommonWindow; end
new_title=1;
if (exist('h_HeadTitle') == 0)
else
if ishandle(h_HeadTitle)
new_title=0;
end
end
if new_title<=0
set(h_HeadTitle, 'String','Define filter model:');
else
h_HeadTitle = uicontrol('Parent',h_CommonWindow, ...
'Units','points', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[1.1/12*cwsz(3) 9.3/10*cwsz(4) cwsz(3)/2 10], ...
'BackgroundColor',FrameBackColor, ...
'Style','text', ...
'String','Define filter model:',...
'FontWeight', 'bold', ...
'Tag','StaticText2');
end
h_RadioButton1 = uicontrol('Parent',h_CommonWindow, ...
'Units','points', ...
'Callback',['set(h_RadioButton1,''Value'',1);',...
'set(h_RadioButton2,''Value'',0);',...
'set(h_RadioButton3,''Value'',0);',...
'FilterModelFlag=1;',...
'set(h_Edit1,''Enable'',''off'');'],...
'ListboxTop',0, ...
'Position',[fwsz(1)+fwsz(3)/10 fwsz(2)+ fwsz(4)*(7/10) fwsz(3)*8/10 15], ...
'BackgroundColor',FrameBackColor, ...
'String','Linear system model', ...
'Style','radiobutton', ...
'Value',0,...
'Tag','Radiobutton1');
h_RadioButton2 = uicontrol('Parent',h_CommonWindow, ...
'Units','points', ...
'Callback',['set(h_RadioButton1,''Value'',0);',...
'set(h_RadioButton2,''Value'',1);',...
'set(h_RadioButton3,''Value'',0);',...
'FilterModelFlag=2;',...
'set(h_Edit1,''Enable'',''on'');'],...
'ListboxTop',0, ...
'BackgroundColor',FrameBackColor, ...
'Position',[fwsz(1)+fwsz(3)/10 fwsz(2)+ fwsz(4)*(7/10-1/7) fwsz(3)*8/10 15], ...
'String','Coordinated turn model', ...
'Style','radiobutton', ...
'Tag','Radiobutton2', ...
'Value',0);
h_RadioButton3 = uicontrol('Parent',h_CommonWindow, ...
'Units','points', ...
'Callback',['set(h_RadioButton1,''Value'',0);',...
'set(h_RadioButton2,''Value'',0);',...
'set(h_RadioButton3,''Value'',1);',...
'FilterModelFlag=3;',...
'set(h_Edit1,''Enable'',''on'');'],...
'ListboxTop',0, ...
'BackgroundColor',FrameBackColor, ...
'Position',[fwsz(1)+fwsz(3)/10 fwsz(2)+ fwsz(4)*(7/10-2/7) fwsz(3)*8/10 15], ...
'String','Nearly coordinated turn model', ...
'Style','radiobutton', ...
'Tag','Radiobutton3', ...
'Value',0);
h_Text1 = uicontrol('Parent',h_CommonWindow, ...
'Units','points', ...
'HorizontalAlignment','left', ...
'BackgroundColor',FrameBackColor, ...
'ListboxTop',0, ...
'Position',[fwsz(1)+fwsz(3)/5 fwsz(2)+fwsz(4)*(7/10-3/6.7) fwsz(3)*3/5 15], ...
'String','Constant/Initial angular ratio =', ...
'Style','text', ...
'Tag','StaticText1');
h_Edit1 = uicontrol('Parent',h_CommonWindow, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[fwsz(1)+fwsz(3)*3.1/5 fwsz(2)+fwsz(4)*(7/10-3/6.7) fwsz(3)*0.12 15], ...
'String','1', ...
'Style','edit', ...
'Enable','off',...
'Tag','EditText2');
set(h_Edit1,'string',num2str(omegaf));
if ~(ncoor == 2 & ( nxf == 5 | nxf == 4) )
set(h_RadioButton2,'Enable','off');
set(h_RadioButton3,'Enable','off');
set(h_Edit1,'Enable','off');
FilterModelFlag == 1 ;
end
switch FilterModelFlag
case 1
set(h_RadioButton1,'Value',1);
case 2,
set(h_RadioButton2,'Value',1);
set(h_Edit1,'Enable','on');
case 3,
set(h_RadioButton3,'Value',1);
set(h_Edit1,'Enable','on');
end
if TrackerSetupFlag == 2 | NewFlag == OpenPrj
switch FilterModelFlag
case 1
set(h_RadioButton2,'Enable','Off');
set(h_RadioButton3,'Enable','Off');
set(h_Edit1,'Enable','off');
case 2,
set(h_RadioButton1,'Enable','Off');
set(h_RadioButton3,'Enable','Off');
case 3,
set(h_RadioButton1,'Enable','Off');
set(h_RadioButton2,'Enable','Off');
end
end
help_string=['In this window, you can select the system model for the ground truth',...
char(10), char(10), 'If you want to define',...
'coordinated turn model or, nearly coordinated turn model',...
'select ''Coordinated turn model'' and define the constant angular ratio,',...
'or ''Nearly coordinated turn model'' and definte the initial angular ratio.',....',...
char(10), char(10), 'Press ''Next >>'' when done to go to the next step. Press ''<< Prev'' to go back to the previous step. Press ''Close'' to abort the project definition.'];
set(h_About,'String',help_string, 'enable', 'inactive');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -