-
Notifications
You must be signed in to change notification settings - Fork 18k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP_GPS: add an AP_GPS_FixType header
useful when you need nice symbols for the numbers, but are not compiling the GPS headers in
- Loading branch information
1 parent
8cfdf10
commit bd16608
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
// a AP_GPS-library-independent enumeration which lists the commonly | ||
// accepted set of GPS Fix Types which GPSs report. This header can | ||
// be used even if AP_GPS is not compiled in. | ||
|
||
// this is not enum-class as many places in the code want to check for | ||
// "a fix at least this good" using "<". | ||
|
||
enum AP_GPS_FixType { | ||
NO_GPS = 0, ///< No GPS connected/detected | ||
NONE = 1, ///< Receiving valid GPS messages but no lock | ||
FIX_2D = 2, ///< Receiving valid messages and 2D lock | ||
FIX_3D = 3, ///< Receiving valid messages and 3D lock | ||
DGPS = 4, ///< Receiving valid messages and 3D lock with differential improvements | ||
RTK_FLOAT = 5, ///< Receiving valid messages and 3D RTK Float | ||
RTK_FIXED = 6, ///< Receiving valid messages and 3D RTK Fixed | ||
}; |