Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 4 | ||
|---|---|---|---|
| Line 5... | Line 5... | ||
| 5 | * Author: mike |
5 | * Author: mike |
| 6 | */ |
6 | */ |
| 7 | 7 | ||
| 8 | #ifndef INC_NMEA_H_ |
8 | #ifndef INC_NMEA_H_ |
| 9 | #define INC_NMEA_H_ |
9 | #define INC_NMEA_H_ |
| - | 10 | #include <ctype.h> |
|
| 10 | 11 | ||
| 11 | #if !defined true |
12 | #if !defined true |
| 12 | #define true 1 |
13 | #define true 1 |
| 13 | #define false !(true) |
14 | #define false !(true) |
| 14 | #endif |
15 | #endif |
| 15 | 16 | ||
| 16 | typedef unsigned char bool; |
17 | typedef unsigned char bool; |
| 17 | 18 | ||
| 18 | typedef struct |
19 | typedef struct |
| 19 | { |
20 | { |
| - | 21 | char valid; |
|
| - | 22 | char ew; |
|
| - | 23 | char ns; |
|
| 20 | float lat; |
24 | float lat; |
| 21 | float lon; |
25 | float lon; |
| 22 | float heading; |
26 | float heading; |
| 23 | float speed; |
27 | float speed; |
| 24 | } Location; |
28 | } Location; |
| 25 | 29 | ||
| - | 30 | extern uint8_t |
|
| - | 31 | updateLocation (Location *loc); |
|
| 26 | #endif /* INC_NMEA_H_ */ |
32 | #endif /* INC_NMEA_H_ */ |