Pixhawk: can't calibrate external 3dr compass

Hi, I have problems to calibrate the external 3dr compass with my pixhawk.

Using Mission planner l select Pixhawk/PX4 and try live calibration.

I see for compass 1 and 2 error 99 and never more then 3 samples are collected.

The behavior is very similar to this one

http://diydrones.com/forum/topics/pixhawk-compass-calibration-does-not-work

A little bit more story.

First I bought a pixhawk together with an external 3dr GPS/Compass.

With this compass I could calibrate with no problem and GPS was also working.

But the compass seems to have an issue. When the pixhawk was running a while (e.g. > 10 minutes) the heading began to turn around faster and faster over time.

I calibrated the compass many times but this behavior always came back.

So I send it back and got a replacement.

Here I want to notice that the shipped 6 pin cable for this new GPS/compass for gps was a 6 to 5 pin cable.

I was a  little bit wondering and used instead a 6 to 6 pin cable.

With this new module live calibration isn't working.

I couldn't believe that this new module is not working and bough an additional module (which was shipped also with 6 to 5 pin cable).

Unfortunately this 3rd module is now also not able to be calibrated.

So what going on here???

I tried many things including flashing new firmware to the pixhawk, replace the I2C cable, replace the GPS cable but with no success. (calibrating the pixhawk internal compass works).

I also checked the pixhawk I2C supplied power and measure there around 4,7 V. Is that normal?

Could it have to do with a bad batch of these 3dr modules?

I bought them in Germany and because my both last modules were shipped with this wrong 6 to 5 this could be the case? Or it's me causing the problem? :)

Any hint what I can try to get it to work?

I'm really disappointed!

Cheers

Pat

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

Join diydrones

Email me when people reply –

Replies

  • Have you solved this yet? I have the same problem with my Pixhawk and 3DR GPS/compass module.

    • same problem here

  • 3D Robotics

    I assume you've checked that you're selecting the right compass type in MP (Pixhawk/PX4).  If so, have you checked to see that the GPS/mag is not placed next to something magnetic on your vehicle, such as a magnetic hatch clasp?

    The compass uses the second cable, which is I2C and four wires. You have to connect both that and the the GPS cable (6 wire).  Have you checked your I2C cable and tried a different one?

    We've sold many tens of thousand of these and as far as I know there's never been a problem with the hardware. If you bought it directly from 3DR, you can contact the help desk there at help@3drobotics.com. If you bought it from a third-party, are you sure it's actually a 3DR product and not a clone?

    • Same thing with the PixHawk and GPS of a friend of mine.

      Even with the GPS/compass module plugged in, only the internal compass works. So there is no auto detection of the external compass module.

      Unfortunately I have a 3DR APM 2.5, so we could not try with a swap.

      Question: Does it matter how the compass is wired? Does it make sense swapping the two wires of the compass plug? Just wondering if its perhaps wrong?

    • Chris, yes I used compass type Pixhawk/PX4 with MP and there is and was on my side miles around no magnetic source near by the the compass.

      I also tried different cables and connected always both when trying to calibrate (compass and GPS). The GPS itself is working.

      AFAIK there are only two official 3DR sellers in germany and I assume that they are not selling clones (hopefully).

      I will check again the cables although I did that many times. But I fear that there isn't the problem.

      What I can't believe is that both brand new modules are not working.

      Couldn't it be another cause,e.g.  wrong parameter settings or whatever?

      Meanwhile I had 3 modules and every one with an issue. This is really strange. :(

      • 3D Robotics

        Which version of MP are you using and which version of flight code?  It's best to update the latest of each, if you haven't already. 

        Can you also check the pins in the connector on Pixhawk? One of them might be bent.

        • I'm using V3.2.1 for quad and MP 1.3.30.

          The i2c pins are not bent.

          I just tried again to calibrate and can observe that compass 2 error is changing but still no sample are collected and the frame isn't rotating if I rotate the compass.

          Please see the attachment.

          px_calibrate.jpg

          • 3D Robotics

            Are you connected via wireless or USB?  

            This is a weird one -- never seen it before with our gear. 

            Did you change any parameters? I wonder if somehow the second compass got set to the wrong type.

            Do you have another Pixhawk to try? Just going through the process of elimination. 

            I'd like to send you to customer support, who are trained to solve these issues.  Perhaps if you have an order number from an authorized reseller, they'll be able to accept your help request. 

            • I did the screenshot during connecion with USB. If using the radio it's the same behavior.

              Can't remember if I changed any parameter. I have the problem already a long time.

              This morning I flashed V3.2.1 hoping that all parameters are resetted but not sure if thats the case, (I assume that they are not resetted?).

              Unfortunately I have no other pixhawk for testing.

              I've attached the compass parameter setting, maybe this helps to investigate.

              If not I may have to contact the support.

This reply was deleted.

Activity

DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
RT @f1tenth: Sliding (autonomously) into the weekend like ... 🤖😎 #f1tenth #robots #AutonomousVehicles @OpenRoboticsOrg @NVIDIAEmbedded @Aut…
Apr 25
DIY Robocars via Twitter
RT @chr1sa: One of the problems with autonomous car racing is that watching software drive is not a very exciting spectator sport. To help…
Apr 25
DIY Robocars via Twitter
RT @SmallpixelCar: Replaced AGX Xavier with @NVIDIAEmbedded Jetson Xavier NX. Now both cars look fast and clean https://t.co/jlcoY2EjZf
Apr 25
DIY Robocars via Twitter
RT @chr1sa: Yesterday we had a record number of competitors (36) in our monthly @DIYRobocars virtual autonomous car race. We kept it going…
Apr 25
DIY Robocars via Twitter
Apr 16
DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
Apr 11
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
Apr 11
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Apr 7
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Apr 7
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
@GrantEMoe @circuitlaunch Update: we're doing it on Sunday (4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
RT @chr1sa: Maybe we should have a mini @DIYRobocars race in our lower school's playground https://t.co/xLFeua1R6X
Mar 29
More…