Subversion Repositories Projects

Rev

Rev 2197 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2136 - 1
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
 
4
//############################################################################
5
//# HISTORY  gps.h
6
//#
7
//# 20.06.2014 OG - NEU
8
//############################################################################
9
 
10
 
11
#ifndef GPS_H_
12
#define GPS_H_
13
 
14
 
15
 
16
GPS_PosDev_t gps_Deviation( GPS_Pos_t pos1, GPS_Pos_t pos2 );
17
 
18
/**
19
 * Position data in fractional degrees or radians
20
 */
21
typedef struct _nmeaPOS
22
{
23
    int32_t lat;         /**< Latitude */
24
    int32_t lon;         /**< Longitude */
25
 
26
} nmeaPOS;
27
 
28
extern nmeaPOS NMEApos;
29
extern nmeaPOS NMEATarget;
30
 
31
 
32
int nmea_move_horz(
33
    const nmeaPOS *start_pos,   /**< Start position in radians */
34
    nmeaPOS *end_pos,           /**< Result position in radians */
35
    double azimuth,             /**< Azimuth (degree) [0, 359] */
36
    double distance             /**< Distance (km) */
37
    );
38
 
39
 
40
int nmea_move_horz1(
41
    const nmeaPOS *start_pos,   /**< Start position in radians */
42
    nmeaPOS *end_pos,           /**< Result position in radians */
43
    double azimuth,             /**< Azimuth (degree) [0, 359] */
44
    double distance             /**< Distance (km) */
45
    );
46
 
2197 - 47
 
2200 - 48
uint8_t followme_calculate_offset(
2197 - 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
 
2136 - 57
#endif // #define GPS_H_