Yaw and loiter issues 2.0.28 (Video)

 

My copter is the default Arducopter frame and setup (motors, escs, etc, from DIY Store!). I had my initial flights over the last few days and today i focused mainly on trying to get Alt-Hold and Loiter working.

 

I have the "MB1260 XL-MaxSonar-EZL0 High Performance Ultrasonic Range Finder" installed on the quad. There is nothing in its way and on the bench i see a height of 20cm to 100+ or so cm when pointing at the ceiling.

 

Running the latest SVN of Arducopter2, 2.0.28

 

My initial test flight today were not recorded however they went well. The copter is very very stable with the exception that YAW takes full rudder to yaw very slowly around. However, with sonar enabled both alt-hold and loiter end up with the quad going skywords and not stopping (its not shooting like a rocket like others have expressed but it never did seem to work. I aborted every attempt before it got to far up).

 

The video shows the results of my later flight tests. The first two clips are of a crazy yaw issue and the final piece is loiter mode hunting.

 

As i said my yaw is very slow and spongy, it takes full rudder to yaw around and it hunts (goes back and forth) at the end of a yaw (i even see some hunting during slow forward flight and hovering). The default P is like 0.35 or 0.4, i cant recall. I adjusted P to 0.8 and D proportionally. The end result is shown in the first two segments of the video. After a short bit of forward flight the copter will let go of the rudder and yaw around CW, anywhere from 90 to 180 degrees. I repeated it several times.

 

Future flights I adjusted the P to 0.6 and the no longer happens but it still takes allot of rudder to command a yaw change. My questin is, what other parameters can i change to get more yaw out of this thing.

 

Finally loiter. With sonar disabled loiter somewhat works. As the video shows it hunts around the loiter point until i take over as the circle its flying gets bigger with each pass. If i am not mistaken the lat/lon loiter D is what i increase to help this?

 

Thanks for reading/watching.


http://www.vimeo.com/25634012

 

 

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    Also, Switch to 

    #define YAW_OPTION 0  // 0 = hybrid rate approach, 1 = offset Yaw approach, 2 = simple hybrid

    You'll be much happier. The 180° swing is the Yaw error. The copter wants to hold 0°. It swings around past 180 and decides to go the rest of the way since it's the fastest way back to 0°.

    You want to increase your D term for loiter. It will slow you down when traversing to the Loiter target.

     

     

     

  • Developer

    Would you have a log of the Alt hold rising? 

    If you can't read the logs for some reason, dump 0 will dump the entire log contents.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: Starting on a rough guess of the track centerline as an SVG. Then I use svgpathtools to generate equally-spaced points w/ direct…
21 hours ago
DIY Robocars via Twitter
RT @a1k0n: This rules. My existing code isn't going to work *at all* -- the track planner and precomputed map are out. However, it forces m…
21 hours ago
DIY Robocars via Twitter
RT @chr1sa: Our new @DIYRobocars track at @circuitlaunch is fiendishly hard & crashtastic fun. Combines hairpin curves with an intersection…
23 hours ago
DIY Robocars via Twitter
The May @donkey_car newsletter is out, with news about release 4.2, next events and more https://donkeycar.substack.com/p/may-newsletter
yesterday
DIY Robocars via Twitter
Friday
DIY Robocars via Twitter
Friday
DIY Robocars via Twitter
RT @breadcentric: Bingo card for AWS DeepRacer Finale, starting in 10 minutes on https://www.twitch.tv/aws ! #AWSDeepRacer #DeepRacer #Machin…
Friday
DIY Robocars via Twitter
RT @NVIDIAEmbedded: It's #NanoFriday - the RB-0 uses the same suspension concept as #NASA's newer differential-bar rovers. This educational…
Friday
DIY Robocars via Twitter
RT @chr1sa: On May 22, we're returning to in-person AI @DIYRobocar racing at @circuitlaunch. The Amazon @awscloud DeepRacer team will be pr…
Wednesday
DIY Robocars via Twitter
RT @breadcentric: On my CV: Hobbies: Training bananas to race on tracks #AWSDeepRacer #DeepRacer https://t.co/MKe14hNyux
Wednesday
DIY Robocars via Twitter
RT @breadcentric: See how the April AWS DeepRacer races have ended and a couple bits of news: https://blog.deepracing.io/2021/05/09/aws-deepracer-league-2021-update-11-end-of-april-special/ #AWSDeepRacer #Machin…
May 10
DIY Robocars via Twitter
RT @sunilmallya: Representation Learning +Instance Transfer to learn new reward functions along with advantage based filtering of new exper…
May 9
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
More…