Magneto meter Issue cause of yaw problems ?

 

Hi Guys

 

Have any of you seen this happen

 

after loading new code and reseting APM . setting declination my APM board magneto meter seems to be drifting .

 

my board is on the table pointing north and in the APM planner you can see it does a full 360 drift while still pointing north . does doesnt change even if  make the declination from - to + any body else getting this ? this is reconfirmed with my code always yawing badley .

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

Join diydrones

Email me when people reply –

Replies

  • Hi there,

    i'm having the same problem as Johann with my APM1 + mag.

    Since i updated to version 2.1.* the copter started to yaw for quite a while after takeoff, but recovered after ~30 seconds. In loiter mode is also doing circles. Moving to version 2.2 didn't help and also going back to 2.0.45 (which i used before) didn't.

    My declination setting is correct (+1,26)

    I already resoldered my magnetomter to the board.

    When i read the heading of the magnetometer in flight planner i get wrong readings compared to my phones compass. When i turn my apm by 90 degress it only reports a change in heading of about 90 degrees but then drifts back by -20 degrees, while the apm is at rest. Then if i rotate it 90 deg further it reports a change of 170 and then also drifts by +20  (almost back to normal, which would be 180). Interesting thing is, that it seems to get north always right.

    I already tried moving the copter around in circles after startup, but that didn't change anything.

    So i checked the magnetic offsets in the CLI (setup->compass) and they were all 0. Then after some waving around of the copter they changed to some values. Then i did a reset and waved the apm around and after quite a while i got new mag offset values... but these were different than before (heading still being wrong).

    So i tried the AP_compass test in Arduino.

    Still wrong offsets like in the FlightPlanner.

    While running the test i waved the apm around until the offset values of the output didn't change any more. Then i put these

    offset values into the code of the AP_compass test where the mag is beeing initialized and suddenly the compass readings are correct.

    For me it seems, that the Arducopter Code forgot how the calibrate the mag offsets.

    But strange thing is, that going back to the previous version doesn't change anything.

    Is there a possibility to enter the mag offsets into arducopter code manually?

    Pat.

  • think got the same problem...

    does it take off ?

  • Stupid question, but is your magnetometer activated in the setup and working?

    Apparently, just because its working in the CLI, doesnt mean that DCM is using it to correct yaw drift.

    I remember back in the day (when I got my first apm from you)

    I got this exact issue, but it was because I didnt have a magnetometer. Chris said its caused by gyro drift...

    :)

  • I had a similiar issue recently:  http://www.diydrones.com/forum/topics/forever-yawing.

    For me if you click on the Status tab, the yaw value was constantly counting down while the compass counted down as well.  In your video we cannot tell if the yaw value is changing.  I did fix my issue by going into CLI, 'setup, 'erase', 'reset' and then reloading the firmware.  Now when sitting on the table the yaw value and compass direction no longer count down... and best of all it flies normal again.

  • What magnetic declination are you using?

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
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
More…