pkourany / mpu6050 Goto Github PK
View Code? Open in Web Editor NEWMPU6050 IMU Library adapted for Spark
License: Other
MPU6050 IMU Library adapted for Spark
License: Other
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
I was very happy to come across your ported code and the examples of its use:
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]
^
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]
^
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]
^
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.