You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

489 B

1. 生成构建目录并配置

在 VS Code 集成终端里(命令行位置在工程根目录,即有 CMakeLists.txt 的那个目录)执行:
mkdir build
cd build
cmake ..

1. 编译工程
直接在src文件夹下:
g++ -std=c++14 -DBUSBAR_ROUTER_STATIC -fpermissive *.cpp -I../include -o main.exe

2. 运行可执行程序
在src下执行:
.\main.exe flight_api 100 100 50 0.0 0.0 0.0 1.0 -1.0
其中参数分别为:
x/y/z size, x/y/z offset, voxel size, threshold