Hi,

happy New Year , one and all :) !

now upgraded from 3DR APM2.5 to a PixHawk FC.

Have 3D (GPS) lock.

The compass calibration is the same as with the ol'good APM, the difference is I see two coordinates rotating and taking the points.

The values obtained are good and in the range written in the WiKi.

Now I'm unsure how to assign the external compass, so the PixHawk  uses the external compass in the GPS module?

1-  After the calibration success (more than 2000pts) when I move the PixHawk FC, the compass in Mission Planner moves an shows the orientation.

But if I move only the GPS/compass module, (holding the FC still) nothing happens - no movement in MP.

The GPS/compass module config' is compass 1, the internal compass is nr. 2.

I'm wondering what is wrong.

2-  Another strange effect is, that with nothing connected to the PixHawk, only linked to the PC via USB, I get a compass variance error (in MP) from the internal FC compass.

I hope somebody could enlighten me what I have to do to correct this compass problem. Thank you :)

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

Join diydrones

Email me when people reply –

Replies

  • Hi Bernardo

    Your int compass is probably damaged

    I exactly had the same issue with 2 differents Pixhawk whom experiment by misfortune few crash. Even by disabling the Internal, still had Error Pos Vert Variance and Error Compass Variance (Full Red on EKF module..

    Then i tried with a brand new one but with the same wires and GPS module

    Everythings was Ok then

    Cheers

  • FIXED IT.

    It appears the compass is sensitive to small pitch and roll offsets as well. Mine was slightly pitch down. I made sure the compass was completely spirit-level flat, as is the pixhawk, and bingo - no more EKF errors. Barely hits the orange now.

    • In my experience the compass is very sensitive to small errors in orientation. How sensitive also depends on where you are are in the world. So for instance in my northern hemisphere location I had to orient the compass very precisely vertically in order to avoid nav errors. I also stopped using autodec as well as I found that this often got set wrong and might mean that the value used when flying was very different to that used when calibrating. Manual setting and precise orientation removed most compass issues I was having.

      • Yes, I observed this too.

        Ok, so it is indicated to fly with autodec disabled in case of a GPS failure :o

        BTW................ is it normal that with the compass (sses) calibrated and showing the correct direction, the EKF for the compass goes orange and red when I pitch and roll the copter ????

        In YAW it is always green.

        • No, not normal - you should be able to get the EKF to stay mainly green.

          If it's not then you have an issue.Note that when this happened to me it was because of issues with my current monitor and compass mot - basically my current monitor would not read 0 on USB power and thus the mag readings were all off for USB power. You should also (obvoiusly) check for interference. On a small quad this can happen very easily (e.g. from the battery).

          • thank you for that input.

            I'll check and search what (interference) causes that EKF.

            • ................more test and re-installs and re-configurations done:

              The on board compass works fine alone.

              Together with the external compass in the GPS module, the EKF still turns red when I tilt the copter in roll and pitch, regardless of the rotation in ° of the external module in relation to the PixHawk and in combination with roll 180° in the config.

              I was told to rollback my firmware to version AC 3.2.1.

              Of course, the EKF disappears........

              Does this make sense? Or will this only hide my external compass problem and put my copter and my flying in to a risk for others and for me??

              • How you fix the gps? any magnetized bolt near? What happens if you disable the int one?, still turn red?

                • The GPS module and the PixHawk are still on a wooden board fixed only with blue tac.

                  There is no metal nor bolts, etc.

                  This way it is easier to move things around and to calibrate.

                  With the internal compass disabled, I also get the red bar indicating compass variance.

                  • The GPS is on a little mast as it would on the copter.

                    I measured the wires, they have continuity from end to end :)

                    The orientation is shown in the pic attached = up is north.(??)

                    But I can't swear it of course.

                    When I move the GPS module, the EKF turns red.

                    No movement in the HUD (compass)

                    What do you think could be the cause ???

                    north on the chip.JPG

                    https://storage.ning.com/topology/rest/1.0/file/get/3702804972?profile=original
This reply was deleted.

Activity

DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…