Rev 2192 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2192 | Rev 2194 | ||
---|---|---|---|
1 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
3 | 3 | ||
4 | //############################################################################ |
4 | //############################################################################ |
5 | //# HISTORY gps.h |
5 | //# HISTORY gps.h |
6 | //# |
6 | //# |
7 | //# 20.06.2014 OG - NEU |
7 | //# 20.06.2014 OG - NEU |
8 | //############################################################################ |
8 | //############################################################################ |
9 | 9 | ||
10 | 10 | ||
11 | #ifndef GPS_H_ |
11 | #ifndef GPS_H_ |
12 | #define GPS_H_ |
12 | #define GPS_H_ |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | GPS_PosDev_t gps_Deviation( GPS_Pos_t pos1, GPS_Pos_t pos2 ); |
16 | GPS_PosDev_t gps_Deviation( GPS_Pos_t pos1, GPS_Pos_t pos2 ); |
17 | 17 | ||
18 | /** |
18 | /** |
19 | * Position data in fractional degrees or radians |
19 | * Position data in fractional degrees or radians |
20 | */ |
20 | */ |
21 | typedef struct _nmeaPOS |
21 | typedef struct _nmeaPOS |
22 | { |
22 | { |
23 | int32_t lat; /**< Latitude */ |
23 | int32_t lat; /**< Latitude */ |
24 | int32_t lon; /**< Longitude */ |
24 | int32_t lon; /**< Longitude */ |
25 | 25 | ||
26 | } nmeaPOS; |
26 | } nmeaPOS; |
27 | 27 | ||
28 | extern nmeaPOS NMEApos; |
28 | extern nmeaPOS NMEApos; |
29 | extern nmeaPOS NMEATarget; |
29 | extern nmeaPOS NMEATarget; |
30 | 30 | ||
- | 31 | ||
31 | 32 | ||
32 | int nmea_move_horz( |
33 | int nmea_move_horz( |
33 | const nmeaPOS *start_pos, /**< Start position in radians */ |
34 | const nmeaPOS *start_pos, /**< Start position in radians */ |
34 | nmeaPOS *end_pos, /**< Result position in radians */ |
35 | nmeaPOS *end_pos, /**< Result position in radians */ |
35 | double azimuth, /**< Azimuth (degree) [0, 359] */ |
36 | double azimuth, /**< Azimuth (degree) [0, 359] */ |
36 | double distance /**< Distance (km) */ |
37 | double distance /**< Distance (km) */ |
37 | ); |
38 | ); |
38 | 39 | ||
39 | 40 | ||
40 | int nmea_move_horz1( |
41 | int nmea_move_horz1( |
41 | const nmeaPOS *start_pos, /**< Start position in radians */ |
42 | const nmeaPOS *start_pos, /**< Start position in radians */ |
42 | nmeaPOS *end_pos, /**< Result position in radians */ |
43 | nmeaPOS *end_pos, /**< Result position in radians */ |
43 | double azimuth, /**< Azimuth (degree) [0, 359] */ |
44 | double azimuth, /**< Azimuth (degree) [0, 359] */ |
44 | double distance /**< Distance (km) */ |
45 | double distance /**< Distance (km) */ |
45 | ); |
46 | ); |
46 | - | ||
47 | - | ||
48 | int followme_calculate_offset( |
- | |
49 | const nmeaPOS *pkt_pos, /**< Start position in radians */ |
- | |
50 | nmeaPOS *target_pos, /**< Result position in radians */ |
- | |
51 | int d_lat, /**< Distance lat(m) */ |
- | |
52 | int d_lon /**< Distance long(m) */ |
- | |
53 | ); |
- | |
54 | - | ||
55 | - | ||
56 | 47 | ||
57 | #endif // #define GPS_H_ |
48 | #endif // #define GPS_H_ |
58 | 49 |