File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,25 @@ This repository has the ping_message base class, and templates + scripts to auto
9
9
10
10
## Usage
11
11
12
+ #### Generated files
13
+
12
14
If you would like to use the C++ API in your project, checkout the [ deployment branch] ( https://github.com/bluerobotics/ping-cpp/tree/deployment ) .
15
+
16
+ #### CMake project
17
+
18
+ The ** master branch** can be used directly in CMake based projects for desktop or SBC applications.
19
+ ##### Example
20
+
21
+ ``` sh
22
+ # Clone the repository
23
+ git clone https://github.com/bluerobotics/ping-cpp
24
+ cd ping-cpp
25
+ # Update the submodules
26
+ git submodule update --init --recursive
27
+ # Configure and build the project in debug mode
28
+ cmake -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build --parallel --config Debug
29
+ # Connect a Ping device and use the correct USB as argument
30
+ ./build/test-device --conn serial:/dev/ttyUSB0:115200
31
+ # If you have a Ping1D connected, you can run the test program for the device
32
+ ./build/test-device-ping1d --conn serial:/dev/ttyUSB0:115200
33
+ ```
You can’t perform that action at this time.
0 commit comments