/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : pa200LR.cc                                                     */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*-----------------------------------------------------------------------*
  *-----------------------------------------------------------------------*/

#include <sys/sched.h>
#include <errno.h>
#include "System.h"
#include "PA200LR.h"
#include "Syslog.h"
#include "SerialParameters.h"

int main( int argc, char **argv )
{
  // Set task priority
  //  if (System::setTaskPriority(CriticalDriverPriority) == -1)
  //    return 1;

  PA200LR *pa200LR = 0;
  SerialDevice *device = 0;

  try {
    SerialParameters parameters(&argc, argv);
    device = new SerialDevice(&parameters);
    pa200LR = new PA200LR(device, True);
    pa200LR->run();
  }
  catch (Exception e){
    Syslog::write("Caught Exception: %s\n",e.msg);
  }
  catch ( ... ) {
    Syslog::write("Caught unknown exception\n");
  }
  
  delete device;
  delete pa200LR;

  return 0;

}
