aggiungo una motivazione alla mia perplessità riguardo l'indirizzo...
nel file def.h ho trovato queste definizioni:
Come vedete non c'è nessuna definizione circa l'indirizzo all'interno del preset per ALLINONE, mentre l'indirizzo è definito ad esempio nel preset per QUADRINO...
invece nel file Sensors trovo questo:
immagino di dover commentare la riga con 0x80 e di decommentare la riga 0x82, ma il file def.h va lasciato così com'è? è una svista di alexinparis?
nel file def.h ho trovato queste definizioni:
codice:
#if defined(QUADRINO) //9DOF + baro #if !defined(ITG3200) #define ITG3200 #endif #if !defined(BMA180) #define BMA180 #endif #if !defined(BMP085) #define BMP085 #endif #if !defined(HMC5883) #define HMC5883 #endif #define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = X; accADC[PITCH] = Y; accADC[YAW] = Z;} #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = X; gyroADC[PITCH] = Y; gyroADC[YAW] = Z;} #define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = -Y; magADC[PITCH] = X; magADC[YAW] = Z;} #define BMA180_ADDRESS 0x80 #define ITG3200_ADDRESS 0XD0 #endif #if defined(ALLINONE) //9DOF + baro #if !defined(ITG3200) #define ITG3200 #endif #if !defined(BMA180) #define BMA180 #endif #if !defined(BMP085) #define BMP085 #endif #if !defined(HMC5883) #define HMC5883 #endif #define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = X; accADC[PITCH] = Y; accADC[YAW] = Z;} #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = X; gyroADC[PITCH] = Y; gyroADC[YAW] = Z;} #define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = -Y; magADC[PITCH] = X; magADC[YAW] = Z;} #endif
invece nel file Sensors trovo questo:
codice:
#if !defined(BMA180_ADDRESS) #define BMA180_ADDRESS 0x80 //#define BMA180_ADDRESS 0x82 #endif
Commenta