s
yy1717
2020-01-13 0754f1ebf80b00922714a79aa0d3b95620835442
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
//
// 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;
};
 
struct carBrief {
    char utc[32];
    int qf;
    int map_id;
    int move;
    double speed;
    double heading;
    double main_ant[2];
    int axial[2];
    int left_front_tire[2];
    int right_front_tire[2];
    int left_rear_tire[2];
    int right_rear_tire[2];
    double *point;
    int pointNum;
};
 
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);
void MA_SendCarPosition(const struct carBrief *brief);
 
 
#endif //MYAPPLICATION2_COMM_IF_H