© Copyright e-con Systems. 2017. All rights reserved.
5
▪
GYRO_SENSITIVITY_CONFIG = IMU_GYRO_SENS_250DPS
2.
You must configure IMU value update mode.
▪
IMU_UPDATE_MODE = IMU_CONT_UPDT_EN
3.
Once these values are configured, you must call the GetIMUValueBuffer HID
command and you will get the IMU values in a separate thread.
These raw values from accelerometer and gyroscope must be interpreted to use
in the application. You can interpret these values, calculate the rotation angles
and render an inclination window based on the rotation from the camera. By
rotating the camera around a particular axis, the other two planes will be
rotating. You can view how these results change based on the inclination of
camera, and the application waits for a user interrupt (keyboard event). If you
press
Enter
key in the keyboard, the application will exit.
Screenshots of Sample Application
The screenshots of sample application are shown below.
•
In the below figure, you can view the stereo camera - Tara depicting the axis.
•
In the below figure, you can view the application screenshot which is captured
when the camera is rotated in the first half of picture
.