Wrong direction in MP while rotating

Hi Guys!

i Have a problem with my external compass. It is pointing North quite well but when i'm starting to rotate my quad for example to the East, Mission Planner shows West.

What should i do with these? Can anyone help me?

I would be very grateful:)

Greetings,

Marcin

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I have quite similar problem. I have external compass with GPS, i set the apm up for external compass. When i rotate the compass and the apm it's look like both of them try to send heading data, that's why my heading is kinda mixed and not smooth. I checked on the terminal without compass i get an error and with compass, compass gives the correct data. What do you think the problem is? It's clear that apm uses IMU for heading data.

    • if the magnetometr sensor is on the top, you should select "onboard compass" or manually select ROTATION_NONE.

      also check if sensor is in right direction. to do this, find numbers on it and when you can read this normally, front of it should goes to the left ie if you have "L8832106" you can mark an arrow like: "<---- L8832106"

      hope this helped you :)

      • I have no magnetometr on board. It is externally installed via i2c port. I checked the sensor direction via another compass and marked the direction when both of the compass points the north:) There must be a setting to cancel both readings via IMU and the compass. It's like both of them wants to read the heading.

        • but does your magnetometr "see" the sky? if yes, select onboard compass :) you should see, that below rotation changed to ROTATION_NONE. All settings there with compass change this parameter. If you try external compass, rotation changes to ROTATION_ROLL_180 :) thats all :)

          • I think i am getting somewhere, correct me if i am wrong, so you say, even if i don't have mag.metr on apm and even if i have mag.meter externally on gps, you say i should chose onboard compass and ROTATION_NONE is that right? By the way what do you mean by "see the sky?"

            • See the sky means with its name up :) look at my situation. 

              i've got external compass with GPS like here http://hobbywow.com/desc/others/FPVparts/MY/APM26/LEA_6H_2.jpg so the GPS antenna and magnetometr are on the same side of board. if you look at the APM 2.5 magnetometr is also on the top of the board. So in my situation i have to mark the onboard compass because it isn't flipped. 

              But when you look at the 3dr GPS with compass  http://www.sgdrone.com/content/images/thumbs/0000203_3dr-gps-u-blox... you can see that magnetometr is on the opposite side of antenna GPS so it is flipped in a roll direction. thats why there is ROTATION_ROLL_180.

              so conclusion. if you have magnetometr like on APM 2.5 on the upper side of the board, you should mark Onboard compass OR change to ROTATION_NONE because those parameters are equal

              • Now i perfectly understand the situation:) Thanks for clearing it out. I just checked that everything is working perfectly fine now. The gps/compass i have also has the mag. on the upside of the board. 

                For your situation, did you calibrated the compass?

                • so thats good because i was worried about my English :)

                  yes, i calibrated twice, for the first time it didn't work and i was searching another solution, then something told me to do it again and it worked. immediately went outside and tryied this config. works perfect now even without compassmot calibration :) before i had MultiWii but APM is rock solid :)

                  So if you have Magnetometr on the top, go with ROTATION_NONE and live compass calibration :)

                  • Thanks for helping out:) and i am glad that you solved your case:)

  • is it the official 3DR Compass/GPS or a RC timer version. The 3DR version needs the 180 but the RC Timer version does not need the orientation correction.

This reply was deleted.

Activity