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 42 58 13 7Motors 1 through 4 spin clockwise, and 5 through 8 spin counterclockwise.
Replies
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?
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?
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
Hi Folks,
Got to fly with 2.3! Yippy. Can't wait for the weekend...
Thanks to those involved.
I've skimmed the comments (can't find a way to search them?) so forgive me if this has been covered.
So uploaded 2.3 onto my 3DR quad and took it for a test. I tried the auto land (Mode=Land) and it hovered for a few seconds, started descending slowly and then, from about 4m up, shut down all 4 motors. They were still turning but just about off. The poor thing fell like a rock.
I checked the sonar in MP CLI and it is roughly correct, maybe a few cm off but ok and responds to high changes.
Only thing would be that it was about -2/-3C outside and I had been flying for about 5 minutes. I know people have said it stops working at low temps but... Could there be some way of not being so brutal in shutting down the motors? If the sonar gave back false readings, maybe to continue a slow decent until the motors are off? Not sure if it already does this and what I experienced was a bug?
Uploaded 2.3 from MP onto APM1, have MB1200 sonar. I since reflashed - would that have killed logs?
Cheers,
Crispin
Thanks to all the DIY Drones team for so fabulous product and I have a year to 1.4 and is bestthanks.
the best of DIY Drones:
Hein Hollander
Dani Saez
Max
Jose Julio
Randy
Jani
Andrew
James
Doug
Mike
HappyKillmore
Michael
Jack
Christof
Oliver
Guntars
Igor van Airde
Jean-Louis Naudin
Sandro B
Olivier
John
thanks for making it a reality.
Quick question, so far after switching to Loiter or Alt_hold I've seen that if the 'copter is descending, it goes down faster and if ascending then it continues to climb. Only if it's hovering perfectly or climbing very slightly will it try to maintain the altitude.
Surely in those modes APM should take the instantaneous current altitude and try maintain that rather than the 'copter having to be hovering perfectly first?
Now John to test well the yaw hang the quad in 4 points, not just two sides.
Anyway have you ever flown with this octa quad (i mean with previous release of AC)?
Because the yaw value is high, and I think that it is impossible not to have a good control of the yaw with those parameters... have you tried in the both side of way control?
Put the "RATE_YAW_D" to "0,008" and increase "RATE YAW P" to "0,2".
The octa quad is very difficult to set... the "I" term allows to have better stability on the downhills, if the quad tends to wobble in that situation increases the term of RATE R / P to "0.02/0,03".
Im a bit in the dark here where to start with the PID settings on 2.3.
My rigs is as follow.
Firmware: 2.3
Quad X8 (coaxial 2 motors per arm)
3300mAh 4C or 5000mAh 3C
Droidworx ADR Quad HL, (72cmx72cm across)
Flight weight 2.4kgs
8 x Motors 880kv
8 Props 12x4.5
ESC 30A Jdrones
APM power supply. 5V, 3amp switching regulator (SVR3 Tahmazo)
Sonar XL-EZ0 (MB1200)
Declination: -0.5899
I see the default PIDs are for jdrones/3D quads and I see mentioned if more powerful then to lower the PIDs. Although I have 8X quad the power to weight ratio is probably only slightly more comperd the the defaults quad PID settings.
I had previously on 2.2b4 adjusted the it from 4.500 to 3.800 and that seemed to be reasonable, although I never had a real chance to try it in no wind conditions.
Now with 2.3 I have no idea where to start with on the settings for D and Stab D tune and so on. I really don't want to go and crash my rig again to find out the hard way, so any advise where to start from would very much be appreciated. Thanks in advance. John
-
4
-
5
-
6
-
7
-
8
of 8 Next