![]() |
VectorNav Unity Library
|
This example illustrates communicating with a VectorNav sensor over a serial port.
<root>/unity/examples/getting_started. rotating_cube.unity scene. This may be done by going to the Project tab at the bottom and selecting the scene located at Assets/Scenes/rotating_cube.unity. SensorRotateObject.cs contains details and comments describing the process of connection and updating the cube's orientation.<root>/unity/examples/getting_started. rotating_cube.unity scene. This may be done by going to the Project tab at the bottom and selecting the scene located at Assets/Scenes/rotating_cube.unity. File -> Build Settings... and for the Platform option, select the Android option.Build And Run button. You will be asked to save the application package file (*.apk). Choose a name and location. Unity should then push the application to the phone and start running it. Once the cube is displayed on the phone, disconnect the phone from the computer and plug the VectorNav sensor into the phone. The program should then detect the sensor and start moving the displayed cube based on the orientation data coming from the sensor. If the message "Allow application
getting_started to access USB device?" pops up, click the OK button.
1.8.10