You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is a simple c++ library created to read data from supported proximity senso
4
4
5
5
It was specifically developed to read data from the capa NCDT 6200 control units, but it should work with other capa NCDT control units if they adhere to the same messaging protocol.
6
6
7
-
To ensure your control unit is supported, please refer to the [Micro Epsilon manuals](https://www.micro-epsilon.com/distance-sensors/capacitive-sensors/capancdt-6200/)for more information on the messaging protocol and compare it to the one that NCDT 6200 uses.
7
+
To ensure your control unit is supported, please refer to the [Micro Epsilon manuals](https://www.micro-epsilon.com/distance-sensors/capacitive-sensors/capancdt-6200/)and compare the messaging protocol with the one that NCDT 6200 uses.
8
8
9
9
## Features
10
10
@@ -30,11 +30,7 @@ To ensure your control unit is supported, please refer to the [Micro Epsilon man
30
30
3. Build the project:
31
31
32
32
```bash
33
-
cmake -S . -B build \
34
-
-DENABLE_COVERAGE=OFF \
35
-
-DBUILD_TESTING=OFF \
36
-
-DCMAKE_BUILD_TYPE=Debug
37
-
33
+
cmake -S . -B build
38
34
cd build
39
35
make
40
36
```
@@ -65,13 +61,13 @@ target_link_libraries(my_app
65
61
)
66
62
```
67
63
68
-
Using the library is straightforward. This example demonstrates how to read data from a proximity sensor connected to a capa NCDT control unit.
64
+
Using the library is straightforward. The below example demonstrates how to read data from a proximity sensor connected to a capa NCDT control unit.
69
65
70
66
Ensure you provide the correct measuring range of the sensor you are using according to it's specifications. For instance the CS02 sensor has a measuring range of 0-2mm, hence the measuring range is 2000 in micrometers.
71
67
72
68
The channel number is the number of the channel your sensor is connected to on the control unit, starting from 1. The capaNCDT 6200 control unit for instance supports up to 4 channels, all of which can be used simultaneously.
73
69
74
-
For more information on the library interface, please refer to the [header files](include/capancdt/proximity_sensor.h).
70
+
For more information on the library interface, please refer to the [header files](include/capancdt/).
The library provides a standalone binary that can be used to read data from the capa NCDT control unit and output the measurements to the console. After installing the library, the binary can be found in the `bin` directory. The binary is called `capancdt_read_sensor`amd can be used as follows:
169
+
The library provides a standalone binary that can be used to read data from the capa NCDT control unit and output the measurements to the console. After installing the library, the binary can be found in the `bin` directory (f.x `/usr/local/bin/`). The binary is called `capancdt_read_sensor`and can be used as follows:
0 commit comments