Giter Site home page Giter Site logo

mpu6050's Introduction

MPU6050Spark
============

MPU6050 library for Spark adapted from Sparkfun Arudino library by Paul Kourany, April 2014


Example MPU6050_raw.cpp is dependent on:

	MPU6050.h
	MPU6050.cpp
	I2Cdev.cpp
	I2Cdev.h
	
Example MPU6050_DMP6.cpp is dependent on:

	MPU6050.h
	MPU6050.cpp
	I2Cdev.cpp
	I2Cdev.h
	helper_3dmath.h
	MPU6050_6Axis_MotionApps20.h 

mpu6050's People

Contributors

pkourany avatar

Stargazers

 avatar  avatar Daniel avatar

Watchers

 avatar

mpu6050's Issues

MPU6050_DMP6 does not currently compile

I was very happy to come across your ported code and the examples of its use:

http://vimeo.com/88732224

But as of now, the code will not compile (Spark Firmware v0.3.4). Here's the error report:

In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from I2Cdev.h:49,
from I2Cdev.cpp:46:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]

warning "Defaulting to Release Build"

^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from I2Cdev.h:49,
from MPU6050.h:40,
from MPU6050.cpp:37:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]

warning "Defaulting to Release Build"

^
MPU6050.cpp: In member function 'bool MPU6050::writeMemoryBlock(const uint8_t_, uint16_t, uint8_t, uint8_t, bool, bool)':
MPU6050.cpp:2988:88: warning: 'progBuffer' may be used uninitialized in this function [-Wmaybe-uninitialized]
for (j = 0; j < chunkSize; j++) progBuffer[j] = pgm_read_byte(data + i + j);
^
MPU6050.cpp: In member function 'bool MPU6050::writeDMPConfigurationSet(const uint8_t_, uint16_t, bool)':
MPU6050.cpp:3076:101: warning: 'progBuffer' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (sizeof(progBuffer) < length) progBuffer = (uint8_t *)realloc(progBuffer, length);
^
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from mpu_6050_dmp6.cpp:2:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]

warning "Defaulting to Release Build"

^
mpu_6050_dmp6.cpp:6:1: error: expected unqualified-id before 'else'
else if (mpuIntStatus & 0x02);
^
In file included from mpu_6050_dmp6.cpp:47:0:
MPU6050_6Axis_MotionApps20.h: In member function 'uint8_t MPU6050::dmpReadAndProcessFIFOPacket(uint8_t, uint8_t_)':
MPU6050_6Axis_MotionApps20.h:722:41: warning: value computed is not used [-Wunused-value]
if (processed != 0) *processed++;
^
make: *_* [mpu_6050_dmp6.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.