Hi All, 

I just posted a new experimental version of Arducopter with new PIDs and control laws for Yaw. It's download only for now and I wouldn't recommend trying it unless you can rigorously test it. Please be careful. I've flown this in Stable, Simple, Acro, Loiter, and Alt Hold with no known issues. But you never know! This version is not yet compatible with the mission planner.

 

What's new:

New PIDs - I rewrote the control laws from scratch to add a PI Rate function. The end result should fly nearly identically to the current version. The nice detail is that we can use NG PID values for easy transition!

Before: ->  After

Stabilize P –> Stabilize P (Use NG values, or 8.3 x the older AC2 value)

Stabilize I –> Stabilize I (Stays same value)

Stabilize D –> Rate P (Stays same value)

–> Rate I (new)

 

I added a new value – an I term for rate. The old stabilization routines did not use this term. Please refer to the config.h file to read more about the new PIDs.

I added the framework for using DCM corrected Accelerometer rates. Code is commented out for now.

Added set home at Arming.

Crosstrack is now a full PID loop, rather than just a P gain for more control.
Throttle now slews when switching out of Alt hold or Auto modes for less jarring transitions

Sonar and Baro PIDs are now combined into a throttle PID Yaw control is completely re-written.

 

Jason

Views: 1664

Reply to This

Replies to This Discussion

what is the advantage of having the magnetometer?

you need it for everthing gps related

and it cancels drift on your yaw gyro

Oh really? I thought the combination of the  accelerometer and gyro canceled out the gyro drift.  So does this mean auto and loiter won't work as well?  I just tried loiter for the first time today and it was all over the place so maybe that was the reason?  Stable mode is as solid as a rock for me and that is all I've been flying so far, except for today.

The Z/Yaw Gyro can't be corrected by the Accelerometers. In the APM plane version, we use the GPS vector to correct the Z gyro drift. But planes can't fly backwards, usually, so in ACM we use the Compass instead. You cannot fly Loiter, AUTO, or RTL without a compass.

Jason

Hi Jason, I continue fighting with my yaw problems.....
Have you change the yaw stick dead_zone from 5º/8º in 2.0.33 to 0.6º in 2.0.34?
My cheap turnigy radio has a +-2º noise in the yaw stick and this caused me problems with 2.0.34.
I will try tomorrow increasing the dead_zone... don't know if I can have undesired effects...

In any case, awesome job Jason... keep pushing! Mikrokopter is not far away!

hey, 

in radio.pde change to this:

g.rc_4.dead_zone = 500;

Sorry about that!

Jason

 

Don't apologize Jason! Just saying...
I will give it a try and get back later to report.

Thanks!

He Jason,

 

Flying between two waypoints or RTL the copter altitude varies a lot (well, it drops but not rises), I remember reading somewhere that between waypoints (in case of RTL, the home position is also the final waypoint) altitude is not actively kept.

 

Am I correct and if so, any plans for it?

 

Thanks

hi,im missing mag offsets in cli, are they automated now?

Yes they are. And they are saved when you disarm.

Jason

youre awesome :)
Niiiiiice!

RSS

Social Networking

Contests

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.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service