/**---------------------------------------------------------------------------
 ** 
 ** misc.h -- 
 ** 
 ** Author          : Pierre Jaccard
 ** Created On      : 1999/07/15 11:58:36
 ** Last Modified By: Pierre Jaccard
 ** Last Modified On: 1999/07/16 21:13:01
 ** Update Count    : 5
 ** Directory       : /home/pego/pcd1/codas3c/gfi/src/libs/nbr/
 ** Version         : 0.0
 ** Status          : Unknown
 ** ---------------------------------------------------------------------- ** 
 ** DESCRIPTION: 
 ** 
 **    See associated file misc.c
 ** 
 ** ---------------------------------------------------------------------- ** 
 ** REVISIONS: 
 ** ---------------------------------------------------------------------- ** 
 ** CHANGES: 
 **------------------------------------------------------------------------**/

#ifndef gfilib_nbr_misc_already_included
#define gfilib_nbr_misc_already_included

#include "geninc.h"
#include "adcp.h"
#include "convert.h"

/*
#include <geninc.h>
#include <use_db.h>
#include <gfidcl.h>
#include <msg_nbr.h>
#include <adcp_nbr.h> 
#include <conv_nbr.h>
*/

/*
  Minimum number of beams that must have satisfactory bottom percent good data
  for this data to be considered valid
*/
#define NB_BT_PCG_MIN 3				

/*
  Minimum number of beams that must have satisfactory bottom velocity data for 
  this data to be considered valid
*/
#define NB_BT_VEL_MIN 3


#if PROTOTYPE_ALLOWED

int get_bottom_track_status(NBR_ENSEMBLE_TYPE *ping);

#else

int get_bottom_track_status();

#endif  /* PROTOTYPE_ALLOWED */


#endif /* gfilib_nbr_misc_already_included */
