102
edits
Line 18: | Line 18: | ||
=== Defining the Start method === | === Defining the Start method === | ||
This method receives a constant Sensor Parameter configuration. This configuration | This method receives a constant Sensor Parameter configuration. This configuration includes the sensor's operating frequency (in Hz), the sample rate of the measurements (in Hz), and the sensor ID, which helps distinguish the connected sensors. | ||
<syntaxhighlight lang=c++> | <syntaxhighlight lang=c++> | ||
Line 32: | Line 32: | ||
=== Defining the Stop method === | === Defining the Stop method === | ||
This method | This method disables data reception from the sensor when called. It does not receive any parameters, so the logic to stop the sensor is managed internally. | ||
<syntaxhighlight lang=c++> | <syntaxhighlight lang=c++> | ||
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 | 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. | ||
<syntaxhighlight lang=c++> | <syntaxhighlight lang=c++> |
edits