添加了全局变量的注释

添加了概要设计书的画图文档
完善了.gitignore
This commit is contained in:
jackfiled 2022-05-12 15:32:45 +08:00
parent 229c87c97a
commit 053ea80067
7 changed files with 28 additions and 7 deletions

10
.gitignore vendored
View File

@ -1,3 +1,11 @@
# 项目的构建文件夹
build/
# VSCode的配置文件夹
.vscode/
.idea/
# CLion的配置文件夹
.idea/
# draw.io的缓存文件
*.bkp

View File

@ -0,0 +1 @@
<mxfile host="Electron" modified="2022-05-12T07:28:58.662Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/18.0.1 Chrome/100.0.4896.143 Electron/18.2.0 Safari/537.36" etag="Ik_97Cbde92uuiPKVPvS" version="18.0.1" type="device"><diagram id="bu9w77FjTZBGwHDWVuck" name="第 1 页">7VhNc5swEP01HJsBhGl8bGy3PbQznTozbU8d1WxAGYGIELHpr68UVgbZ8UfGTsK0PVn7tJKW95ZnDR6Z5KsPkpbZZ5EA90I/WXlk6oVh4JNL/WOQpkXiKGiBVLKkhfwOmLPfYFciWrMEKsRaSAnBFStdcCGKAhbKwaiUYumm3QieOEBJU3DKMMB8QTlspX1jicoQjf1e+kdgaYZHj+1ETm0yAlVGE7HsQWTmkYkUQrWjfDUBbshzeXm/Y3ZdmIRCHbPg+maS1mnz9Srnd9nsdppW8vpNjLWpxj4wJPr5MRRSZSIVBeWzDr2Soi4SMLv6OupyPglRajDQ4C0o1aCYtFZCQ5nKOc7qgmXz3ay/GNnwB273EExXTtRg1NZqCtxJAUKVqOUC9jy3bSUqU1B78sK1ULrDQeSg69HrJHCq2L1bB8VWS9d5uPSdlLTpJZSCFarq7fzFADoB3xoSj9sd8Z0JI0dZPWh3tFGvtA56UP8JnXD5vxP2dgI5sRN66j1dHNz3nvIaT/LCmCtDphmlZpRTVlwsLK6P6aa2pO2EMyosM6ZgXtIHnpbax12R8GyQClb76d6mBxdE0UZHW3tf9jzVGmXWs9PYfy5Gw3+038/iaFuWFbx1BY7CDeHa9wtXbWh3BvcKxq8h57llOcKGAv9E/U56a9Z3mb+e5h1+9kI077Z7Yj1dX3iVFJyDdE2fDMb0SeB6AgkfMX3/EdMfPZfpkyN4/VVXP5kYKqexPzROx0dweleDbIZKaRDs+Ot6NUrt5ehQnw6VURJGBxkdvyihe+7Pa9okZXyojI78wz16JkZ12H2TaK9n3ZcdMvsD</diagram></mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -35,18 +35,15 @@ rail_node_t* ReadConfigFile();
/**
*
* @param up_queries
* @param down_queries
* @param inputString
* @return
*/
read_state_t ReadInput(up_bus_t* up_queries, down_bus_t* down_queries);
read_state_t ReadInput(char* inputString);
/**
*
* @param up_queries
* @param down_queries
* @param rails
*/
void PrintState(up_bus_t* up_queries, down_bus_t* down_queries, rail_node_t* rails);
void PrintState();
#endif //AUTO_PILOT_BUS_BUS_IO_H

View File

@ -43,7 +43,14 @@ typedef struct up_bus up_bus_t;
*/
typedef struct down_bus down_bus_t;
/**
*
*/
extern up_bus_t *up_queries;
/**
*
*/
extern down_bus_t *down_queries;
/**

View File

@ -29,6 +29,9 @@ struct {
*/
typedef struct rail_node rail_node_t;
/**
*
*/
extern rail_node_t* rails;
/**

View File

@ -3,10 +3,15 @@
//
#include "gtest/gtest.h"
#include "gmock/gmock.h"
// 在C++中引用C语言中的函数
#ifdef __cplusplus
extern "C"
{
#endif
#include "rail.h"
#ifdef __cplusplus
}
#endif
using ::testing::Return;
using ::testing::AtLeast;