Developer

Arducopter 2.2 beta

I just pushed Arducopter 2.2 to the Mission planner. This version went through extensive testing by a brave group of flyers and with both HIL and SIL testing.

See this link for more:

http://www.diydrones.com/forum/topics/arducopter-2-1-1-alpha

If you run into any problems please let me know here. If you find a reproducible bug, please add it to the issues list.

tuning tips:

If you run into Loiter issues, try adjusting LOITER_P. It's 2.0 right now which may or may not be to aggressive for your copter. Nav is no longer used in Loiter control, which should make tuning easier.

If you run into a circling issue, try lowering LOITER_I to 0 and see if it goes away. If not, check your compass declination. A negative error will produce CCW rotations, a positive error CW.

If you have issues with alt hold, try lowering your THROTTLE_P, it may be too high for higher thrust copters.

If you have wobbles and can't seem to get rid of them, there is a new term called STAB_D, which is a derivative term used to tune out the wobbles. You can increase it until they stop, but just like driving a cadillac, you loose some performance and handling. In the CLI "tune 16" in setup will let you control this in flight, and "tune" in test menu will let you see the value printed out interactively before flight. See the wiki for more detail.

Many testers gave me a thumbs up on the code, so if you have an issues please post the flash log from the copter. The tLog isn't that much help to me for debugging as it doesn't capture the needed values at high enough rates.

(Remember, if you'd rather pull the code from the repository and load it with Arduino, you must use the "relaxpatch" version of Arduino in our downloads section.)

 

Update 2.2b2

I believe I found the simple mode error. It was a bug that was working OK until Tridge fixed it so it was declared properly. Then the bug became active. I made the Simple mode function internal variables static and this should fix it hopefully.

I updated alt hold to not use dampener for now until we get more testing. Some folks saw a latency induced oscillation which was pumped up by the D term.

I added the automatic throttle cruise or hold value as a compile time option for testers. This basically looks at your throttle and climb rate while in stabilize or acro and determines your optimal hover value. This means you can enter any autopilot mode and not have to worry about your throttle position. It should make alt hold more reliable if it works. This is off by default until we get good field tests back.

Update pushed to GIT.

Update 2.2b3

Just some refinements. I added JLN's throttle curve mod for landing. Hopefully that's correctly implemented. 

Made the landing delay from RTL user settable

removed the ADC gyro filter, I was doing a lot of testing and determined it wasn't worth it.

Enabled the auto-throttle control by default. Please test in the sim

Altitude no longer resets when flying in Loiter mode

Pitch and roll dampening is smoother now. try values up to .08 for very dampened flight.

Mavlink can now trigger auto-land

I'll push a hex when I hear some good news from HIL testers.

Update 2.2b4

Flew today and saw the WP speed governor wasn't quite working right. It was going down to 0 rather than the minimum.
Made internal switch to CM for distance calcs. This should not make any change to gains or MP.
Modified a few default gains for jDrones frame based on AP test flights of this code in some heavy wind on my roof.
Fixed an issue with the landing code not kicking in right away.
Decreased the slowdown near WPs
Added a limit to the amount the pitch compensation can effect the throttle if the throttle input is really high or maximum

 

Update 2.2b6

This is a rollup of all the code that's been flying around for the last week as well as a few bug fixes. I'll be posting it saturday night after reviewing all of my logs.
A dampening term called STAB_D has been refined. A D term for all of the Rate based control loops has been added based on Igor's work. Landing for Baro and Sonar has been refined based on JLN's work. A slightly new approach to Loiter and Navigation is being used to try and linearize the pitch and roll for rate control. It tends to use lower gains, yet has a more assertive response in the air.
I have one small loiter control issue to sort out tonight based on my logs, then I'll post to GIT.
Here is the auto-landing code in action. 

OK, 2.2b6 is on GIT. The Mission planner is going to be out of sync until the release code. until then you can use the APM_Config.h or the parameters list in the Mission planner. 

STAB_D : This is the gyro accretion dampener. This can remove small wobbles during sharp changes in angle commands. Making this too high can have a negative effect in performance and add a memory effect that can cause temporary loss in control. The in flight tuning is ranged so you are just below that effect.

If you haven't noticed before the control loops are in two stages. The first is a PI stage that converts some sort of position or angle error into a desired rate. These generally do not need to be tuned. They are more of a user preference on how fast you want the copter to perform a motion. 

The second stage is the actual PID loop that needs to be tuned for the copter. This converts the desired rate into a motor command of some sort. I added a D term based on Igor's recommendation to the PI's for each rate controller. These should show up soon in the mission planner for the release. I cannot give you a concrete answer for how to tune the D terms, because they each depend on their function such as alt hold or loiter, etc.

Still, the absolute most important term is always the Rate_P term for each loop. Start tuning here.

The default PIDs are in the what flies great for a stock jDrones/3DR Quad with the purple motors in X mode.

Thanks,

Jason

 

 

 

 

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

Join diydrones

Email me when people reply –

Replies

  • On Tomorrow , I will test b6 and come report for our.

  • Evening,

     

    I opened up my mail this morning and couldn't believe my eyes. More than a 100 reply's on the 2.2b thread. There had to be a brakethrough .... But no, there seemed to be a problem. A quad came down! Condoleances go out to Marco. Hail to the brave I would say for testing the newest releases.

    After this incident you could do two things, support the AC dev team or buy a dji wookong.

    As I allready an owner of two APM1 boards I decided to stay and hope the dev team gained someting from Marco's loss.  

     

    Now for some flying reports.

    First off I got myself a new sonar and everything seems to workfine. Quad doesn't rise anymore and log is quite flat concerning sonar height. So thats a besic feature that works again.

    I've loaded the 2.2ß2XP2_PIDT1 version on my xaircaft X650 frame with 2814 tigermotors at 710KV and using 13x4,5 EPP props. Theres lot of thrust but it seemes that the quad doesn't stay in one place in stable. It wonders around and sometime it nodges a bit. (no bullet connectors) I also hear a lot of clicking sounds coming from the motors. I use Plush 25A ESC's.

    Nevertheless, AH is quit good even when doing some strong maneuvers it stays at the correct height.

    In Loiter a noticed a big improvement. The quad would stay in a diameter of a metre and worked to keep it in place. Nevertheless it was a windless condition.

    In some previous posts it was noted that during take off the quad would woblle a bit. I didn't notice this.

    Can someone point me to the "Igor tuning explination"???

    And with the new B6 version, do we have to do the Igor tuning procedure???  

     

  • congratulations for the great work of the Development Team

  • Developer

    ArduCopter V2.2ß6 is out on GIT

    I'm aware that
    I broke the balls and I bored all the dev list with my nagging requests, test, video and other, but I am sure that good reports will not be long in coming, and this will give me confirmation that my stances perhaps too "dictatorial" (in a good way) will serve to improve finally AC for all the users, so thanks for putting up with me, I am sure that will be served at something, and friends confirm it.

    Thank you Jason and to all the development team for the lively confrontation regarding the implementation of the new "PIDT1 patch" by Igor (thanks mate!), inserterd in this beta release.
    I also thank Jean-Louis for having improved the automatic landing.
    You can read the news in the first post in this thread, Jason which changes every time you release a new beta version.
    Unfortunately it is not currently possible to test this beta with AeroSim because the plugin inside the planner has been updated to support the incoming V3.83, not currently available on the website of the author.
    Before testing in real flight first update the planner (V1.1.30) and be careful to the new parameters "RATE_D", follow the Igor tuning step and as many already do know, the video of Dave is quite explanatory in this regard (but I would put a helmet!).
    We look forward to your reports, I believe absolutely positive about it, unfortunately I can not test it for you due having crashed my quad with the unreleased ß5, need to buy some spare parts for fine testing this.
    I read that most people have problem configuring the GIT, so strange, it's easy if you follow the wiki, anyway i put the beta release available here for direct download.

    At the moment you can't download this beta from the planner
    therefore not necessarily free from bugs, need some tester's reports, use it at your own risk!
    The GIT is frequently changing so the file placed here is updated at this time.

    Happy fly and enjoy (at my face, LOL)!

    Bests,


    Marco
    (AC Dev Team Tester)

    ArduCopter_V2.2b6.zip

  • Is it a problem if the motor coil can move inside the motor? If I hold where the wires enter the housing I can move it side to side about 1.5 - 2mm. I'm wondering if this can affect it when ti is running? And how?

  • @Devs: It appears that the If-flight PID tuning doesnt work with APM2...

    Im not getting any output in the test-tune menu in cli...

    :)

  • I know that simple mode removes the yaw factor, but it doesn't lock yaw to one direction. is there a way to do this?

  • Jason, did u use sonar in the landing attempts ? If not; the air pressure on the roof of your house will NOT be same as that on the ground. APM will still assume that it is still at some three meters above the ground.

  • Because this post is getting congested can we please move the PID tuning topics to Flying Tuning Multicopters? http://diydrones.com/forum/topics/arducopter-configurations-and-set...

  • Also, I'd like to suggest that we move these discussions to the following discussion, as some of our discussion here is not directly related to 2.2b.

    http://diydrones.com/forum/topics/diydrones-rants-and-raves?comment...

This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…