(2) 从陀螺仪中获取原始数据并处理; (3) 更新数据并输出。 2. 代码分析 官方的驱动主要是了 MPL软件库(Motion Processing Library),要移植该软件库我们需 要为它提供 I2C 读写接口、定时服务以及 MPU6050 的数据更新标志。若需要输出调试信 息到上位机,还需要提供串口接口。 I2C 读写接口 MPL库的内部对 I2C 读写时都使用 i2c_write 及 i2c_read 函数,在文件“inv_mpu.c” 中给出了它们的接口格式,见代码清单 43-1。 代码清单 43-9 I2C 读写接口(inv_mpu.c 文件) 1 /* The following functions must be defined for this platform: 2 * i2c_write(unsigned char slave_addr, unsigned char reg_addr, 3 * unsigned char length, unsigned char const *data) 4 * i2c_read(unsigned char slave_addr, unsigned char reg_addr, 5 * unsigned char length, unsigned char *data) 6 */ 7 8 #define i2c_write Sensors_I2C_WriteRegister 9 #define i2c_read Sensors_I2C_ReadRegister 这些接口的格式与我们上一小节写的 I2C 读写函数 Sensors_I2C_ReadRegister 及 Sensors_I2C_WriteRegister 一致,所以可直接使用宏替换。 提供定时服务 MPL软件库中使用到了延时及时间戳功能,要求需要提供 delay_ms 函数实现毫秒级延 时,提供 get_ms 获取毫秒级的时间戳,它们的接口格式也在“inv_mpu.c”文件中给出, 见代码清单 43-2。 代码清单 43-10 定时服务接口(inv_mpu.c 文件) 1 /* 2 * delay_ms(unsigned long num_ms) 3 * get_ms(unsigned long *count) 4 */ 5 6 #define delay_ms Delay_ms 7 #define get_ms get_tick_count 我们为接口提供的 Delay_ms 及 get_tick_count 函数定义在 bsp_SysTick.c 文件,我们使 用 SysTick 每毫秒产生一次中断,进行计时,见代码清单 43-11。 代码清单 43-11 使用 Systick 进行定时(bsp_SysTick.c) 1 2 static __IO u32 TimingDelay; 3 static __IO uint32_t g_ul_ms_ticks=0; 4 /** 5 * @brief us 延时程序,1ms 为一个单位 6 * @param 7 * @arg nTime: Delay_ms( 1 ) 则实现的延时为 1 ms 8 * @retval 无 9 */ 10 void Delay_ms(__IO u32 nTime)
2023-02-17 11:43:35 33.8MB STM32F429 M4核
1
EA电动工具 该项目是Visual Studio 2015项目,为Sparx System EA添加了一些新功能。 为了使用此项目(直到完成安装程序),您将必须添加注册表项并重新启动EA才能看到加载项。 基本上,EA Addin流程如下所示: 创建并签署程序集以实现正确的COM方法 将其放入GAC 添加一个注册表项,以便EA加载它。 利润 有两种安装方法: 从获取最新的安装程序 在VS中以管理员身份手动生成项目,然后手动添加注册表项。 如何使用它 现在,当我在攻克它时,首先需要一些主要功能。 可以导出到excel的可追溯性报告视图 通过删除空格并使用html标记格式化列表和段落的格式,可以更好地编辑文档中的粘贴内容。 启用了减价功能的注释部分,与注释列无关。 新评论类型的降价编辑器。 Markdown插件可停靠窗口,以帮助您方便地显示Markdown注释。 可追溯性报告
2023-02-16 20:49:08 884KB C#
1
作者: Bottacchi, Stefano 出版年: 2009-1 页数: 854 定价: 1658.00元 ISBN: 9780470060612 内容简介 · · · · · · A comprehensive reference to noise and signal interference in optical fiber communications Noise and Signal Interference in Optical Fiber Transmission Systems is a compendium on specific topics within optical fiber transmission and the optimization process of the system design. It offers comprehensive treatment of noise and intersymbol interference (ISI) components affecting optical fiber communications systems, containing coverage on noise from the light source, the fiber and the receiver. The ISI is modeled with a statistical approach, leading to new useful computational methods. The author discusses the subject with the help of numerous applications and simulations of noise and signal interference theory. Key features: Complete all-in-one reference on the subject for engineers and designers of optical fiber transmission systems Discusses the physical principles behind several noise contributions encountered in the optical communications systems design, including contributions from the light source, the fiber and the receiver Covers the theory of the ISI for the binary signal, as well as noise statistics Discusses the theory and the mathematical models of the numerous noise components (such as optical noise, photodetection noise and reflection noise) Introduces the frequency description of the ISI and provides new calculation methods based on the characteristic functions Provides useful tools and examples for optimum design of optical fiber transmission networks and systems This book will serve as a comprehensive reference for researchers, R & D engineers, developers and designers working on optical transmission systems and optical communications. Advanced students in optical communications and related fields will also find this book useful.
2023-02-12 00:52:49 156.19MB Optical Fibe
1
Richard C.Dorf & Robert H.Bishop 编写,Modern Control Systems 12edition
2023-02-07 02:49:55 71.63MB 控制系统
1
操作系统三面观Operating Systems:Three Easy Pieces 英文版全本,合并了所有章节,制作了书签,非常好的学习操作系统的资料。
2023-01-31 20:19:59 5.95MB OSTEP 操作系统 英文文档
1
基于节点的统一对话系统 这是使用Unity的GraphView API的基于节点的视觉叙事流程创建工具。 产品特点 无限分支和合并对话功能。 对话和图形保存/加载系统。 小地图可轻松导航。 搜索窗口以创建节点。 黑板和裸露的财产支持。 用于对节点进行分组的注释块。 由Unity的嵌入式GraphView API支持。 包装中提供的样品。 用法 Graph生成对话框,并将其作为可编写脚本的对象保存到Resources文件夹中。 创建一个字段作为DialogueContainer 使用DialogueContainer访问DialogueNodeData和NodeLinks 节点
2023-01-26 15:49:35 34KB unity unity3d graphview dialogue-systems
1
With continuing progress in VLSI and ASIC technologies, digital signal processing (DSP) algorithms have continued to find great use in increasingly wide application areas. DSP has gained popularity also in embedded systems although these systems set challenging constraints for implementations. Embedded systems contain limited resources, thus embedded DSP systems must balance tradeoffs between the requirements on computational power and computational resources. Energy efficiency has been important in batterypowered devices, but nowadays also the limited heat dissipation in small devices calls for low-power consumption. Successful implementation of DSP applications in embedded systems requires tailoring, which in turn sets challenges for design methodologies.
2023-01-09 00:09:31 6.11MB Digital Signal Processing Systems
1
ISO 17387:2008 specifies system requirements and test methods for Lane Change Decision Aid Systems (LCDAS). LCDAS are fundamentally intended to warn the driver of the subject vehicle against potential collisions with vehicles to the side and/or to the rear of the subject vehicle, and moving in the same direction as the subject vehicle during lane change manoeuvres. This standardization addresses LCDAS for use on forward moving cars, vans and straight trucks in highway situations.
2023-01-05 17:00:55 7.28MB LCDAS
1
英文版 database 研究生课程教科书, 深入迁出的介绍了数据库的基本概念。
2023-01-04 22:41:49 7.58MB Database
1
汽车自动自适应巡航标准
2022-12-30 12:13:46 790KB 汽车 综合资源 ADAS
1