-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdelay.m
29 lines (24 loc) · 1.21 KB
/
delay.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
% Delay module to refresh plots
% Symbolic definistions of system dynamics, error models, and EKF models
% This is a basic INS/GNSS loosely-coupled system using EKF
% This is only a DEMO with basic updates (position/velocity) are applied
% More advanced updates such as nonholonomic constraints or zero-speed
% are NOT implemented in this DEMO. The purpose of the DEMO is to
% demonstrate the basics of EKF in a basic INS/GNSS fusion scenario
% Copyright (C) 2018, Mohamed Atia, all rights reserved.
% The software is given under GNU Lesser General Public License
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU Lesser General Public License for more details.
%
% You should have received a copy of the GNU Lesser General Public
% License along with this program. If not, see
% <http://www.gnu.org/licenses/>.
% For commercial use or embdded C/C++ versions, please contact [email protected]
function delay(T)
if(T > 0) %end condition
t = timer('timerfcn','delay(0)','StartDelay',T);
start(t);
wait(t);
end