Groups
Groups
Sign in
Groups
Groups
Cortex-M3内核的应用
Conversations
About
Send feedback
Help
陀螺仪读数
142 views
Skip to first unread message
杨萌
unread,
Jan 2, 2012, 11:12:14 PM
1/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Cortex-M3内核的应用
通过读陀螺仪的相应的值,h,l通过如下运算整合成为16位有符号数据
tmp=(int8_t)(h<<8)|l;
默认数据单位是mdps/LSB,故需要进行单位转换才是dps,当使用250dps量程时,灵敏度为8.75mdps/LSB
tmp*8.75/1000
对角速度进行积分可得角度,
du+=tmp*t;
陀螺仪本身存在误差,待须
Reply all
Reply to author
Forward
0 new messages