IMU::getRoll()
Get the roll angle Φ (roll): the angle of rotation around the X axis.
Return Values
Parameters | Type | Description |
number | float | Roll angle Φ (roll): the angle of rotation around the X axis |
Example
This feature requires an upgrade to the latest SDK.
Use the uKit Explore v2 board to get the roll and pitch angle of the gyroscope and display it every 400ms to the serial monitor.
Last updated