Jump to content
I2Cdevlib Forums

Search the Community

Showing results for tags 'library'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • I2Cdevlib Web Tools
    • I2C Protocol Analyzer
    • I2C Device Entry Interface
    • I2C Device Library API
  • I2Cdev Platform Discussion
    • Arduino (ATmega)
    • Arduino Due (ARM Cortex M3)
    • MSP430
    • Other Platforms
  • I2C Device Discussion
    • AD7746 capacitance-to-digital converter (Analog Devices)
    • ADS1115 16-bit A/D converter (Texas Instruments)
    • ADXL345 3-axis accelerometer (Analog Devices)
    • AK8975 3-axis magnetometer (AKM Semiconductor)
    • BMA150 3-axis accelerometer (Bosch Sensortec)
    • BMP085 pressure sensor (Bosch Sensortec)
    • DS1307 real-time clock (Maxim)
    • HMC5843 3-axis magnetometer (Honeywell)
    • HMC5883L 3-axis magnetometer (Honeywell)
    • iAQ-2000 indoor air quality sensor (AppliedSensor)
    • IQS156 ProxSense capacitive touch sensor (Azoteq)
    • ITG-3200 3-axis gyroscope (InvenSense)
    • L3G4200D 3-axis accelerometer (STMicroelectronics)
    • MPL3115A2 Xtrinsic Smart Pressure Sensor (Freescale)
    • MPR121 12-bit capacitive touch sensor (Freescale)
    • MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
    • MPU-9150 9-axis accelerometer/gyroscope/magnetometer (InvenSense)
    • PanelPilot multi-screen digital meter (Lascar Electronics)
    • SSD1308 128x64 OLED/PLED driver (Solomon Systech)
    • TCA6424A 24-bit I/O expander (Texas Instruments)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 3 results

  1. i imported i2cdev.h and mpu6050.h library. But it doesnt work. Help me please. Error code; MPU6050.cpp:1997:6: error: prototype for 'bool MPU6050::getMotionStatus()' does not match any in class 'MPU6050' bool MPU6050::getMotionStatus() { ^ In file included from MPU6050.cpp:37:0: C:\Users\ziya.ozcelik\Documents\Arduino\libraries\MPU6050/MPU6050.h:611:17: error: candidate is: uint8_t MPU6050::getMotionStatus() uint8_t getMotionStatus();
  2. Hello Forum User, First off, thank you for taking the time to read this. Second, I require some assistance in the rewriting of the InvenSence DMP lib for the TI microcontroller for use with the Arduino Uno and MPU6050. I have managed to remove most of the syntax errors that occured when switching from .c to .cpp, and removed the TI microcontroller specific code, but I am having problems with utilizing the Wire.h twi libraries for the I2C communication (specificly writing a function to call the twi libs when the i2c_write or i2c_read functions are called.) Ideally, it would use the included Wire.h library or the i2cdev library for the i2c communication. The main reason for this rewrite is to provide the ability of the users to call all of the listed functions of the DMP. In my case, this is primarally for the Pedometer functions which are not included in other libraries, but it can be used for the other functions as well. Below is a link to the dropbox file with the original library and the modified library. https://www.dropbox.com/s/4umn96yhh5hb9gu/eMPL_Rewrite.zip?dl=0 Thank you very much for your assistance in the matter. -Amatoxin-
  3. Hello, I started to use MPU6050 library about a week ago and it was a delicious thing, thanks for that. Since I want to use it in a quadcopter, sensor readings is not all the work, so I created a library and do the sensor stuff under that library for simplicity of the main program. That's when I encountered with multiple definitions problem. In my library, I included 6 axis motion apps library and try to do initializing and reading. The error output is below. I use Visual Micro for Arduino programming but Arduino IDE gives the same error. I couldn't find multiple definitions, so any help would be great. Thanks in advance. Compiling 'QuadroCopter_v0_92' for 'Arduino Mega 2560 or Mega ADK' MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetAccel(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:577: first defined here ld.exe:Disabling relaxation: it will not work with multiple definitions MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetAccel(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:585: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetAccel(VectorInt16*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(VectorInt16*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:593: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetQuaternion(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:601: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetQuaternion(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:610: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetQuaternion(Quaternion*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(Quaternion*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:619: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetGyro(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:634: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetGyro(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:642: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:652: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetGravity(VectorFloat*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGravity(VectorFloat*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:672: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpProcessFIFOPacket(unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpProcessFIFOPacket(unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:711: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetFIFOPacketSize()' MPU6050_6Axis_MotionApps20.cpp:dmpGetFIFOPacketSize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:737: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' MPU6050_6Axis_MotionApps20.cpp:dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:712: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:689: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetEuler(float*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetEuler(float*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:683: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:660: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpPacketAvailable()' MPU6050_6Axis_MotionApps20.cpp:dmpPacketAvailable()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:550: first defined here MPU6050_6Axis_MotionApps20.cpp.o:In function `MPU6050::dmpInitialize()' MPU6050_6Axis_MotionApps20.cpp:dmpInitialize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:325: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetAccel(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:577: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetAccel(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:585: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetAccel(VectorInt16*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetAccel(VectorInt16*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:593: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetQuaternion(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:601: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetQuaternion(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:610: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetQuaternion(Quaternion*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetQuaternion(Quaternion*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:619: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetGyro(long*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(long*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:634: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetGyro(int*, unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGyro(int*, unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:642: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:652: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetGravity(VectorFloat*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetGravity(VectorFloat*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:672: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpProcessFIFOPacket(unsigned char const*)' MPU6050_6Axis_MotionApps20.cpp:dmpProcessFIFOPacket(unsigned char const*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:711: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetFIFOPacketSize()' MPU6050_6Axis_MotionApps20.cpp:dmpGetFIFOPacketSize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:737: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' MPU6050_6Axis_MotionApps20.cpp:dmpReadAndProcessFIFOPacket(unsigned char, unsigned char*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:712: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:689: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetEuler(float*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetEuler(float*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:683: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' MPU6050_6Axis_MotionApps20.cpp:dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:660: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpPacketAvailable()' MPU6050_6Axis_MotionApps20.cpp:dmpPacketAvailable()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:550: first defined here QuadroCopter_v0_92.cpp.o:In function `MPU6050::dmpInitialize()' MPU6050_6Axis_MotionApps20.cpp:dmpInitialize()' BBSensors.cpp.o:\MPU6050_6Axis_MotionApps20.cpp:325: first defined here Error creating .elf
×
×
  • Create New...