Hallo, I have a Sparkfun Magnetometer connectet to my Arducopter Mega.
If I upload the firmware via arduino it works perfekt, but if I upload it via MP, it do not autodetect the magenetometer.
I always have on X Y Z = 0.
I have a converter from 5V to 3,3V for the mag.
I have this mag:
http://www.watterott.com/de/Kompass-Modul-HMC5843
What could I do to get it working with MP, so I dont have to use arduino?
thx
druckgott
Replies
Are you sure that your compass works properly, your signal levels are strong/weak enough. Are you using any level shifters. As SparkFUN magnetometers needs level shifters to work properly.
SFE magnetometer can only work with 3.3 voltage signals, APM signals are 5v.
Here are some logs, now it works because simple mode works perfekt, but in the MP don´t show the right.
At the End of the flight, the copter goes very hard to the left siede and crashed in Loiter mode, but I don´t know why
19-08-11 03-09 1.log