| 1 | /*************************************************************************** |
| 2 | coord.h - description |
| 3 | ------------------- |
| 4 | begin : Sat Mar 16 2002 |
| 5 | copyright : (C) 2002 by Michael Bridak |
| 6 | email : [email protected] |
| 7 | $Id: coord.h,v 1.5 2003/04/14 05:51:03 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 COORD_H |
| 20 | #define COORD_H |
| 21 | |
| 22 | // These map values are also present in the MAP class. |
| 23 | #ifndef MAP_MIN |
| 24 | #define MAP_MIN 0 |
| 25 | #endif |
| 26 | #ifndef MAP_MAX |
| 27 | #define MAP_MAX 300000 |
| 28 | #endif |
| 29 | |
| 30 | #ifndef RADIAN_RATIO |
| 31 | #define RADIAN_RATIO 6.28318530717958647692 |
| 32 | #endif |
| 33 | |
| 34 | /** |
| 35 | *@author Michael Bridak |
| 36 | */ |
| 37 | |
| 38 | class Coord { |
| 39 | public: |
| 40 | float Heading; |
| 41 | float Speed; |
| 42 | int Lat_Degrees; |
| 43 | int Lat_Minutes; |
| 44 | int Lat_Seconds; |
| 45 | float Lat_SubSeconds; |
| 46 | float Lat_TotalYards; |
| 47 | int Lon_Degrees; |
| 48 | int Lon_Minutes; |
| 49 | int Lon_Seconds; |
| 50 | float Lon_SubSeconds; |
| 51 | float Lon_TotalYards; |
| 52 | void UpdateLatLon(); |
| 53 | void LatLonPercent(float heading, float &lop, float &lap); |
| 54 | Coord(); |
| 55 | ~Coord(); |
| 56 | }; |
| 57 | #endif |