Debian Codegraph @

src/towedarray.h

raw symbols SCIP
1 /***************************************************************************
2 towedarray.h - description
3 -------------------
4 begin : Sat Mar 16 2002
5 copyright : (C) 2002 by Michael Bridak
6 email :[email protected]
7 $Id: towedarray.h,v 1.3 2003/04/14 05:52:40 mbridak Exp $
8 ***************************************************************************/
9
10 /***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License. *
15 * . *
16 * *
17 ***************************************************************************/
18
19 #ifndef TOWEDARRAY_H
20 #define TOWEDARRAY_H
21
22 #include "stack.h"
23
24 #ifndef TRUE
25 #define TRUE 1
26 #endif
27 #ifndef FALSE
28 #define FALSE 0
29 #endif
30
31 /**
32 *@author Michael Bridak
33 */
34
35 class TowedArray : public Stack {
36 public:
37 TowedArray();
38 TowedArray(double, double);
39 ~TowedArray();
40 void RecordPos(double lat, double lon);
41 int Extend();
42 void Stop();
43 int ReelIn();
44 int CutArray(); // cut the rope and let it go
45 int GetLength();
46 void OperateWinch();
47 void ReturnLatLon(double &latitude, double &longitude);
48 float ReturnHeading();
49 float BearingAmbiguity(float);
50 float BearingToTarget(double target_Latitude, double target_longitude);
51 float CalcBearing(double observer_latitude, double observer_longitude ,double target_latitude,double target_longitude);
52 double RangeToTarget(double target_latitude, double target_longitude);
53 double latitude_array[100], longitude_array[100];
54 float length; // how far out is the array?
55 int winch; // is the array going out or coming in or stopped?
56 int cut; // did we cut the array?
57 };
58
59 #endif