%function def = plotDefaults
%  To add to the previous plot, reviewset newFig to 0
%  The default review set is 'Custom'
function def = plotDefaults
	global reviewsets
	
% edit this
reviewsets = sort({ ...
	'Custom'; ...
	'General'; ...
	'DynamicControl'; ...
	'Tailcone'; ...
	'Timing'; ...
	'Syslog'; ...
	%insert here
});

% leave this alone
reviewsets{end+1} = 'Expert';
n = 0;

% Depth PID
n = n+1;
def(n).name = 'dynamicControl';
def(n).plotName = 'Depth PID';
def(n).fields = { 'depthP' 'depthI' 'depthD' 'depthCmd' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('DynamicControl');

%Heading PID
n = n+1;
def(n).name = 'dynamicControl';
def(n).plotName = 'Heading PID';
def(n).fields = { 'headingP' 'headingI' 'headingD' 'headingCmd' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('DynamicControl');

%Pitch PID
n = n+1;
def(n).name = 'dynamicControl';
def(n).plotName = 'Pitch PID';
def(n).fields = { 'pitchP' 'pitchI' 'pitchD' 'pitchCmd' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('DynamicControl');

% Heading
n = n+1;
def(n).name = 'dynamicControl';
def(n).plotName = 'Commanded Heading';
def(n).fields = { 'headingCmd' 'headingTraj' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('General');

% Heading (con't)
n = n+1;
def(n).name = 'navigation';
def(n).plotName = ['Measured Heading'];
def(n).fields = { 'yaw' };
def(n).newFig = 0;
def(n).reviewset = getReviewSetIndex('General');

% Depth
n = n+1;
def(n).name = 'dynamicControl';
def(n).plotName = 'Commanded Depth';
def(n).fields = { 'depthCmd' 'depthTraj' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('General');

% Depth (con't)
n = n+1;
def(n).name = 'navigation';
def(n).plotName = 'Measured Depth';
def(n).fields = { 'depth' 'altitude' };
def(n).newFig = 0;
def(n).reviewset = getReviewSetIndex('General');

% Pitch
n = n+1;
def(n).name = 'dynamicControl';
def(n).plotName = 'Commanded Pitch';
def(n).fields = { 'pitchCmd' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('General');

% Pitch (con't)
n = n+1;
def(n).name = 'navigation';
def(n).plotName = 'Measured Pitch';
def(n).fields = { 'pitch' };
def(n).newFig = 0;
def(n).reviewset = getReviewSetIndex('General');

% Roll
n = n+1;
def(n).name = 'navigation';
def(n).plotName = 'Measured Roll';
def(n).fields = { 'roll' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('General');

% Velocity
n = n+1;
def(n).name = 'rdiadcp';
def(n).plotName = 'Measured Velocity';
def(n).fields = { 'rawvel1' 'rawvel2' 'rawvel3' 'rawvel4'};
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('Custom');

% Range
n = n+1;
def(n).name = 'rdiadcp';
def(n).plotName = 'Measured Range';
def(n).fields = { 'rawrange1' 'rawrange2' 'rawrange3' 'rawrange4'};
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('Custom');

% Tailcone Thruster
n = n+1;
def(n).name = 'tailcone';
def(n).plotName = 'Tailcone Thruster';
def(n).fields = { 'commandedPropSpeed' 'actualPropSpeed' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('Tailcone');

% Tailcone Elevator
n = n+1;
def(n).name = 'tailcone';
def(n).plotName = 'Tailcone Elevator';
def(n).fields = { 'commandedElevatorAngle' 'actualElevatorAngle' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('Tailcone');

% Tailcone Rudder
n = n+1;
def(n).name = 'tailcone';
def(n).plotName = 'Tailcone Rudder';
def(n).fields = { 'commandedRudderAngle' 'actualRudderAngle' };
def(n).newFig = 1;
def(n).reviewset = getReviewSetIndex('Tailcone');
