Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 10 months ago.
How about yaw?
That's a really good work!
I am quite new to this game, could someone assist on how to change the sampling frequency? It is set at 200Hz here but for the needs of a small project I'm doing I need about 400-500Hz. (all these data are written in an sd card using the SDFileSystem library)
Also I wonder if it is possible to calculate yaw as well without the aid of a magnetomer?
Question relating to:
![](/media/cache/profiles/92cf72685514221c79c830bfcd4aac4e.jpg.50x50_q85.png)
1 Answer
8 years, 9 months ago.
Hi, thank you.
To change the sampling frequency you should edit some functions in .cpp file according to the information from MPU6050 datasheet and register map. Some of the other functions may depend on sampling frequency, so carefully read the code and comments, then by looking at the datasheet you can make necessary actions.
I have heard that just by using MPU6050 it is possible to obtain yaw angle. Some of them uses DMP in the sensor to get yaw angle. But I recommend to use a magnetometer module to get yaw angle. If the change of angle is important for you, it is also possible to use gyro data too.