TestSoleil.m 685 Bytes
Newer Older
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
%% test movable for h streerers
sh      = movable('HCOR',...
    'get_fun',@()getam('HCOR','Physics'),...
    'set_fun',@(values)setsp('HCOR',values',obj.indHst','Physics'),...
    'absolute',true,'limits',[-0.980e-3 0.980e-3]);

% test get: this should return the array of steerers value
sh.get

%% test movable for v streerers
sv      = movable('VCOR',...
    'get_fun',@()getam('VCOR','Physics'),...
    'set_fun',@(values)setsp('VCOR',values',obj.indVst','Physics'),...
    'absolute',true,'limits',[-.711e-3 .711e-3]);

% test get: this should return the array of steerers value
sv.get


%% test FirstTurns class
FT = FirstTurns('soleil');

%read trajectory
FT.measuretrajectory