登录
首页 » c » LPC1114 MPU6050六轴姿态传感器DMP方式(很稳定)

LPC1114 MPU6050六轴姿态传感器DMP方式(很稳定)

于 2022-07-12 发布 文件大小:929.52 kB
0 152
下载积分: 2 下载次数: 1

代码说明:

//使用NXP的LPC1114FN33的P0_11,P1_10连接MPU6050的IIC,采用MPU6050的DMP方式,直接获取四元数计算姿态,数据很稳定,还可以初始化零位,最大计算频率200Hz,一般的应用足够 int main (void) { int16_t temp[9]; // float ypr[3]; float temp1; float temp2; int16_t angle_temp1,angle_temp2,angle_temp3,angle_circle; // uint8_t i,ucErr,sign = 0; // uint8_t flash_temp[256],flash_temp2[256],i; int16_t Math_hz=0;//,last_Math_hz = 0; int16_t yaw,pitch,roll,full_yaw; int16_t last_yaw=0; SystemInit(); /* Enable AHB clock to the GPIO domain. */ LPC_SYSCON->SYSAHBCLKCTRL |= (1

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 摄像头代码
    说明:  双目标定和校正,双目测距,本人亲测有效,opencv3.2(Bi-target determination and correction, binocular ranging, personal measurement is effective, opencv3.2)
    2019-06-24 16:35:41下载
    积分:1
  • c8051f340
    基于C8051F340TBC开发板,提供3个简单的实例,分别是2个LED循环点亮(led.c)、串口发送接收(serial.c)、按键控制灯(key.c)(C8051F340TBC-based development board to provide three simple example, namely, two LED cycle light (led.c), serial port send and receive (serial.c), keys to control lights (key.c))
    2010-01-21 09:31:09下载
    积分:1
  • 配电网潮流计算 C语言
    电力系统树状配电网潮流计算程序  程序语言为C语言 软件环境为VS2013 程序结果已经过验算,保证正确性,可放心使用。
    2022-08-09 23:56:41下载
    积分:1
  • beginning-directx-11-game-programming
    Many of us wish to create our own video games. For some, gaming is a hobby, and for others it is something fun to participate in casually. But for the rest of us, gaming and the dream of making our own games is more like a passion. Chances are, if you’ve purchased this book, you are looking to turn your desire and passion into something you can play and share with others.
    2013-12-20 01:00:40下载
    积分:1
  • 企业介绍网站
    网站代码,企业介绍网站,包括:关于我们,联系我们,产品展示等内容,前台代码后台都有,年代比较久远,单简单,适合初学者,利用的传统三层架构编写,里面有用户控件
    2022-07-19 16:05:34下载
    积分:1
  • STM32F407 OLED显示实验
    实验器材:探索者STM32F4开发板实验目的:学习单色OLED显示屏的使用硬件资源:1,DS0(连接在PF9) 2,ALIENTEK 0.96寸OLED模块(连接IO说明,见oled.h文件) 实验现象:本实验利用开发板的OLED/CAMERA接口连接ALIENTEK OLED模块,实现OLED模块的显示,下载成功后,通过把OLED模块插入开发板左下角的OLED/CAMERA模块接口,按下复位之后,就可以看到OLED模块不停的显示ASCII码和码值。 注意事项: 1,开发板的OLED/CAMERA模块接口比OLED的插针多2个,OLED靠左插即可.2,例程默认用的8080方式驱动OLED模块,所以OLED模块的BS0,BS1都需要接VCC(默认接的VCC). 
    2022-07-21 18:18:29下载
    积分:1
  • MACD交叉策略
    MT4平台上利用MACD开平仓的一款EA(A EA that uses MACD to open a warehouse on the MT4 platform.)
    2020-06-30 23:20:02下载
    积分:1
  • UBLOX GPS资料包V5.0
    说明:  The GPS module has a PC configuration software called u-Center. It can set the parameters of the module and save it to the EEPROM. In fact, it can also be set through the serial communication of the single-chip microcomputer. However, the PC-side setting is more user-friendly and the result can be seen immediately.
    2020-06-21 12:40:02下载
    积分:1
  • motion_detection
    在vc2010环境中,可实现运动目标检测,效果不错,学习的好资料(Can be realized in vc2010 environment, moving target detection, good results)
    2013-04-18 17:34:28下载
    积分:1
  • UVectorFont
    说明:  VC++将文字处理成轮廓边框效果只显示文字的轮廓,不显示文字实体,有点像空心文字,图形 + 文字 + 矢量(VC ++ treats the text as outline border effect, only displays the outline of the text, does not display the text entity, a bit like hollow text, graphics + text + vector)
    2020-12-21 17:29:07下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载