%% cruise configuration file template, used by cruisesetup.py

%% Edit this section to specify sources for position and attitude
%% (see below for examples of {instrument, message} pairs)

%%
%%                   instrument        message
%%                   ---------        --------
%best.gps_rule  =    {'gpsnav',         'gps'};  %% usually pcode or other gps 
%best.pitch_rule =   {'ashtech',        'adu'};  %% recorded, but not implemented
%best.roll_rule  =   {'ashtech',        'adu'};  %% recorded, but not implemented


%% choose instrument to correct gyro  (at sea: this field was created
%%        using the value specified in  procsetup_onship.py)
%% Must be an available attitude.  "disable" by setting to 'gyro';
hcorr_inst = 'gyro';  %% eg 'posmv'

%% 
%% -----------------------------------------------------------------------------

%% how to specify position and attitude messages:

%%  This cellarray "msg_info" holds a list of all possible serially-logged rbin
%%  directories and the message names extracted from them.  This is
%%  only edited to ADD a new instrument.  Instruments with rbin files
%%  available are extracted as needed (see below for determination of "best"
%%  --> See "help get_instfields"   for more info
%%
%%      directory    extension   extension
%%                    to read     to write
%%     -----------  ---------   ----------
%%       {'gyro'  ,  'hdg',         %% gyro heading
%%       'ashtech',  'adu',         %% attitudes from adu
%%       'posmv',    'pmv',         %% attitudes from posmv
%%       'seapath',  'sea',         %% attitudes from seapath
%%       %
%%       'gpsnav',   'gps',         %% positions from generic GGA (eg. pcode)
%%       'simrad',   'gps',         %% positions from simrad
%%       'ashtech',  'gps',         %% positions from adu
%%       'posmv',    'gps',         %% positions from posmv
%%       'seapath',  'sea_gps',     %% positions from seapath
%%       %
%%       'sndspd',   'spd'},        %% soundspeed sensor (polar ships)
%%
%% %if msg_info is specified below, it overrides the default (which
%%          uses everthing)

msg_info =   {'gyro'  ,  'hdg',         %% gyro heading
             'gpsnav',   'gps'}    %,         %% positions from generic GGA
%             'ashtech',  'adu',         %% attitude from ashtech
%             'ashtech',  'gps'};         %% gps from ashtech




%% These are unlikely to change.
%best.rules = {'gps', 'heading', 'pitch', 'roll'};
best.rules = {'gps', 'heading'};
%best.heading_rule = {'gyro',           'hnc'};  %% "best" = "most reliable"
best.heading_rule = {'gyro',           'hdg'};  %% "best" = "most reliable" 'hdg' for heading with checksum; fb


best.gps_rule  =    {'gpsnav',         'gps'};  %% usually pcode or other gps 
%best.pitch_rule =   {'ashtech',        'adu'};  %% recorded, but not implemented
%best.roll_rule  =   {'ashtech',        'adu'};  %% recorded, but not implemented


%best.gps_rule = {'gpsnav',         'gps'};  %% "best" = "most reliable" 'hdg' for heading with checksum; fb
%best.roll_rule = {'roll',           'adu'};  %% "best" = "most reliable" 'hdg' for heading with checksum; fb
%best.pitch_rule = {'pitch',          'adu'};  %% "best" = "most reliable" 'hdg' for heading with checksum; fb

%% these variables are used by quick_adcp.py

yearbase = 2007;               % yearbase
cruiseid = 'at15_26';             % a title string, cruise designation
uhdas_dir = '/home/data/at15_26';   % root for dirs: raw, rbin, gbin, proc

%% PATHS

% set full paths to raw  bin, gbin, and processing  directories
rawdir   =  fullfile(uhdas_dir, 'raw');
rbindir  =  fullfile(uhdas_dir, 'rbin');

% directory to write processing log files
logfpath  =  fullfile(uhdas_dir, 'proc/proclog');

gbindirbase  =  fullfile(uhdas_dir, 'gbin');    %<--
         %contains son125, os38b, os38n for gbin subdirs (time, best...)




