Subversion Repositories NaviCtrl

Rev

Rev 41 | Rev 217 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 215
1
#ifndef __GPS_H
1
#ifndef __GPS_H
2
#define __GPS_H
2
#define __GPS_H
-
 
3
 
3
 
4
#include "ubx.h"
4
#include "waypoints.h"
5
#include "waypoints.h"
5
 
6
 
6
typedef struct
7
typedef struct
7
{
8
{
8
        s16 Nick;
9
        s16 Nick;
9
        s16 Roll;
10
        s16 Roll;
10
        s16 Yaw;
11
        s16 Yaw;
11
}  __attribute__((packed)) GPS_Stick_t;
12
}  __attribute__((packed)) GPS_Stick_t;
12
 
-
 
13
extern GPS_Pos_t GPS_HomePosition;
13
 
14
extern GPS_Pos_t * GPS_pTargetPosition;
14
extern GPS_Pos_t * GPS_pTargetPosition;
15
extern Waypoint_t* GPS_pWaypoint;
15
extern Waypoint_t* GPS_pWaypoint;
16
 
-
 
17
extern GPS_Stick_t GPS_Stick;
-
 
18
 
-
 
19
void GPS_Navigation(void);
16
 
20
void GPS_Init(void);
17
void GPS_Init(void);
-
 
18
void GPS_Navigation(gps_data_t *pGPS_Data, GPS_Stick_t* pGPS_Stick);
21
extern u8 GPS_CopyPosition(GPS_Pos_t * pGPSPosSrc, GPS_Pos_t* pGPSPosTgt);
19
 
22
 
20
 
23
#endif //__GPS_H
21
#endif //__GPS_H
24
 
22
 
25
 
23