3D Robotics

ArduCopter 2.3 released

Jason is travelling this week, so I'll take the helm for the next software release post. 

UPDATE: the motor remapping thing was confusing everyone, so we took that out and returned to the regular motor mapping. That means that APM 2 users with Hexas and Octos should wait for the next version. APM 1 users should be fine with any frame.  

NOTE: Hexa and Octo users: there have been motor mapping changes that may affect you. Please don't upgrade until we can update the documentation to reflect the changes. This should happen by the end of the day today (Feb 1).

ArduCopter 2.3 is now available in the Mission Planner.  This is the next revision of the ArduCopter 2.2B6 code, which is perhaps the most tested code we've ever released (1288 comments in the thread!)  and certainly in my experience the best code, too. 

The default PIDs are optimized for a 3DR/Jdrones quad with 850 motors and 10" props. If you're using more powerful motors/props, start by turning down Rate Roll P (default is 0.14, so start by turning it down to 0.1. In general tune PIDs in 25% steps).

Now that we've got solid code out there, we can turn to collecting suggested gains for standard frames, and a better guide to how to tune PIDs for your unique setups. 

Here are Jason's note on the latest changes (mostly from 2.2B6)

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.

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.

Note the Mission Planner does not yet highlight these D terms on the main tuning page (it will soon), but you can find them and modify them on in the Parameters list.

Autolanding should now work well (see video above) and the Tri servo issue is now resolved. 

The code should now compile with Arduino 1.0 (thank, Randy!), but remember that you need to use the "relaxpatch" version of Arduino in our downloads section

[Update: we've reverted the below. See update at the top of the post]

Important for Octo users:


We've changed some of the motor orders for some more exotic airframes. We'll be updating the docs on the Wiki in a day or two to reflect this. Pat Hickey explains:

As before, the hexa plus APM2 motor setup has changed from the ordering [1, 2, 3, 4, 5, 6] to [ 5, 6, 1, 2, 3, 4 ].

The Octa V layout for APM2 is:
6            4
  2        5
    8    1
      3 7
Motors 1 through 4 spin clockwise, and 5 through 8 spin counterclockwise.
Support for roll/tilt camera control on APM 2 should be coming in the next version. Traditional Heli will also be updating to this latest code as well once we track down a memory issue. 
As always, you can see a complete list of changes in the changelogs.

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

Join diydrones

Email me when people reply –

Replies

  • Hey all, after loading 2.3 on my quad and our octo, here's a short flight in studio (rain) of the octo before we head of for a film shoot with it. I prefer D terms at 0 apart from Stab_D at 0.08, rock solid and she goes where I want, end of story :)

    As far as my tests and limited knoledge of the I and D terms, I find that adding some I gives me that 'stability' pactch, haing a lipo off one of the arms with 0 Rate I, then it just leans towards that arm, no fighting back, but with a touch I term it's level with the lipo swinging off the arm, thus other than CH6 tuning of Stab_P for smoother or more rigid camera 'feel' only thing I would tweak is some I term of we need more stability, wind, cog etc.

    Hope this helps a little with guys with their bigger birdies.

    PS: realy good way to dust out a studio ;)

  • So APM2 are becoming available... now where's my credit card.

     

    Anyway to save the curious some cash, (in new parts) here's a demo of the wobbles. At take off and 'in flight'.

     

    'The wobbles' from Kamakaze UK on Vimeo.

  • Hi everyone

    I'm waiting for my APM2 to be delivered, but there is something that is starting to get me worried.... when do you think Hexa support will be available?? because I've one and will be using it for AP, couldn't wait any longer..

    Cheers

    Andres

  • Im looking at the new Ch6 and Ch7 option on the MP config page, but now that I have 6 modes set up on my switches I dont see really I need them. I suppose the will be useful for camera functions right?

  • Today's tests were very bad...the wind was still high(no sand storm today though) but loiter was all over the place...I played around with the loiter_p, nav_p, and even the nav_I....increasing either the loiter_p or nav_p seemed to cause large swaying as the copter tried to reach the hold position, dreacreasing caused random behavior...at least with the large oscillations I can tell what the copter is trying to do. At this point I have no idea where to even start, so I reset my NAV and LOITER parameters back to default and I'll wait for the wind to die out before I do another test. Honestly I have no clue where to even start after what I saw today.

     

    Surprizingly though, RTL seemed to work ok..autolanding was indeed engaged after 20 seconds of what seemed to be a better loiter than in loiter mode and it did land sort of(ok well kinda crashed but from a very low altitude so no damage).

     

    Thanks to all who have tried to help so far with loiter and nav tuning and if anyone has anymore ideas, please let us know!

     

    Here are the logs from the RTL/LOITER/LAND and some more LOITER...I hope this can help to somewhat identify what's going on.

     

     

    logs.zip

  • Moderator

    Rate D values don't work for me, Quad is almost uncontrollable, remove them and everything is fine, very stable and smooth (except... see next:)

    -

    I'm also getting slight twitches while in a flat stable hover out of ground effect.

    -

    Can someone check if the "Level" button in MP is working, I've clicked mine a few times but then when I go to the Flight Data tab the horizon is still slightly skew?

  • Problem with mission planner 1.1.31 when trying to set up the modes using CH5 i see that it reports in the configuration screen OK and saves the modes but in the flight data i don't see any change of modes although i am flipping the switch back and forth both in armed and disarmed mode.

  • All,

    I was tring to fly ver2.3 this morning without sucess it webbels strongly and flips as soon as it leaves the ground

    The configuration that i am using is APM1+GPS+MAG+SONAR (radio configuration STABILIZED, LOITER, RTL)

    They way that i am doing the test ;

    I am connecting power when the quad is level and wait for GPS lock then i am transfering the quad by hand to the filed which is about 100m away. I am puting the quad on the ground and arm the motors the radio switch is in stabilized position.

    as soon as i arm the motor and start ramping out power for takeoff the quad starts to webble strongly and whaen i has a bit more power trying to stabilize it it flips.

    is there someting that i am doing wrong?

    do i have to have the mission planer and use the configuration  levelup function to set the IMU?

  • Hi All,

    are your logs working on 2.3? I've downloaded a fresh 2.3 tri through MP and it looks like very incorrect or blank data is logged in *.log files... i attached tunning_screen to show what was supposed to be seen in the attached log file. log_viewer screen is showing strange blank records (i've never seen those before).


    So yeah, do logs work on your hardware?


    Thanks!

    2012-02-03 12-01 2.log

    log_viewer.jpg

    tuning_screen.jpg

  • I flew the previous code (B6) that was downloaded yesterday and have to say it works :-)

    Attached is a tlog file that works with the current mission planner.

    A tlog or log file helps developers.

    V 2.3 will be next.

    20120202015323.tlog

This reply was deleted.

Activity