资源简介
陀螺仪官方DMP库输出四元函数

代码片段和文件信息
/*
$License:
Copyright (C) 2011-2012 InvenSense Corporation All Rights Reserved.
See included License.txt for License information.
$
*/
/**
* @addtogroup DRIVERS Sensor Driver layer
* @brief Hardware drivers to communicate with sensors via I2C.
*
* @{
* @file inv_mpu.c
* @brief An I2C-based driver for Invensense gyroscopes.
* @details This driver currently works for the following devices:
* MPU6050
* MPU6500
* MPU9150 (or MPU6050 w/ AK8975 on the auxiliary bus)
* MPU9250 (or MPU6500 w/ AK8963 on the auxiliary bus)
*/
#include
#include
#include
#include
#include
#include “inv_mpu.h“
/* The following functions must be defined for this platform:
* i2c_write(unsigned char slave_addr unsigned char reg_addr
* unsigned char length unsigned char const *data)
* i2c_read(unsigned char slave_addr unsigned char reg_addr
* unsigned char length unsigned char *data)
* delay_ms(unsigned long num_ms)
* get_ms(unsigned long *count)
* reg_int_cb(void (*cb)(void) unsigned char port unsigned char pin)
* labs(long x)
* fabsf(float x)
* min(int a int b)
*/
#if defined MOTION_DRIVER_TARGET_MSP430
#include “msp430.h“
#include “msp430_i2c.h“
#include “msp430_clock.h“
#include “msp430_interrupt.h“
#define i2c_write msp430_i2c_write
#define i2c_read msp430_i2c_read
#define delay_ms msp430_delay_ms
#define get_ms msp430_get_clock_ms
static inline int reg_int_cb(struct int_param_s *int_param)
{
return msp430_reg_int_cb(int_param->cb int_param->pin int_param->lp_exit
int_param->active_low);
}
#define log_i(...) do {} while (0)
#define log_e(...) do {} while (0)
/* labs is already defined by TI‘s toolchain. */
/* fabs is for doubles. fabsf is for floats. */
#define fabs fabsf
#define min(ab) ((a#elif defined EMPL_TARGET_MSP430
#include “msp430.h“
#include “msp430_i2c.h“
#include “msp430_clock.h“
#include “msp430_interrupt.h“
#include “log.h“
#define i2c_write msp430_i2c_write
#define i2c_read msp430_i2c_read
#define delay_ms msp430_delay_ms
#define get_ms msp430_get_clock_ms
static inline int reg_int_cb(struct int_param_s *int_param)
{
return msp430_reg_int_cb(int_param->cb int_param->pin int_param->lp_exit
int_param->active_low);
}
#define log_i MPL_LOGI
#define log_e MPL_LOGE
/* labs is already defined by TI‘s toolchain. */
/* fabs is for doubles. fabsf is for floats. */
#define fabs fabsf
#define min(ab) ((a#elif defined EMPL_TARGET_UC3L0
/* Instead of using the standard TWI driver from the ASF library we‘re using
* a TWI driver that follows the slave address + register address convention.
*/
#include “twi.h“
#include “delay.h“
#include “sysclk.h“
#include “log.h“
#inc
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 521 2012-12-14 11:14 em
文件 15703 2012-12-14 11:14 em
文件 2582 2012-12-14 11:14 em
文件 93 2012-12-14 11:14 em
文件 1351 2012-12-14 11:14 em
文件 154 2012-12-14 11:14 em
文件 19342 2012-12-14 11:16 em
文件 6765 2012-12-14 11:16 em
文件 82774 2012-12-14 11:16 em
文件 4469 2012-12-14 11:16 em
文件 58237 2012-12-14 11:16 em
文件 3538 2012-12-14 11:16 em
文件 4841 2012-12-14 11:16 em
文件 5039 2012-12-14 11:16 em
文件 2235 2012-12-14 11:16 em
文件 3131 2012-12-14 11:16 em
文件 2740 2012-12-14 11:16 em
文件 9835 2012-12-14 11:16 em
文件 6200 2012-12-14 11:16 em
文件 6371 2012-12-14 11:16 em
文件 11100 2012-12-14 11:16 em
文件 9847 2012-12-14 11:16 em
文件 7886 2012-12-14 11:16 em
文件 1301 2012-12-14 11:16 em
文件 6305 2012-12-14 11:16 em
文件 3497 2012-12-14 11:16 em
文件 9723 2012-12-14 11:16 em
文件 2343 2012-12-14 11:16 em
文件 7389 2012-12-14 11:16 em
文件 2709 2012-12-14 11:16 em
............此处省略58个文件信息
- 上一篇:ANSI/VITA 65-2017
- 下一篇:MPU9250&DMP
相关资源
- 四轴飞控源码 PID参考apm 采用了dmp自带
- STM8L_MPU6500_DMP_震动唤醒
- MPU6050DMP自检和零偏校准
- 基于STM32的DMP方式读取欧拉角
- STM32F103_FREERTOS_MPU6050DMP_USART_Timer输入捕
- 基于stm32的四旋翼飞控程序
- STM32 MPU6050 dmp读取四元数程序
- stm32 mpu6050 DMP 成功
- STM32 MPU6050-DMP
- MPU6050_DMP模式STM32(库函数版本)--串
- STM32-MPU6050DMP欧拉角输出
- KEIL_mpu9250_dmp
- MPU6050的C代码程序包括DMP直接解算姿态
- MPU9250&DMP;
- MPU9250DMPF103
- MPU6050 DMP
- STM32_MPU6050DMP硬件I2C读取欧拉角
- MPU6050 DMP+ADXL345+NRF24L01+HAL库+STM32F103C
- K60_DMP_3_PID输出
- STM32读取MPU6050官方DMP库
- DMP总结资料
- K60+MPU6050+DMP读取四元数和欧拉角
- 移植MPU9250_DMP原代码到STM32F429
- STM32F103ZET6--MPU6050DMP
- MPU9250&DMP
- STM32_MPU6050_dmp
- ICM-20948 官方全部资料 .zip
- 基于mpu6050(DMP)完成的(PID)自平衡
- windbg (Debugging Tools for Windows)
- STM32遥控平衡车,陀螺仪用的MPU6050,
评论
共有 条评论