NinjaFlight
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
gps.h
Go to the documentation of this file.
1
/*
2
* This file is part of Ninjaflight.
3
*
4
* Copyright: collective.
5
* Cleanup: Martin Schröder <mkschreder.uk@gmail.com>
6
* Original source from Cleanflight.
7
*
8
* Ninjaflight is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* Ninjaflight is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#pragma once
23
24
typedef
enum
{
25
GPS_NMEA
= 0,
26
GPS_UBLOX
,
27
GPS_PROVIDER_MAX
28
}
gpsProvider_e
;
29
30
typedef
enum
{
31
GPS_AUTOCONFIG_OFF
= 0,
32
GPS_AUTOCONFIG_ON
,
33
}
gpsAutoConfig_e
;
34
35
typedef
enum
{
36
GPS_AUTOBAUD_OFF
= 0,
37
GPS_AUTOBAUD_ON
38
}
gpsAutoBaud_e
;
39
40
typedef
enum
{
41
SBAS_AUTO
= 0,
42
SBAS_EGNOS
,
43
SBAS_WAAS
,
44
SBAS_MSAS
,
45
SBAS_GAGAN
46
}
sbasMode_e
;
47
48
struct
gps_config
{
49
gpsProvider_e
provider
;
50
sbasMode_e
sbasMode
;
51
gpsAutoConfig_e
autoConfig
;
52
gpsAutoBaud_e
autoBaud
;
53
}
__attribute__
((packed)) ;
54
GPS_AUTOBAUD_OFF
Definition:
gps.h:36
SBAS_GAGAN
Definition:
gps.h:45
gps_config::autoConfig
gpsAutoConfig_e autoConfig
Definition:
gps.h:51
GPS_NMEA
Definition:
gps.h:25
SBAS_MSAS
Definition:
gps.h:44
GPS_AUTOCONFIG_ON
Definition:
gps.h:32
GPS_PROVIDER_MAX
Definition:
gps.h:27
GPS_AUTOCONFIG_OFF
Definition:
gps.h:31
gpsAutoConfig_e
gpsAutoConfig_e
Definition:
gps.h:30
SBAS_AUTO
Definition:
gps.h:41
GPS_AUTOBAUD_ON
Definition:
gps.h:37
__attribute__
typedef __attribute__
sbasMode_e
sbasMode_e
Definition:
gps.h:40
SBAS_EGNOS
Definition:
gps.h:42
gps_config::sbasMode
sbasMode_e sbasMode
Definition:
gps.h:50
gps_config::autoBaud
gpsAutoBaud_e autoBaud
Definition:
gps.h:52
gpsProvider_e
gpsProvider_e
Definition:
gps.h:24
gpsAutoBaud_e
gpsAutoBaud_e
Definition:
gps.h:35
gps_config
Definition:
gps.h:48
SBAS_WAAS
Definition:
gps.h:43
gps_config::provider
gpsProvider_e provider
Definition:
gps.h:49
GPS_UBLOX
Definition:
gps.h:26
src
main
config
gps.h
Generated on Mon Dec 12 2016 15:48:45 for NinjaFlight by
1.8.7