-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuartTask.h
75 lines (65 loc) · 1.37 KB
/
uartTask.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef _UARTTASK_H_
#define _UARTTASK_H_
#include "OSConfig.h"
#include "stm32f4xx.h"
#define GPGGA 0
#define GPRMC 1
#define GPGMV 2
typedef struct
{
char utc_time[11];
double latitude_value;
char latitude;
double longitude_value;
char longitude;
char position_fix_indicator;
u16 satellites_used; //??μ?μ??àD?êy
float HDOP;
float MSL_altitude;
char MSL_unit;
char other_info[20];
}GGATypeDef;
typedef struct
{
char utc_time[11];
char status;
double latitude_value; //?3?è
char latitude; //???3?1ê?±±?3
double longitude_value; //?-?è
char longitude; //???-?1ê??÷?-
float speed; //μ??ù
float azimuth_angle; //μ??ù·??ò
char utc_data[7];
}RMCTypeDef;
typedef struct
{
char utc_time[11];
double latitude_value; //?3?è
char latitude; //???3?1ê?±±?3
double longitude_value; //?-?è
char longitude; //???-?1ê??÷?-
float alti;
float speedE; //μ??ù
float speedN;
float speedU;
float azimuth_angle; //μ??ù·??ò
}GMVTypeDef;
typedef struct
{
double Lati;
double Long;
float Alti;
float SPD;//speed over ground
float COG;//course over ground
//in MXT GPGMV
float speedE;
float speedN;
float speedU;
//type of msg
u8 type;
}GPSDataType;
extern xQueueHandle xUartGPSQueue;
extern xQueueHandle xUartParaQueue;
extern xQueueHandle xUartWayPointQueue;
void vUartRecTask(void *pvParameters);
#endif