high compass offset values

654 views
Skip to first unread message

Menno Hochstenbach

unread,
May 6, 2014, 2:13:01 PM5/6/14
to drones-...@googlegroups.com
Hi,

When I try to calibrate my compass (internal only on Pixhawk) I get extreme values as offsets (e.g. 22313223, ...). This is with my custom code based on ArduCopter v3.1.2 (https://github.com/menno-h/ardupilot). 
I had this problem with the older mission planner 1.2.97 or something... but in the new mission planner 1.3.1 I even don't succeed in calibrating. It appears to register samples in one plane only (i.e. rotation about z-axis) and not when I rotate around the y, or x axis.... 

When I upload the latest ArduCopter (v.3.1.3) I have no problem with the calibration. My solution so far is ofcourse to calibrate with the v3.1.3 firmware flashed, then write those values down and flash my custom code, then fill in these parameters....

Anyone has an idea of what might be causing this or wants to look at my code if necessary? 

Regards

Menno

Randy Mackay

unread,
May 6, 2014, 9:37:31 PM5/6/14
to drones-...@googlegroups.com

Menno,

 

     Really not sure.  The only thing that I can think of that we fixed the length of the compass vector on the pixhawk.  It was too small previously because we were applying it twice.  Hard to imagine how that change could affect the compass calibration though.

 

     All the compass calibration code is done in the mission planner though so I would start by checking the mission planner’s status screen and make sure that the mag x,y and z values are being send via mavlink.

 

-Randy

--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages