Angular Velocity
A three-axis gyroscope is a sensor that measures the angular velocity of an object rotating around the X, Y and Z axes in three-dimensional space. Its core purpose is to provide key data for attitude control, navigation, stability analysis, etc. by monitoring rotational motion in real time.
Example: observe the changes of the angular velocity values of the 3 axes with a line chart
import time
from mpython import *
time.sleep_ms(50);print(('__TITLE', 'Gyro X', 'Gyro Y', 'Gyro Z'));time.sleep_ms(50)
while True:
print((gyroscope.get_x(), gyroscope.get_y(), gyroscope.get_z()))
time.sleep(0.1)