/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : ashtechDriver.cc                                              */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 01/17/2003                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include "AshtechGps.h"
#include "Syslog.h"
#include "SerialParameters.h"

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

  SerialDevice *device = 0;

  AshtechGps *gps = 0;

  try {
    SerialParameters params(&argc, argv);
    device = new SerialDevice(&params);
    gps = new AshtechGps(device, &params);
    gps->run();
  }
  catch (Exception e) {
    Syslog::write("_ashtechDriver - caught Exception: %s\n", e.msg);
  }
  catch (...) {
    Syslog::write("_ashtechDriver - caught unknown exception\n");
  }

  delete gps;
  delete device;

  return 0;

}
