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

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

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

  • 新建文件夹 (2)
    说明:  实验二定时发送程序:复位后,发送板每个大约一秒时间利用CAN总线向接收板发送一个数据(值为发送板数码管显示值),按下按键1,可以暂停或启动发送。 发送板数码管显示值每隔大约一秒增加一(不管按键是否暂停向接收板发送数据)。接收板收到CAN总线接收的值显示在数码管上,初始为0。(Experiment 2 timing sending program: after reset, the sending board USES CAN bus to send a data (the value is the display value of the digital tube of the sending board) to the receiving board for about one second each. Press key 1 to pause or start sending.The display value of sending board digital tube increases by one every about one second (regardless of whether the button is paused to send data to the receiving board).The value received by the CAN bus by the receiving board is displayed on the nixie tube with the initial value of 0.)
    2020-06-20 11:00:02下载
    积分:1
  • matlaborc++
    说明:  C++与MATLAB的数字基带传输系统仿真源代码的实现.(C++ With MATLAB digital base-band transmission system simulation source code to achieve.)
    2008-10-16 11:12:49下载
    积分:1
  • Signal-Analysis
    基于020的简易信号分析仪,能够实现40khz以下的方波、三角波、正弦波频率、幅值检测及频谱分析。(Signal-Analysis system based on 020. Measuring magnitude, frequency of square,triangle,and sin signal under 40khz,including frequency spectrum analysis. )
    2012-04-02 10:34:18下载
    积分:1
  • Navier-Stokes 方程
    用来解矩形区域不可压缩 Navier-Stokes 方程的(Solving incompressible Navier-Stokes equation in rectangular region)
    2020-06-16 05:40:01下载
    积分:1
  • CWT
    说明:  基线校正代码,包括小波基线校正及滤波器基线校正,可用于光谱数据的预处理。((Baseline correction codes, including wavelet baseline correction and filter baseline correction, can be used for preprocessing of spectral data.))
    2019-06-19 17:13:53下载
    积分:1
  • 南瑞的IEC104规约实现源码
    南瑞的IEC-104规约的sever版,实现了遥信、遥测、遥控等基础功能的开发。
    2023-01-17 10:20:03下载
    积分:1
  • bujindianji
    基于单片机MSP430的 步进电机控制 测距程序 (MSP430 microcontroller-based stepper motor control ranging program)
    2014-04-19 16:02:47下载
    积分:1
  • C_Presentation_Day1
    c notes on array, pointer ans some basic programs
    2020-06-25 18:40:01下载
    积分:1
  • eptree112d
    说明:  使用EPTREE可以很好的对,C,C++,Java代码进行解析。绘出函数树图,计算堆栈大小等。 <输出的文件内容> 功能树 INKURUDOFAIRUTSURI 测量若干步骤(有条件汇编) 函数索引(使用堆栈大小为每个功能输出) 使用类名单 全局变量,变结构,对象名单 #定义定义列表 清单中所使用 列表名称 信息分布函数的行数(EPTREE can be used for good, C, C++, Java code analysis. Mapping function tree diagram, calculate the stack size. )
    2008-10-14 23:15:43下载
    积分:1
  • stest
    matlab ,本文献是关于广义s变换的一个源码,但是源码只有函数,不能自动生成变换(Matlab, this literature is a source of generalized s transform, but the source function only, not be generated automatically transform)
    2012-05-24 10:46:26下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载