# PIDs tuning

**URL:** <https://discuss.px4.io/t/pids-tuning/20402>\
**Category:** PX4 Autopilot\
**Created:** [January 6, 2021, 9:37am UTC](https://discuss.px4.io/t/pids-tuning/20402 "2021-01-06T09:37:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![precog](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@precog](https://discuss.px4.io/u/precog)\
**Post date:** [January 6, 2021, 9:37am UTC](https://discuss.px4.io/t/pids-tuning/20402/1 "2021-01-06T09:37:45Z")

</div>

I am looking for to suitable PIDs for [Tarot X8 Octocopter](http://www.helipal.com/tarot-x8-octocopter-frame-set.html).(motor to motor 1050mm)

The first flight was unstable and not easy to land .

Anybody knows? Any recomｍendations !

Holybro Pixhawk px4/QGC

 ![tarot-x8-big](https://discuss.px4.io/uploads/default/original/2X/4/479274d3b511a0922ad04e7431db2cc9e4fbd64f.jpeg)

---

<div class="post-metadata">

**Author:** ![jimdgit](https://discuss.px4.io/user_avatar/discuss.px4.io/jimdgit/32/6860_2.png) [@jimdgit](https://discuss.px4.io/u/jimdgit)\
**Post date:** [January 7, 2021, 9:33pm UTC](https://discuss.px4.io/t/pids-tuning/20402/2 "2021-01-07T21:33:12Z")

</div>

Can you post a log file?

---

<div class="post-metadata">

**Author:** ![precog](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@precog](https://discuss.px4.io/u/precog)\
**Post date:** [January 8, 2021, 10:23am UTC](https://discuss.px4.io/t/pids-tuning/20402/3 "2021-01-08T10:23:28Z")

</div>

Thank you for the reply!  
Once I disconcected usb cable to FC , I could not find any logs in QGC and  
I have to download them to PC ! Next time I’ll do ,then post a log file.  
One of unstable reasons was " not calibrating ESC" or tightening props.

---

<div class="post-metadata">

**Author:** ![precog](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@precog](https://discuss.px4.io/u/precog)\
**Post date:** [January 9, 2021, 8:48am UTC](https://discuss.px4.io/t/pids-tuning/20402/4 "2021-01-09T08:48:07Z")

</div>

[https://logs.px4.io/plot\_app?log=f22126da-f80e-4500-a9fa-3ca484025d47](https://logs.px4.io/plot_app?log=f22126da-f80e-4500-a9fa-3ca484025d47)

After arming, a few arms(motors) shaking ,hovering not stable,  
throlle up and then lost balance ,no yawing controll ,fell down from 2m ,broke carbon skid.

---

<div class="post-metadata">

**Author:** ![Bravepaulo](https://discuss.px4.io/letter_avatar_proxy/v4/letter/b/65b543/32.png) [@Bravepaulo](https://discuss.px4.io/u/Bravepaulo)\
**Post date:** [January 11, 2021, 12:10pm UTC](https://discuss.px4.io/t/pids-tuning/20402/5 "2021-01-11T12:10:25Z")

</div>

Hi @precog.  
I believe you are using ESC with PWM inputs right? If so, have you tried to calibrate them as per the following link?

> **[ESC Calibration | PX4 User Guide](https://docs.px4.io/master/en/advanced_config/esc_calibration.html)**

---

<div class="post-metadata">

**Author:** ![precog](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@precog](https://discuss.px4.io/u/precog)\
**Post date:** [January 11, 2021, 1:05pm UTC](https://discuss.px4.io/t/pids-tuning/20402/6 "2021-01-11T13:05:59Z")

</div>

Thank you ! This is picture of esc . Flycolor 30A OPTO 2-6S [IMG\_1042.PNG|231x500](https://discuss.px4.io/uploads/short-url/zuBqwNKyQ8xTUUapWE3xYhScCFN.jpeg)

I 've done this ESC Calibration of link , but did not work well.  
Different from betaflight , calibration beep sound ends quickly in a few seconds.

My friend could control correctly this X8 Octocopter by DJI A3 pro, but…

---

<div class="post-metadata">

**Author:** ![jimdgit](https://discuss.px4.io/user_avatar/discuss.px4.io/jimdgit/32/6860_2.png) [@jimdgit](https://discuss.px4.io/u/jimdgit)\
**Post date:** [January 12, 2021, 10:19pm UTC](https://discuss.px4.io/t/pids-tuning/20402/7 "2021-01-12T22:19:54Z")

</div>

Something is really wrong. The PID loops are basically doing nothing.

 ![image](https://discuss.px4.io/uploads/default/original/2X/3/355689daaabcedcd2226267367cbd47c84d3e53f.png)  
Plus super high vibration.  
I think you have some fundamental error in how you built it but it is hard to say exactly what.  
This how it should look:  
 ![image](https://discuss.px4.io/uploads/default/original/2X/1/1da32eea982d72cf565e32b1d80751e2402f8b18.png)

---

<div class="post-metadata">

**Author:** ![precog](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@precog](https://discuss.px4.io/u/precog)\
**Post date:** [January 13, 2021, 11:32pm UTC](https://discuss.px4.io/t/pids-tuning/20402/8 "2021-01-13T23:32:06Z")

</div>

This flight logs I tested last night( ESC calibration agarin, MOTOR clockwise checked[https://logs.px4.io/plot\_app?log=e6eaa451-525c-4011-abf1-c9885e5c18bf](https://logs.px4.io/plot_app?log=e6eaa451-525c-4011-abf1-c9885e5c18bf) )  
After arming, arms, motors never stopped shaking.

---

<div class="post-metadata">

**Author:** ![jimdgit](https://discuss.px4.io/user_avatar/discuss.px4.io/jimdgit/32/6860_2.png) [@jimdgit](https://discuss.px4.io/u/jimdgit)\
**Post date:** [January 17, 2021, 11:14am UTC](https://discuss.px4.io/t/pids-tuning/20402/9 "2021-01-17T11:14:28Z")

</div>

This is due to a mechanical problem. Un balanced propellers, motors not lined up or something else since we can not inspect your physical set up it is hard to say.  
If you don’t see anything you should research this in hopes that you might.

---

<div class="post-metadata">

**Author:** ![precog](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@precog](https://discuss.px4.io/u/precog)\
**Post date:** [January 19, 2021, 11:35am UTC](https://discuss.px4.io/t/pids-tuning/20402/10 "2021-01-19T11:35:13Z")

</div>

Thank you for the advice.  
I changed firmware from px4&QGC to ardupirot &mission planner.  
Unfortunately with the same results ,vibrations &shaking .  
I did not feel like hovering and flying it.  
Without props , it seems works well ,but once I put props on it…

---

<div class="post-metadata">

**Author:** ![jimdgit](https://discuss.px4.io/user_avatar/discuss.px4.io/jimdgit/32/6860_2.png) [@jimdgit](https://discuss.px4.io/u/jimdgit)\
**Post date:** [January 19, 2021, 1:19pm UTC](https://discuss.px4.io/t/pids-tuning/20402/11 "2021-01-19T13:19:31Z")

</div>

Not sure why you did anything to the firmware. Please re-read my previous post and follow the advice.  
**"This is due to a mechanical problem. Un balanced propellers, motors not lined up or something else since we can not inspect your physical set up it is hard to say.**  
**If you don’t see anything you should research this in hopes that you might."**

---

<div class="post-metadata">

**Author:** ![precog](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@precog](https://discuss.px4.io/u/precog)\
**Post date:** [January 19, 2021, 2:07pm UTC](https://discuss.px4.io/t/pids-tuning/20402/12 "2021-01-19T14:07:20Z")

</div>

My friend could fly this tarot octocopter by Dji A3 pro with same conditions.  
He said there is no mechanical problems at all.  
Differences between two FC are motor orders and direction of rotation.  
I have tried many flight controllers like cc3d ,cleanflight ,betaflight, raceflight,FL1,  
troubles happen by installation failures ,firmware miss matching, default pids .  
I think next step is to adjust PIDs ( make them half values )

 ![image](https://discuss.px4.io/uploads/default/original/2X/6/66a5625df5fd577d81c1c44ce5fe7a12267e65e1.jpeg) ![image](https://discuss.px4.io/uploads/default/original/2X/6/6812bd1ba51cebc48eead31323ffe6a828d0437b.jpeg) ![image](https://discuss.px4.io/uploads/default/original/2X/5/5cd6d972f18ce0883ede05480e10597e880f5572.jpeg) ![image](https://discuss.px4.io/uploads/default/original/2X/2/28402906a65bf2c59a21f90ee45bae587a313fea.jpeg) ![image](https://discuss.px4.io/uploads/default/original/2X/d/d97f907e9bc98c8b188d65f83f6defe88bd42422.jpeg)
