Subversion Repositories NaviCtrl

Rev

Rev 451 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ingob 1
#ifndef __GPS_H
2
#define __GPS_H
3
 
215 killagreg 4
#include "ubx.h"
41 ingob 5
#include "waypoints.h"
1 ingob 6
 
41 ingob 7
typedef struct
1 ingob 8
{
41 ingob 9
        s16 Nick;
10
        s16 Roll;
419 holgerb 11
//      s16 Yaw;
41 ingob 12
}  __attribute__((packed)) GPS_Stick_t;
1 ingob 13
 
280 killagreg 14
#define CAM_UPDATE_AZIMUTH              0x01
15
#define CAM_UPDATE_ELEVATION    0x02
278 killagreg 16
typedef struct
17
{
18
        s16 Azimuth;            // angle measured clockwise from north
19
        s16 Elevation;          // angle measured upwards from horizont
280 killagreg 20
        u8 UpdateMask;
278 killagreg 21
} __attribute__((packed)) CAM_Orientation_t;
22
 
23
extern CAM_Orientation_t CAM_Orientation;
280 killagreg 24
extern Point_t* GPS_pWaypoint;
355 holgerb 25
extern u8 MaxNumberOfWaypoints;    // should be 32
369 holgerb 26
extern u16 AbsoluteFlyingRange;    // Maximum distance that the MK is not allowed to exceed - keep zero if not used
27
extern s16 AbsoluteFlyingAltitude; // Maximum altitude that the MK is not allowed to exceed - keep zero if not used
28
extern u16 AutoDescendRange;
1 ingob 29
 
41 ingob 30
void GPS_Init(void);
215 killagreg 31
void GPS_Navigation(gps_data_t *pGPS_Data, GPS_Stick_t* pGPS_Stick);
222 holgerb 32
void CalcHeadFree(void);
451 holgerb 33
void EnableNewWpHeading(void);
1 ingob 34
 
258 holgerb 35
#define EVENTFLAG_1_WP_CHANNEL    1
36
#define EVENTFLAG_2_WP_CHANNEL    2
37
 
41 ingob 38
#endif //__GPS_H
1 ingob 39