【導(dǎo)讀】X-axisreads0g,Y-axisreads-1g.Probablynot:. Reads“zero”whenstationary.signed*int-typevariable(orconstant).x_acc=(float)(x_acc_ADC–x_acc_offset)*x_acc_scale;gyro=(float)(gyro_ADC–gyro_offset)*gyro_scale;horizontally).Thisworkswell(within5%)uptoθ=±π/6=±30º.x_acc=(float)(x_acc_ADC–x_acc_offset)*x_acc_scale;