![]() |
VectorNav C++ Library
|
This example illustrates using the high-level EzAsyncData class to access a easily connect to a VectorNav sensor on a system with an operating system and display current data from the VectorNav sensor.
<root>/cpp/examples/ez_async_data/projects/vs20XX/ez_async_data.sln.main.cpp and edit the SensorPort and SensorBaudrate 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>/cpp/examples/ez_async_data/main.cpp and edit the SensorPort and SensorBaudrate constants at the top of the main() function to the settings used by your attached VectorNav sensor.<root>/cpp/examples/ez_async_data .make .sudo ./ez_async_data . Note that it is required to run the command using sudo since administrator privileges are required to access the serial ports on Linux.<root>/cpp/examples/ez_async_data in CLion.main.cpp and edit the SensorPort and SensorBaudrate 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 'gettings_started'.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.cpp and edit the SensorPort and SensorBaudrate constants at the top of the main() function to the settings used by your attached VectorNav sensor.
1.8.10