![]() |
VectorNav C Library
|
This example illustrates using the high-level VnEzAsyncData structure to access and easily connect to a VectorNav sensor on a system with an operating system and display current data from the VectorNav sensor.
<root>/c/examples/ez_async_data/projects/vs20XX/ez_async_data.sln
.main.c
and edit the SENSOR_PORT
and SENSOR_BAUDRATE
constants at the top of the main()
function to the settings used by your attached VectorNav sensor.BUILD -> Build Solution
.ez_async_data
and select Debug -> Start new instance
.<root>/c/examples/ez_async_data
.main.c
and edit the SENSOR_PORT
and SENSOR_BAUDRATE
constants at the top of the main()
function to the settings used by your attached VectorNav sensor.make
.sudo ./ez_async_data
.<root>/c/examples/ez_async_data
in CLion.main.c
and edit the SENSOR_PORT
and SENSOR_BAUDRATE
constants at the top of the main()
function to the settings used by your attached VectorNav sensor.ez_async_data
configuration is active. You can set this by clicking the small drop-down list in the upper-right corner and selecting the option ez_async_data
.Run -> Build
.Run -> Run 'ez_async_data'
.To compile and run for an environment not listed here, you will need to add all of the *.c
files in the directory <root>/c/src
along with the file located at <root>/c/examples/ez_async_data/main.c
to your project for compilation. You will also need to add <root>/c/include
to your include directories. Finally, before compiling, open the file main.c
and edit the SENSOR_PORT
and SENSOR_BAUDRATE
constants at the top of the main()
function to the settings used by your attached VectorNav sensor.