ted333;1963574 à dit:Idem erreur sur le site pour cette carte www.drotek.fr - IMU 10DOF - MPU6050 gyro & accelerometre + HMC5883 magneto + MS5611 altimetre
Ajouter dans le fichier config.h
Ajouter dans le fichier def.hCode:#define DROTEK_IMU10DOF // IMU 10DOF - MPU6050 gyro & accelerometer + HMC5883 magnetometer + MS5611 altimeter
Et Mr Drotek il faut mettre à jour le siteCode:#if defined(DROTEK_IMU10DOF) #define MPU6050 #define HMC5883 #define MS561101BA #define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = -X; accADC[PITCH] = -Y; accADC[YAW] = Z;} #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;} #define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = -Y; magADC[PITCH] = X; magADC[YAW] = -Z;} #define MPU6050_ADDRESS 0XD2 #define MPU6050_I2C_AUX_MASTER // MAG connected to the AUX I2C bus of MPU6050 #undef INTERNAL_I2C_PULLUPS #endif
Ted www.rcnet.com
C'est fait Ted!!