RidgeRun Video Stabilization Library/API Reference/Adding New Sensors: Difference between revisions

Line 46: Line 46:


=== Defining the Get method ===
=== Defining the Get method ===
This method gets data from the IMU sensor. It receives a sensor payload parameter that consists of data from the accelerometer (m/s²), gyroscope (milligravitational), and magnetometer (if needed). The data for each axis (x, y, z) includes the corresponding timestamp (in microseconds). The measured values must be saved in the payload to be accessible to the user-space.
This method gets data from the IMU sensor. It receives a sensor payload parameter that consists of data from the accelerometer (m/s²), gyroscope (rad/s), and magnetometer (if needed). The data for each axis (x, y, z) includes the corresponding timestamp (in microseconds). The measured values must be saved in the payload to be accessible to the user-space.


<syntaxhighlight lang=c++>
<syntaxhighlight lang=c++>
102

edits