%state_legend.m

states =    { 'SM Not Running',  %1
            'Run Engr Test',
            'Init Mission',
            'Init Profile',
            'SOSetBellows', %5
            'PreMissionDelay',
            'SurfaceOps',
            'AB Set Fast',
            'AB Retract Slow',
            'Descend', %10
            'Anchor',
            'Start CP Mode',
            'Dumping CP Data',
            'DeAnchor',
            'Ascend', %15
            'Surface',
            'Set Recovery Mode',
            'ProcessErrors',
            'Exit',
            'lastState'}; %20
        
        
        
 for i=1:1:20
     if(i==3 || i==17)
        plot(1,i,'.','Color',state_color(i));
     else
        plot(1,i,'Color',state_color(i));
     end
     hold on;
 end
 
 legend('SM Not Running',  ...%1
            'Run Engr Test',...
            'Init Mission',...
            'Init Profile',...
            'SOSetBellows', ...%5
            'PreMissionDelay',...
            'SurfaceOps',...
            'AB Set Fast',...
            'AB Retract Slow',...
            'Descend', ...%10
            'Anchor',...
            'Start CP Mode',...
            'Dumping CP Data',...
            'DeAnchor',...
            'Ascend', ...%15
            'Surface',...
            'Set Recovery Mode',...
            'ProcessErrors',...
            'Exit',...
            'lastState', ...
            'Location','EastOutside');
 