Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
gps_sirf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012 Freek van Tienen
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
29#ifndef GPS_SIRF_H
30#define GPS_SIRF_H
31
32#include "std.h"
33#include "modules/gps/gps.h"
34
35#ifndef PRIMARY_GPS
36#define PRIMARY_GPS GPS_SIRF
37#endif
38
39#define SIRF_GPS_NB_CHANNELS 16
40#define SIRF_MAXLEN 255
41
42//Read states
43#define UNINIT 0
44#define GOT_A0 1
45#define GOT_A2 2
46#define GOT_B0 3
47
56
57extern struct GpsSirf gps_sirf;
58
59extern void gps_sirf_init(void);
60extern void gps_sirf_event(void);
61
62#define gps_sirf_periodic_check() gps_periodic_check(&gps_sirf.state)
63
64#endif /* GPS_SIRF_H */
Device independent GPS code (interface)
data structure for GPS information
Definition gps.h:87
int read_state
Definition gps_sirf.h:53
bool msg_valid
Definition gps_sirf.h:50
bool msg_available
Definition gps_sirf.h:49
int msg_len
Definition gps_sirf.h:52
char msg_buf[SIRF_MAXLEN]
buffer for storing one nmea-line
Definition gps_sirf.h:51
void gps_sirf_init(void)
Definition gps_sirf.c:122
struct GpsState state
Definition gps_sirf.h:54
void gps_sirf_event(void)
Definition gps_sirf.c:287
#define SIRF_MAXLEN
Definition gps_sirf.h:40
struct GpsSirf gps_sirf
Definition gps_sirf.c:113