Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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 "
subsystems/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
48
struct
GpsSirf
{
49
bool
msg_available
;
50
bool
msg_valid
;
51
char
msg_buf
[
SIRF_MAXLEN
];
52
int
msg_len
;
53
int
read_state
;
54
struct
GpsState
state
;
55
};
56
57
extern
struct
GpsSirf
gps_sirf
;
58
59
extern
void
gps_sirf_init
(
void
);
60
extern
void
gps_sirf_event
(
void
);
61
62
#define gps_sirf_periodic_check() gps_periodic_check(&gps_sirf.state)
63
64
#endif
/* GPS_SIRF_H */
GpsSirf
Definition:
gps_sirf.h:48
GpsSirf::msg_len
int msg_len
Definition:
gps_sirf.h:52
SIRF_MAXLEN
#define SIRF_MAXLEN
Definition:
gps_sirf.h:40
gps_sirf_event
void gps_sirf_event(void)
Definition:
gps_sirf.c:287
GpsState
data structure for GPS information
Definition:
gps.h:87
gps.h
Device independent GPS code (interface)
std.h
GpsSirf::msg_buf
char msg_buf[SIRF_MAXLEN]
buffer for storing one nmea-line
Definition:
gps_sirf.h:51
GpsSirf::msg_valid
bool msg_valid
Definition:
gps_sirf.h:50
gps_sirf
struct GpsSirf gps_sirf
Definition:
gps_sirf.c:113
gps_sirf_init
void gps_sirf_init(void)
Definition:
gps_sirf.c:122
GpsSirf::state
struct GpsState state
Definition:
gps_sirf.h:54
GpsSirf::read_state
int read_state
Definition:
gps_sirf.h:53
GpsSirf::msg_available
bool msg_available
Definition:
gps_sirf.h:49
sw
airborne
subsystems
gps
gps_sirf.h
Generated on Wed Feb 10 2021 04:34:21 for Paparazzi UAS by
1.8.8