ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.47k stars 17.11k forks source link

Arduplane: Auto Tune Yaw, L1 nav, etc. #2247

Open Jman841 opened 9 years ago

Jman841 commented 9 years ago

Hello,

I was wondering what the current progress is on the development and refinement of the Auto Tune function and if auto tune will soon be added for Yaw, L1 nav, and other important control loops that are currently manually tuned?

Thank you

iskess commented 9 years ago

+1 I find yaw control the most difficult to tune. There are lots of reports of planes flying in an uncoordinated attitude, which results in an offset from the planned flight line. The carbon boomed Skywalker is particularly prone to this, and since 3DR sells the Aero, it would be very productive to put some resources towards a customer friendly solution.

magicrub commented 9 years ago

+1 Current auto tune is useless for my Skywalker x8. On May 12, 2015 11:18 PM, "Iam Bouret" notifications@github.com wrote:

+1 I find yaw control the most difficult to tune. There are lots of reports of planes flying in an uncoordinated attitude, which results in an offset from the planned flight line. The carbon boomed Skywalker is particularly prone to this, and since 3DR sells the Aero, it would be very productive to put some resources towards a customer friendly solution.

— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2247#issuecomment-101526965 .

EShamaev commented 5 years ago

@magicrub How about tune mode when plane is put in a low radius loiter and tune PTCH2SRV_RLL with error from pitch and by averaging error on Z/Y acceleration - tune YAW2SRV_SLIP and/or YAW2SRV_INT. Open question - what to do with KFF_RDDRMIX and YAW2SRV_DAMP?

magicrub commented 5 years ago

I like the idea of a loiter doing an autotune.. more automated. However, a real tune really needs some aggressive inputs to compare against. That could be mixed in. Another idea is to implement a built-in hardcoded mini-mission of a racetrack. Loiter radius on each end and then straight for a few times the radius distance.

I'll ping @tridge about doing self adjustments of those params

magicrub commented 5 years ago

result from devCall meeting: easy to ask the question, hard to get a solid solution. Pull requests welcome!