资源简介
arduino mpu6050 dmp库文件,用于mpu6050 内部dmp调用
代码片段和文件信息
// I2Cdev library collection - MPU6050 I2C device class
// based on InvenSense MPU-6050 register map document rev. 2.0 5/19/2011 (RM-MPU-6000A-00)
// 8/24/2011 by Jeff Rowberg
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// ... - ongoing debug release
// NOTE: THIS IS ONLY A PARIAL RELEASE. THIS DEVICE CLASS IS CURRENTLY UNDERGOING ACTIVE
// DEVELOPMENT AND IS STILL MISSING SOME IMPORTANT FEATURES. PLEASE KEEP THIS IN MIND IF
// YOU DECIDE TO USE THIS PARTICULAR CODE FOR ANYTHING.
/* ============================================
I2Cdev device library code is placed under the MIT license
Copyright (c) 2012 Jeff Rowberg
Permission is hereby granted free of charge to any person obtaining a copy
of this software and associated documentation files (the “Software“) to deal
in the Software without restriction including without limitation the rights
to use copy modify merge publish distribute sublicense and/or sell
copies of the Software and to permit persons to whom the Software is
furnished to do so subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
===============================================
*/
#include “MPU6050.h“
/** Default constructor uses default I2C address.
* @see MPU6050_DEFAULT_ADDRESS
*/
MPU6050::MPU6050() {
devAddr = MPU6050_DEFAULT_ADDRESS;
}
/** Specific address constructor.
* @param address I2C address
* @see MPU6050_DEFAULT_ADDRESS
* @see MPU6050_ADDRESS_AD0_LOW
* @see MPU6050_ADDRESS_AD0_HIGH
*/
MPU6050::MPU6050(uint8_t address) {
devAddr = address;
}
/** Power on and prepare for general usage.
* This will activate the device and take it out of sleep mode (which must be done
* after start-up). This function also sets both the accelerometer and the gyroscope
* to their most sensitive settings namely +/- 2g and +/- 250 degrees/sec and sets
* the clock source to use the X Gyro for reference which is slightly better than
* the default internal clock source.
*/
void MPU6050::initialize() {
setClockSource(MPU6050_CLOCK_PLL_XGYRO);
setFullScaleGyroRange(MPU6050_GYRO_FS_250);
setFullScaleAccelRange(MPU6050_ACCEL_FS_2);
setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!
}
/** Verify the I2C connection.
* Make sure the device is connected and responds as expected.
* @return True if connection is valid fa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 15873 2014-11-30 13:40 MPU6050\Examples\MPU6050_DMP6\MPU6050_DMP6.ino
....... 9254 2014-11-30 13:40 MPU6050\Examples\MPU6050_DMP6\Processing\MPUTeapot\MPUTeapot.pde
....... 6130 2014-11-30 13:40 MPU6050\Examples\MPU6050_raw\MPU6050_raw.ino
....... 6413 2014-11-30 13:40 MPU6050\helper_3dmath.h
....... 126508 2014-11-30 13:40 MPU6050\MPU6050.cpp
....... 42873 2014-11-30 13:40 MPU6050\MPU6050.h
....... 40670 2014-11-30 13:40 MPU6050\MPU6050_6Axis_MotionApps20.h
....... 48258 2014-11-30 13:40 MPU6050\MPU6050_9Axis_MotionApps41.h
目录 0 2014-11-30 13:40 MPU6050\Examples\MPU6050_DMP6\Processing\MPUTeapot
目录 0 2014-11-30 13:40 MPU6050\Examples\MPU6050_DMP6\Processing
目录 0 2014-11-30 13:40 MPU6050\Examples\MPU6050_DMP6
目录 0 2014-11-30 13:40 MPU6050\Examples\MPU6050_raw
目录 0 2014-11-30 13:40 MPU6050\Examples
目录 0 2014-11-30 13:40 MPU6050
----------- --------- ---------- ----- ----
295979 14
- 上一篇:百度翻译API源码
- 下一篇:qml 用item自定义dialog 对话框
相关资源
- arduino温湿度采集头文件.rar
- 04.mpu6050_dmp.zip
- Arduino 步进电机接线方法含有代码
- 四位数码管+DS3231做电子时钟源码.in
- arduino控制57步进电机
- DMP官方手册中文
- 使用Processing+Arduino写的类似雷达扫描
- MPU6050 移植STM32F4程序
- atmega16驱动mpu6050
- arduino上阿里云所需要用到的四个库文
- STM32F1单片机+四元数欧拉角姿态解算
- 基于Arduino的DHT11库文件
- Arduino-DHT11温湿度传感器库文件
- ESP8266(arduino)连接阿里云物联网平台
- STM32F407的MPU6050三轴DMP度角度源码
- TCS3200颜色传感器Arduino优化代码快速识
- avrdude-GUI 1.0.5
- arduino程序,用两个红外线传感器来判
- PID巡线,arduino
- ArduinoUSBKeyboard库文件
- arduino DS3231库
- Arduino串口转发源代码
- 修改dmp文件头软件。
- arduino+rc522读写卡
- arduino_code.rar
- arduino和ds1302的基于lcd12864闹钟,按键
- Arduino-TMC2130Stepper.zip
- Arduino-smartcar_shield.zip
- 基于arduino的温度检测和显示
- TFmini_Plus I²C版在Arduino上的例程及参考
评论
共有 条评论