標(biāo)題: 請問:怎么將L3G4200D輸出的x,y,z值換算成角度? [打印本頁]

作者: lh899306    時間: 2016-1-30 22:26
標(biāo)題: 請問:怎么將L3G4200D輸出的x,y,z值換算成角度?
void data_x()
{
   BUF[0]= Single_ReadL3G4200D(OUT_X_L);
   BUF[1]= Single_ReadL3G4200D(OUT_X_H); //讀取X軸數(shù)據(jù)

   dis_data=(BUF[1]<<8)+BUF[0];       //合成數(shù)據(jù)  
   temp=(float)dis_data*0.07;        
   
d_x=(int)temp;
}

求大神,比如x軸,得到的這個d_x是不是角速度?又怎么將這個值換算成角度值呢?






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1