Hi,
Sorry to have given up so long.
Months ago we discussed of an issue I got with a GPS and GY-521 installation : freezing of the MPU-6050 during setup.
I rebuild a new project with a new Arduino mini-pro and one GY-521 alone.
And get ..... the same issue !
First it would be good to know if your mpu-6050 can be detectd on the I2C bus.
One easy way to test it is the folowing:
- in the config_basic, declare that you have a first baro sensor = MS5611 (but do not connect a MS5611)
- in oXs_MS5611, activate the option #define DEBUGI2CMS5611
- in oXs_config_advanced, activate the option #define DEBUG
I expect that in this case, when oXs perform the setup of MS5611, it will run some code to detect all I2C sensors on the bus and it will report the last one that it founded. In your case, it should be a MPU6050 (the only one sensor you have) and it should be at adress 0x68.
MPU6050 works well with MPU6050_DMP6 and MPUTeapot.
This is the result of the test :
openXsensor starting..
milli=0
freeRam=1017
vario setting up..
begin I2C scan
last I2C scan adr: 68
vario is up..
FRSky Output Module: TX Pin=4
Sport protocol= 1
End of general set up
acc -11668 -3478 -11619
.......
As you expect the MPU6050 address is 0x68.
With NO_BARO selected, the I2C scan is not performed :
I2C scan is only performed in the MS5611 part of the code. That is the reason why I asked to activate the MS5611 even if it was not connected.
This test shows that your mpu6050 is working.
You are even getting the acceleration offsets on pc terminal.
It could be that there are some conflicts when debug is activated.
Could you try again with
- FIRST_BARO_SENSOR_USE set on NO_BARO
- #define DISPLAY_ACC_OFFSET set as comment (in config_advanced)
- DEBUG being set as comment (in config_advanced).
Please note that your config files does not seem to request oXs to send any telemetry data.
By default oXs does not send Acc and Gyro data.
If you want to check oXs, you should ask oXs for sending some data.
E.g. if you want to get acc, you should
- activate //#define FILL_TEST_1_2_3_WITH_LINEAR_ACC in config_advanced
- ask oXs to transmit TEST_1_2_3 by activating the 3 folowing lines in config_basic
//#define ACCX_SOURCE TEST_1 // select between TEST_1, TEST_2, TEST_3, GLIDER_RATIO , SECONDS_SINCE_T0 ,AVERAGE_VSPEED_SINCE_TO , VOLT_1, VOLT_2, VOLT_3, VOLT_4, VOLT_5, VOLT_6, PITCH, ROLL , YAW, ADS_VOLT_1, ADS_VOLT_2, ADS_VOLT_3, ADS_VOLT_4
//#define ACCY_SOURCE TEST_2 // select between TEST_1, TEST_2, TEST_3, GLIDER_RATIO , SECONDS_SINCE_T0 ,AVERAGE_VSPEED_SINCE_TO , VOLT_1, VOLT_2, VOLT_3, VOLT_4, VOLT_5, VOLT_6, PITCH, ROLL , YAW, ADS_VOLT_1, ADS_VOLT_2, ADS_VOLT_3, ADS_VOLT_4
//#define ACCZ_SOURCE TEST_3 // select between TEST_1, TEST_2, TEST_3, GLIDER_RATIO , SECONDS_SINCE_T0 ,AVERAGE_VSPEED_SINCE_TO , VOLT_1, VOLT_2, VOLT_3, VOLT_4, VOLT_5, VOLT_6, PITCH, ROLL , YAW, ADS_VOLT_1, ADS_VOLT_2, ADS_VOLT_3, ADS_VOLT_4
I try with :
- FIRST_BARO_SENSOR_USE set on NO_BARO
- #define DISPLAY_ACC_OFFSET set as comment (in config_advanced)
- DEBUG being set as comment (in config_advanced).
but the sensor is not discovered by my Taranis QX7.
By replacing NO_BARO by MS5611, the ACC numbers are displayed on the QX7.
There is a light error in openXsensor line 1013 :
test3.value = linear_acceleration_Z * 981;
letter "Z" might be a lower case "z"