Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
gps_mtk.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2011 The Paparazzi Team
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
34
#ifndef MTK_H
35
#define MTK_H
36
37
#include "
subsystems/gps.h
"
38
#include "
mcu_periph/uart.h
"
39
41
#include "mtk_protocol.h"
42
43
#define GPS_MTK_MAX_PAYLOAD 255
44
45
#ifndef PRIMARY_GPS
46
#define PRIMARY_GPS GPS_MTK
47
#endif
48
49
struct
GpsMtk
{
50
bool
msg_available
;
51
uint8_t
msg_buf
[
GPS_MTK_MAX_PAYLOAD
] __attribute__((aligned));
52
uint8_t
msg_id
;
53
uint8_t
msg_class
;
54
55
uint8_t
status
;
56
uint16_t
len
;
57
uint8_t
msg_idx
;
58
uint8_t
ck_a
,
ck_b
;
59
uint8_t
send_ck_a
,
send_ck_b
;
60
uint8_t
error_cnt
;
61
uint8_t
error_last
;
62
63
uint8_t
status_flags
;
64
uint8_t
sol_flags
;
65
66
struct
GpsState
state
;
67
};
68
69
extern
struct
GpsMtk
gps_mtk
;
70
71
extern
void
gps_mtk_event
(
void
);
72
extern
void
gps_mtk_init
(
void
);
73
74
#define gps_mtk_periodic_check() gps_periodic_check(&gps_mtk.state)
75
76
#ifdef GPS_CONFIGURE
77
extern
void
gps_configure(
void
);
78
extern
void
gps_configure_uart(
void
);
79
extern
bool
gps_configuring;
80
#define GpsConfigure() { \
81
if (gps_configuring) \
82
gps_configure(); \
83
}
84
#else
85
#define GpsConfigure() {}
86
#endif
87
88
89
#endif
/* MTK_H */
GpsMtk::error_last
uint8_t error_last
Definition:
gps_mtk.h:61
uint16_t
unsigned short uint16_t
Definition:
types.h:16
GpsMtk::send_ck_a
uint8_t send_ck_a
Definition:
gps_mtk.h:59
GpsMtk::msg_class
uint8_t msg_class
Definition:
gps_mtk.h:53
GpsMtk::ck_a
uint8_t ck_a
Definition:
gps_mtk.h:58
GpsState
data structure for GPS information
Definition:
gps.h:87
gps_mtk
struct GpsMtk gps_mtk
Definition:
gps_mtk.c:83
GpsMtk::sol_flags
uint8_t sol_flags
Definition:
gps_mtk.h:64
GpsMtk::error_cnt
uint8_t error_cnt
Definition:
gps_mtk.h:60
GpsMtk::len
uint16_t len
Definition:
gps_mtk.h:56
GPS_MTK_MAX_PAYLOAD
#define GPS_MTK_MAX_PAYLOAD
Includes macros generated from mtk.xml.
Definition:
gps_mtk.h:43
GpsMtk::state
struct GpsState state
Definition:
gps_mtk.h:66
uart.h
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
gps.h
Device independent GPS code (interface)
GpsMtk::msg_available
bool msg_available
Definition:
gps_mtk.h:50
uint8_t
unsigned char uint8_t
Definition:
types.h:14
gps_mtk_init
void gps_mtk_init(void)
Definition:
gps_mtk.c:111
GpsMtk::send_ck_b
uint8_t send_ck_b
Definition:
gps_mtk.h:59
GpsMtk::status_flags
uint8_t status_flags
Definition:
gps_mtk.h:63
GpsMtk::msg_id
uint8_t msg_id
Definition:
gps_mtk.h:52
GpsMtk::ck_b
uint8_t ck_b
Definition:
gps_mtk.h:58
GpsMtk::status
uint8_t status
Definition:
gps_mtk.h:55
GpsMtk::msg_idx
uint8_t msg_idx
Definition:
gps_mtk.h:57
GpsMtk::msg_buf
uint8_t msg_buf[GPS_MTK_MAX_PAYLOAD]
Definition:
gps_mtk.h:51
GpsMtk
Definition:
gps_mtk.h:49
gps_mtk_event
void gps_mtk_event(void)
Definition:
gps_mtk.c:123
sw
airborne
subsystems
gps
gps_mtk.h
Generated on Tue Feb 1 2022 13:51:17 for Paparazzi UAS by
1.8.17