// define mission functions

// mission functions --------------------------------------------
void   mission          ( void    );  
short  check_surf_press ( void    );
short  check_surf       ( short n );
void   go_profile       ( short n );
short  top_turn         ( void    );
short  descend          ( short n );
void   back_up          ( float h );
short  ascend           ( void    );
short  glide            ( short down, float plimit );
short  bottom_turn      ( void    );
short  go_drift         ( void    );
short  surface          ( void    );
short  check_altim      ( short use_alt, short alt_stat, float w );
#if BENTHOS==1  || NPS==1
  short  do_acm         ( void );
#endif

//--- mission-start functions -----------------------------------
void   check_surf_start ( void  );
short  try_roll         ( short tm_try);
short  dBar_detect      ( short tm_hrs );
short  try_ship_start   ( short tm_hrs );
 
//--- exception functions ---------------------------------------
void   abort_mission       ( short err  ); // aug15
void   burn_3              ( void  );
short  pump_recovery       ( void  );
void   check_pump_recovery ( void  );
void   check_sbd_rcvry     ( void  );
void   check_amp_action    ( void  );



//**prototypes for setvals.c
void set_nav      (struct nav_param *np);     //set navigation parameters
void set_flt      (struct flight_param *fp);  //set flight parameters
void set_all_param(struct all_param *all); // set all of the above