inav icon indicating copy to clipboard operation
inav copied to clipboard

Internal baro and magnetometer does not work together

Open butcher51111 opened this issue 2 years ago • 18 comments

If GPS sca scl pad is connected to fc the baro stops work, if sca scl pad is free, baro working again.

I tested it on two different FC: Kakuta H7 , Foxeer f722 V4, both setup working well with betaflight.

Inav version is 7.0.0

butcher51111 avatar Mar 09 '24 18:03 butcher51111

There is something on the GPS (most likely the magnetometer) with the same address as the baro. You will either need to use a different I2C bus if available. Ot try a different GPS module.

MrD-RC avatar Mar 09 '24 18:03 MrD-RC

There is something on the GPS (most likely the magnetometer) with the same address as the baro. You will either need to use a different I2C bus if available. Ot try a different GPS module.

Then how is it working flawlessly on BF? I was thinking on this but I couldn't find any cli command modify the i2c bus indexes (?) I don't know the correct term for these.

butcher51111 avatar Mar 09 '24 18:03 butcher51111

Which magnetometer (compass) / GPS unit are you using?

sensei-hacker avatar Mar 09 '24 19:03 sensei-hacker

Which magnetometer (compass) / GPS unit are you using?

Ahh sorry, I forgot that: GEP-M10-DQ

butcher51111 avatar Mar 09 '24 20:03 butcher51111

That's what I figured. That's the one that has it's own extra barometer. I suppose for use with the JB FC, which is missing a baro.

So you have two baros hooked up. INAV asks "hey barometer, what's the pressure?" And the baro answers "oneonehundredtthounhundredandonethouonethoudsand ..." because there are two baros talking at once.

sensei-hacker avatar Mar 09 '24 23:03 sensei-hacker

That's what I figured. That's the one that has it's own extra barometer. I suppose for use with the JB FC, which is missing a baro.

So you have two baros hooked up. INAV asks "hey barometer, what's the pressure?" And the baro answers "oneonehundredtthounhundredandonethouonethoudsand ..." because there are two baros talking at once.

Ohh shoot, I didn't notice that 🤦‍♂️. Nevertheless, for noobs like me it's really hard to figure out, somehow it would be nice to disable one or other since it's working with BF somehow. Anyway, thx for the help!

butcher51111 avatar Mar 10 '24 08:03 butcher51111

So which brao model is integrated on your flight control? Is it also a DPS310?

YI-BOYANG avatar Mar 11 '24 15:03 YI-BOYANG

So which brao model is integrated on your flight control? Is it also a DPS310?

Based on the description of kakute h7 has the BMP280, I couldn't find any info about the foxeer fc, but both behave the same way.

butcher51 avatar Mar 11 '24 15:03 butcher51

it would be nice to disable one

Got a tiny soldering tip or hot air? And some tweezers? :). You could take the baro off that GPS board pretty easily.

INAV can't disable BMP280, because that's all it could do - ignore the BMP280. Two of the same sensor attached to the same bus are indistinguishable. Betaflight may have just ignored the baro, or gotten lucky, or whatever. BF doesn't care as much about getting an accurate baro reading and may be fine with a jumbled reading.

sensei-hacker avatar Mar 11 '24 15:03 sensei-hacker

image If you really need to use the GEP-M10-DQ, but want the barometer to work properly, then you can remove the red circle of this resistor, when removed it will turn off the DPS310 on the GPS, so that it will not affect the BMP280 on the flight control. When you need to use the DPS310 again, you only need to short-wire this position with solder.

YI-BOYANG avatar Mar 11 '24 15:03 YI-BOYANG

I'll try it out, thank you very much! 🙏

butcher51 avatar Mar 12 '24 08:03 butcher51

For anyone in the future finding this, I contacted geprc, and they gave me this information about removing a different transistor. I can confirm that for GEP M10 DQ, removing the transistor in my images worked.

My overall issue was that the FC had its own baro which will stop working when the GPS is plugged. The solution (1) below solved it.

image image image image

The actual docs they shared with me. GPS集成的磁力计和气压计问题解决方案.docx

Happy Flying!

CatalinOAlexandru avatar Oct 14 '24 22:10 CatalinOAlexandru

I'm experiencing an issue with INAV 7.1.2. The Mamba F722 MK1 flight controller does not have a barometer on the board, and this should not conflict with the barometer on the Geprc M10DQ, but the barometer icon is still showing red. The MAG and GPS are working well. I'm looking for a way to recompile INAV; can you help me. Thanks

nervetnova avatar Oct 30 '24 09:10 nervetnova

I'm experiencing an issue with INAV 7.1.2. The Mamba F722 MK1 flight controller does not have a barometer on the board, and this should not conflict with the barometer on the Geprc M10DQ, but the barometer icon is still showing red. The MAG and GPS are working well. I'm looking for a way to recompile INAV; can you help me. Thanks

What is The target name of The Mamba F722 MK1 flight controller? I might be able to check.

YI-BOYANG avatar Oct 30 '24 09:10 YI-BOYANG

I'm experiencing an issue with INAV 7.1.2. The Mamba F722 MK1 flight controller does not have a barometer on the board, and this should not conflict with the barometer on the Geprc M10DQ, but the barometer icon is still showing red. The MAG and GPS are working well. I'm looking for a way to recompile INAV; can you help me. Thanks

I found that the target name of Mamba F722 MK1 is MAMBAF722_I2C. I checked its definition and found that DPS310 is missing. Now I have added DPS310 and recompiled the firmware, please burn this firmware and then check whether DPS310 works properly. inav_7.1.2_MAMBAF722_I2C(DPS310).zip

YI-BOYANG avatar Oct 30 '24 10:10 YI-BOYANG

Thanks YI-BOYANG it worked. Sensor status: GYRO=OK, ACC=OK, MAG=OK, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=OK

nervetnova avatar Oct 30 '24 10:10 nervetnova

#10442

YI-BOYANG avatar Oct 31 '24 02:10 YI-BOYANG

I'm experiencing an issue with INAV 7.1.2. The Mamba F722 MK1 flight controller does not have a barometer on the board, and this should not conflict with the barometer on the Geprc M10DQ, but the barometer icon is still showing red. The MAG and GPS are working well. I'm looking for a way to recompile INAV; can you help me. Thanks

I found that the target name of Mamba F722 MK1 is MAMBAF722_I2C. I checked its definition and found that DPS310 is missing. Now I have added DPS310 and recompiled the firmware, please burn this firmware and then check whether DPS310 works properly. inav_7.1.2_MAMBAF722_I2C(DPS310).zip

Can you support it on Inav8?. thanks again.

nervetnova avatar Dec 03 '24 07:12 nervetnova