=======先来看MPU6040数据手册=============================
7.12 Self-Test
Self-test allows for the testing of the mechanical and electrical portions of the sensors. The self-test for each
measurement axis can be activated by controlling the bits of the Gyro and Accel control registers.
When self-test is activated, the electronics cause the sensors to be actuated and produce an output signal.
The output signal is used to observe the self-test response.
The self-test response is defined as follows:
Self-test response = Sensor output with self-test enabled – Sensor output without self-test enabled
The self-test response for each accelerometer axis is defined in the accelerometer specification table
(Section 6.2). Similarly, for the gyro axes, self test allows the proof masses to be moved equivalent to a predefined
Coriolis force, resulting in a change in sensor output. The self-test response for each gyroscope axis
is defined in the gyroscope specification table (Section 6.1).
For further information regarding the Gyro & Accel control registers, please refer to the MPU-6050 Register
Map and Register Descriptions document.