Included workaround for MacOS timestamp issue

This commit is contained in:
Lorenz Meier 2013-01-10 12:57:09 +01:00
parent 241a8357c0
commit 46cf2a538f
1 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,13 @@ close all
% Set the path to your sysvector.bin file here
filePath = 'sysvector.bin';
% Work around a Matlab bug (not related to PX4)
% where timestamps from 1.1.1970 do not allow to
% read the file's size
if ismac
system('touch -t 201212121212.12 sysvector.bin');
end
%%%%%%%%%%%%%%%%%%%%%%%
% SYSTEM VECTOR
%
@ -105,5 +112,3 @@ if exist(filePath, 'file')
else
disp(['file: ' filePath ' does not exist' char(10)]);
end