/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : dropWeight.cc                                                 */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include "DropWeight.h"
#include "Syslog.h"
#include "System.h"

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

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

  return 0;
}

