Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flight - Yaw action on Tri-copter at Harakiri is crazy #654

Closed
j0uni opened this issue Mar 21, 2015 · 7 comments
Closed

Flight - Yaw action on Tri-copter at Harakiri is crazy #654

j0uni opened this issue Mar 21, 2015 · 7 comments

Comments

@j0uni
Copy link

j0uni commented Mar 21, 2015

I have had problem with harakiri PID on my Tricopter, the Yaw RC-command is so powerful that it's difficult to fly. My yaw-rate is 0. I've tried expo on radios but it just becomes binary-type control. Dual rates don't work either because then you cannot arm the copter - and loose the resolution.

I've already patched my own fork of the Harakiri PID by just dividing the YAW RC command half. It is then really close the other PID yaw action.

I can make pull request if this feature is wanted. If it reduces the yaw too much, there's always possibility to increment the yaw rate and get the gain back.

@thenickdude
Copy link
Contributor

I can't think of a good reason why the yaw rate would have a different effect on a tricopter, as it is supposed to control the rotation rate as measured by the gyroscopes (so if a tricopter had a "stronger yaw system", it should be detected as yaw rate overshoot and the control signal should weaken). I think discovering the reason for the difference would be useful.

There's a note in the Harakiri code that for quadcopters and above, maximum yaw rate is limited by the yaw D term, but for tricopters, the maximum servo throw limits for the tail servo should be configured instead (on the servo tab). Have you tried that?

I see you have a pull request #657

@j0uni
Copy link
Author

j0uni commented Mar 21, 2015

On other PIDs the yaw is working "normally". My friend said that the yaw is also very powerful on his quad (compared to other PIDs) but it's flyable. So clearly there's something different in calculations.

@ledvinap
Copy link
Contributor

@thenickdude : Maybe the pid is saturated for quad (or yaw jump limit is causing saturation?)

@hydra
Copy link
Contributor

hydra commented Mar 25, 2015

I found my CJMCU micro quad unflyable with Harakiri. I need to give this a test.

@j0uni Can you give us the spec of your tricopter and a config dump?

@j0uni
Copy link
Author

j0uni commented Mar 26, 2015

Sure @hydra. My tricopter is 210mm M2M and I'm running 5" props (3blade) on 3S pack at 1900kv. The servo is directly connected to yaw axis (no linkage). Pic here: http://tulos.tuu.fi/wp-content/uploads/2015/02/IMG_4213.jpg

Settings here: http://tinyurl.com/pmjbwub

Try it, it's really "natural" with my fix. I don't know if this should directly cover also quads since they have naturally smaller yaw action. It's really snappy on quads too though. So something general could be implemented but it should be configurable? A new parameter? harakiri_yawcommand_damp?

@hydra hydra changed the title Yaw action on Tri-copter at Harakiri is crazy Flight - Yaw action on Tri-copter at Harakiri is crazy May 15, 2015
@hydra
Copy link
Contributor

hydra commented May 15, 2015

#657 was merged. Please re-test.

@j0uni
Copy link
Author

j0uni commented May 15, 2015

@hydra merged? i cant see it merged. I currently havent got tri to test atm.

martinbudden pushed a commit to martinbudden/cleanflight that referenced this issue Oct 5, 2016
@hydra hydra closed this as completed Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants