Jump to content
I2Cdevlib Forums

HinnaNayab

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Hi Everyone! I am stuck with the task of visualizing 3D orientation estimation of an object in Matlab. The data come from a sensor via serial communication to Matlab. So while the data is updating in real time, I want it to be graphically represented in 3D and update accordingly in the figure too. I am stuck with the task of visualizing 3D orientation estimation of an object in Matlab. The data comes from an IMU via serial communication to Matlab. So while thie data is updating in real time, I want it to be graphically represented in 3D and update accordingly in the figure too. I attempted to do it several times but since I am not an expert in Matlab, I couldn't achieve exactly what I wanted to. (One of the problems was the delay in updating the figure. I used q.plot (Quaternions) Many Thanks
  2. The DLPF of mpu6050 is not in "default on" mode while dealing with the raw values from the sensor. You have to turn it on in order to make sense of the raw values. If you look carefully at the Raw example code, mpu6050.h is added as a header file. In that file , you will see this section is present: void MPU6050::setDLPFMode(uint8_t mode) { I2Cdev::writeBits(devAddr, MPU6050_RA_CONFIG, MPU6050_CFG_DLPF_CFG_BIT, MPU6050_CFG_DLPF_CFG_LENGTH, mode); } So in your Raw example code you will turn on the dlpf by using this command just after the initialization: accelgyro.setDLPFMode(MPU6050_DLPF_BW_42);
×