Hi Folks

 

I am really having a problem with my yaw stability and I am hoping someone can point me in the right direction.

1st if compass is diabled in either Arducopter 2.x or ardupirates code. I have excellent yaw control just like on my mikrokopter.

If I enable compass at default PID settings, yaw hold is very sloppy (better at default values for arducopter 2.x) . for example in ardupirates code I have to increase P and D to 7.5 and 3.5 otherwise it keeps rotating past when I let go of the stick. But at these high PID values yaw is not smooth and hunts (not really oscillates) and the hunting affects roll and pitch stability

 

My Yaw gyro must be ok since without compass yaw is great. My compass heading seems ok and is relatively steady. but my issue is now with two different codes.

 

Is this a bad compass, or is this what other folks are seeing as well? if anyone was able to correct sloppy yaw - how did you do it.

 

Roll and pitch sabilization are perfect by the way

Thanks

Al

Views: 732

Reply to This

Replies to This Discussion

Strange if I change my declination, it does point at different angles around north.

 

Also what about so called offset calibration like we did with the old code to account for metal and interference in the frame and for tilt/roll . my offsets remain 0,0,0 and can't seem to get into a mode calibrate these?

 

 

Al

The offsets are figured automaticlynw/ AC2 so  their is no need to calibrate for offsets any more. 
How does this occur and at what point??

Previously. We had to manually rotate and tilt the arducpoter around and the offsets changed to refelect this.
If this is done automatically, is it done during first flights. Should not the offset reading in climes not change from original 0,0,0?

Thanks very much
Al
Did another test without mag enabled and the stays fix.
when changing nose direction with the tx the quad responds very crisp. Rather aggresive. You can hear the motors compensate the overshoot.
But now if I fly forward it suddenly turns without stick input. It turns about 145° and then stays fix again.
And this with the Mag off.
Strange?
Strange. I have had good success with mag off. But as an update, I uploaded trunk version after official beta 2.02 was releases and yaw hold is better with compass. Can anyone confirm 

I've found theorientation of my sparkfun mag

AP_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK ROTATION_YAW_90

So I defined this first in APMconfig but it wouldn't compile.

//#define MAG_ORIENTATION  AP_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK ROTATION_YAW_90

Then I change the code inthe cinfig concercing mag irientation and again it wouldn't compile.

#ifndef MAG_ORIENTATION
# define MAG_ORIENTATION  AP_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK ROTATION_YAW_90
#endif

 

Both with the same fault

 

ArduCopterMega.cpp: In function 'void init_compass()':
system:518: error: expected `)' before 'Matrix3f'

 

What am I doing wrong??

I have a sparkfun and did not edit the code. instead mount it components down pins right. Worked for me!

Ok but if the code supports the sparkfun it should work.

Mine is soldered directly to the IMU with the convertor in between.

and that's the way it works

Hi

 

Looking at the default defines in config.h (not apm_config.h) it looks liket they do not use the "ROTATION_YAW_90" in the define

 

How about just adding with out the leading back slashes

#define MAG_ORIENTATION AP_COMPASS_SPARKFUN_COMPONENTS_UP_PINS_BACK

 

see if that works


Al

Well it compileswithout faults. But can't test until tomorrow.
I'm also having problems with the compass. It worked grate on RC2 but now no chance, i've set dec. and it shows magnetic north but when i roll/pitch it it goes off.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service