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
Tags:
Permalink Reply by Al Ros on May 11, 2011 at 9:34pm 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
Permalink Reply by Russell B. Sutton on May 11, 2011 at 9:56pm
Permalink Reply by Al Ros on May 12, 2011 at 12:25pm
Permalink Reply by Vincent Mees on May 11, 2011 at 10:58pm
Permalink Reply by Al Ros on May 12, 2011 at 10:50am
Permalink Reply by Vincent Mees on May 12, 2011 at 11:39am 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??
Permalink Reply by MB1380 on May 12, 2011 at 2:07pm
Permalink Reply by Vincent Mees on May 12, 2011 at 2:25pm Ok but if the code supports the sparkfun it should work.
Mine is soldered directly to the IMU with the convertor in between.
Permalink Reply by Al Ros on May 12, 2011 at 9:27pm 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
Permalink Reply by Vincent Mees on May 17, 2011 at 2:33am
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.180 members
24 members
1283 members
676 members
183 members
© 2013 Created by Chris Anderson.
Powered by
