Page 1 of 1

Connecting GY-63 (MS5611Baro) to HK MW Pro

Posted: Tue Feb 11, 2014 5:28 am
by doehme
Being dissatisfied with the standard BM085 that comes with the FC I have, I bought a MS5611 (http://www.ebay.com/itm/MS5611-high-res ... 0826176978) for hopefully better alt hold.

In Config.h I've selected that independent sensor but on compiling the sketch I get the error...........

Sensors.cpp: In function 'void Baro_init()':
Sensors.cpp:658: error: redefinition of 'void Baro_init()'
Sensors.cpp:518: error: 'void Baro_init()' previously defined here
Sensors.cpp: In function 'uint8_t Baro_update()':
Sensors.cpp:729: error: redefinition of 'uint8_t Baro_update()'
Sensors.cpp:588: error: 'uint8_t Baro_update()' previously defined here

Not being a code guru, I haven't got a clue what this means and how to fix it.

Any help appreciated.

Re: Connecting GY65 (MS5611Baro) to HK MW Pro

Posted: Tue Feb 11, 2014 7:11 am
by QuadBow
Hi doehme,

That means that you have declared two baros in parallel. But you have to select just one baro in order to use it.
Most problable, you have a 10DOF declared in config.h by uncommenting e.g. #define GY_80 which declares automatically #define BMP085.
Thus, you have to comment out this line #define BMP085 in defs.h.

Edit: typo

Re: Connecting GY-63 (MS5611Baro) to HK MW Pro

Posted: Tue Feb 11, 2014 9:06 am
by doehme
Thanks for that. You pointed me in the right direction I reckon. Following is the board definition as edited in def.h. I added the line " #define MS561101BA" as well. Thought it might need it. Compiles ok now.

#if defined(FFIMUv2)
#define ITG3200
#define BMA180
#define MS561101BA
//#define BMP085
#define HMC5883
#define ACC_ORIENTATION(X, Y, Z) {imu.accADC[ROLL] = -X; imu.accADC[PITCH] = -Y; imu.accADC[YAW] = Z;}
#define GYRO_ORIENTATION(X, Y, Z) {imu.gyroADC[ROLL] = Y; imu.gyroADC[PITCH] = -X; imu.gyroADC[YAW] = -Z;}
#define MAG_ORIENTATION(X, Y, Z) {imu.magADC[ROLL] = Y; imu.magADC[PITCH] = -X; imu.magADC[YAW] = -Z;}
#endif

ALSO............ Have a look at the following. The connections I've used are

VCC to the FC boards 3v supply
GND obvious
SCL to the FC's SDA
SDA to the FC's SCL

Is this correct???

Re: Connecting GY-63 (MS5611Baro) to HK MW Pro

Posted: Tue Feb 11, 2014 6:42 pm
by QuadBow
doehme wrote:Is this correct???


Principially yes. The connection of the cables is right.
The only think that should be observed is the power supply via 3,3V or 5V.
The modul itself is capable for both voltages.
However, issues might occur when several i2c-devices with different supply voltages are connected to the same i2c-bus.
Thus, take care to use the same supply voltage for the MS5611 Baro as for the FFIMUv2.