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
//
// Created by YY on 2020/1/7.
//
 
#ifndef MYAPPLICATION2_COMM_IF_H
#define MYAPPLICATION2_COMM_IF_H
 
#include <cstdint>
 
struct gpsBrief {
    char utc[32];
    int sat_num;
    int qf;
    double latitude;
    double longitude;
    double altitude;
    double speed;
};
 
struct rtkBrief {
    char utc[32];
    int qf;
    double coord_x;
    char coord_x_dir;
    double coord_y;
    char coord_y_dir;
    double heading;
    double pitch;
    double roll;
};
 
void MA_MainProcMsgEntry(int cmd, const char *value);
 
void MA_NdkStart(void);
void MA_ReqRtkPlatformConfig(void);
void MA_RtkPlatformConnect(int conn, const char *ip, int port);
void MA_RtkPlatformRegister(int reg, const uint8_t *pwd, int length);
void MA_RtkPlatformLogin(int login);
void MA_ReadMap(void);
void MA_ReadCar(void);
void MA_ReadSensor(void);
void MA_SendExamStatus(int start, int errorCode);
void MA_SendGpsBrief(const struct gpsBrief *brief);
void MA_SendRtkBrief(const struct rtkBrief *brief);
 
#endif //MYAPPLICATION2_COMM_IF_H