inav icon indicating copy to clipboard operation
inav copied to clipboard

Higher roll pids for autolaunch

Open madoboy opened this issue 8 years ago • 7 comments

Hi. Can you add custom or just higher roll pids for autolaunch. It would help the launch and make it easier to recover. But still won't affect mid flying if is to high. Thanks

madoboy avatar Jan 20 '18 05:01 madoboy

Hello. I don't think it would be a good solution. What is your issue with launch mode ? If you experience torque issue you can try to increase nav_fw_launch_spinup_time to make the motor accelerate slower and if it is not enough increase nav_fw_launch_idle_thr to reduce the torque experienced by your model even further.

shellixyz avatar Jan 20 '18 13:01 shellixyz

Thanks for your reply. Its not about torque roll but if the pids are low to have smooth flying then when i do autolaunch the servos are to slow to counter and stabilise the level launch. On my planes are not an issue because i throw then straight. But on wings throwing from side i have to many times slow correction. And i tend to not use it because it gonna crash for sure.

  1. jan. 20. 13:02 ezt írta ("shellixyz" [email protected]):

Hello. I don't think it would be a good solution. What is your issue with launch mode ? If you experience torque issue you can try to increase nav_fw_launch_spinup_time to make the motor accelerate slower and if it is not enough increase nav_fw_launch_idle_thr to reduce the torque experienced by your model even further.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/2666#issuecomment-359169925, or mute the thread https://github.com/notifications/unsubscribe-auth/AcdXHzTui0H80uAtyLfynmGYJ1YTnwPqks5tMeP-gaJpZM4RlUT1 .

madoboy avatar Jan 20 '18 13:01 madoboy

What PIFF factors are you using ? They should not have an influence on smoothness. IMO smoothness should be tuned with expo / rates / leveling strengh.

shellixyz avatar Jan 20 '18 14:01 shellixyz

Then something is wrong with autotune. When i finished on S800 because the default values are high and starts to wobble on pitch axis. After that autolaunch is just impossible for me. Thanks for advices but it's nothing to do with expo rates when you do autonomous flying with launch and RTH or similar and you don't have any stick inputs. Maybe my knowledge is not so big on piff but how i know on pid's are for defining for how hard and long are the corrections.

  1. jan. 20. 14:09 ezt írta ("shellixyz" [email protected]):

What PIFF factors are you using ? They should not have an influence on smoothness. IMO smoothness should be tuned with expo / rates / leveling strengh.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/2666#issuecomment-359174165, or mute the thread https://github.com/notifications/unsubscribe-auth/AcdXH_pRLJFk3s7F611d9w8RpzJZNGNKks5tMfOcgaJpZM4RlUT1 .

madoboy avatar Jan 20 '18 14:01 madoboy

PIFF factors should almost only be set depending on aerodynamic properties of your wing. Make sure your elevon throws are not too big. They should be between 15° and 30° as a rule of thumb. I never used autotune but I know it pretty new and not bulletproof. It can also be tuned with the fw_autotune_* params and maybe needs to for the S800. If it is wobbling after autotune it means the calculated factors are too high. You should try tuning the PIFF factors manually. To do it you should start with P and I for roll and pitch to 0. Then set the pitch and roll rates to the maximum rates you can achieve in manual unstabilized mode (PASSTHROUGH). After that set the FF factors for pitch and roll so that in ACRO mode when you move the pitch / roll stick to the max the elevons move to 90% of the max travel. Next step is to set the P and I for roll / pitch to a small value. Pitch P/I to 5/5 and roll P/I to 2/2 should be a good start and should not introduce any oscillation. Then go fly in ACRO and increase P only for one axis at a time each time you land until you have oscillations in the corresponding axis. Finally set the P factor to 75% of the value you got. After that you know you have good P and FF factors for pitch and roll and you can increase the I factors for roll / pitch to suit your preferences. Now you can set the pitch / roll rate to you liking. Only after you done all that you can tune the leveling strength and frequency cutoff to adjust the feel in angle mode. If the leveling strength is too high it can also make your wing oscillate.

shellixyz avatar Jan 20 '18 14:01 shellixyz

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] avatar May 13 '18 12:05 stale[bot]

Automatically closing as inactive.

stale[bot] avatar May 27 '18 12:05 stale[bot]