/******************************************************************/
/*  Copyright (c) 2000 MIT Sea Grant AUV LAB                      */
/*                                                                */
/*  MIT proprietary information--All rights reserved              */
/******************************************************************/
/*                                                                */
/*  Summary:                                                      */
/*                                                                */
/*  FileName:  _ps8000.cc                                         */
/*                                                                */
/*  Author:    Don Eickstedt                                      */
/*                                                                */
/*  Created:    25 May 2000                                       */
/******************************************************************/

#include "Syslog.h"
#include "System.h"
#include "SerialParameters.h"
#include "PS8000.h"

int main ( int argc, char **argv )
{
  PS8000 *ps8000;

  if (System::setTaskPriority(CriticalDriverPriority) == -1)
    return 1;

try
  {
    SerialParameters serialParams(&argc, argv);
    ps8000 = new PS8000(&serialParams);
    ps8000 -> run();
  }
catch(char* message){
  Syslog::write(message);
}
catch( ... ) {
  Syslog::write("PS8000 -- Caught exception! -- aborting");
}
delete ps8000;
return 0;
}
