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

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

于 2022-07-12 发布 文件大小:929.52 kB
0 178
下载积分: 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 个回复

  • 8051fx_wdog
    This example program shows how to configure PCA Module 4 as a watchdog timer. In this example, the watchdog is configured to overflow after 0xFF00 clock cycles.
    2007-11-22 20:59:22下载
    积分:1
  • 132107
    将外部AD转换为阻抗输出,0-10V对应0-10K阻值,分为256级(0-10V input,0-10K output)
    2015-12-31 13:23:54下载
    积分:1
  • 虚拟示波器LPC例程
    虚拟示波器历程 用于在线观察波形 智能车直立车专用(The course of virtual oscilloscope)
    2019-06-09 16:02:37下载
    积分:1
  • kei1758例程l
    说明:  示例软件包括:公共库、外围api和测试模块 的api。公共库包括启动文件、标准定义和 头文件,特定处理器设置模块,通用中断相关api, 计时器程序。外围目录包括:ADC, DAC, DMA, GPIO, PWM, 实时时钟,定时器,SPI, I2C,看门狗定时器,UART,外部 中断,CAN,以太网,USB HID等。 开发环境是Keil(The Example software includes, common library, peripheral APIs, and test modules for the APIs. The common library include startup file, standard definition and header files, processor specific setup module, generic interrupt related APIs, timer routine. The peripheral directories include, ADC, DAC, DMA, GPIO, PWM, Real-time clock, timer, SPI, I2C, Watchdog timer, UART, external interrupt, CAN, Ethernet, USB HID,etc. The development environment is Keil)
    2020-06-16 14:04:41下载
    积分:1
  • mnote-carlo
    Matlab code for cell range calc using montecarlo
    2009-05-31 19:00:44下载
    积分:1
  • nRFSOC-source-code
    nRF无线SOC单片机原理与高级应用源代码(nRF wireless SOC SCM principles and advanced applications source code)
    2012-08-21 21:54:51下载
    积分:1
  • book, a very practical
    c语言编程宝典,非常实用-book, a very practical
    2022-08-21 12:59:22下载
    积分:1
  • Matlab filtfilt函数 C代码改写
    Matlab,filtfilt(零相位滤波函数),C语言改写,子文件包括filter差分方程计算,inverse信号反转,参数计算等函数,亲测可用,与Matlab最终计算结果一致。
    2022-02-01 12:41:02下载
    积分:1
  • 电子元件绘图
    本代码来源于网络,供大家学习使用。 本程序实现了在电路板进行 电子元件器 绘制方法。
    2023-01-14 16:40:04下载
    积分:1
  • FireTest(5.18)
    风场作用下的粒子火焰模拟,采用vc++和opengl技术(wind particles under simulated flame using vc technology and opengl)
    2020-06-29 16:40:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载