Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_skytraq.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Antoine Drouin <poinix@gmail.com>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
22 #ifndef GPS_SKYTRAQ_H
23 #define GPS_SKYTRAQ_H
24 
25 #include "mcu_periph/uart.h"
26 
27 #define SKYTRAQ_ID_NAVIGATION_DATA 0XA8
28 
29 #ifndef PRIMARY_GPS
30 #define PRIMARY_GPS GPS_SKYTRAQ
31 #endif
32 
33 /* last error type */
41 };
42 
43 #define GPS_SKYTRAQ_MAX_PAYLOAD 255
44 struct GpsSkytraq {
48 
55 
56  struct LtpDef_i ref_ltp;
57 
58  struct GpsState state;
59 };
60 
61 extern struct GpsSkytraq gps_skytraq;
62 
63 extern void gps_skytraq_init(void);
64 extern void gps_skytraq_event(void);
65 
66 #define gps_skytraq_periodic_check() gps_periodic_check(&gps_skytraq.state)
67 
68 #endif /* GPS_SKYTRAQ_H */
unsigned short uint16_t
Definition: types.h:16
struct LtpDef_i ref_ltp
Definition: gps_skytraq.h:56
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
definition of the local (flat earth) coordinate system
enum GpsSkytraqError error_last
Definition: gps_skytraq.h:54
GpsSkytraqError
Definition: gps_skytraq.h:34
uint8_t msg_buf[GPS_SKYTRAQ_MAX_PAYLOAD]
Definition: gps_skytraq.h:45
bool msg_available
Definition: gps_skytraq.h:46
struct GpsState state
Definition: gps_skytraq.h:58
void gps_skytraq_event(void)
Definition: gps_skytraq.c:115
data structure for GPS information
Definition: gps.h:87
#define GPS_SKYTRAQ_MAX_PAYLOAD
Definition: gps_skytraq.h:43
uint8_t msg_id
Definition: gps_skytraq.h:47
unsigned char uint8_t
Definition: types.h:14
struct GpsSkytraq gps_skytraq
Definition: gps_skytraq.c:51
uint16_t len
Definition: gps_skytraq.h:50
uint8_t status
Definition: gps_skytraq.h:49
void gps_skytraq_init(void)
Definition: gps_skytraq.c:93
uint8_t error_cnt
Definition: gps_skytraq.h:53
uint8_t checksum
Definition: gps_skytraq.h:52
uint8_t msg_idx
Definition: gps_skytraq.h:51