pid value

below is a link for my quadcopter simulation.

http://youtu.be/8xYpy0YkA-c

my pid value for the roll and pitch is p=0.7,i=0,d=0.1 while for yaw is p=0.2,i=0,d=0.

can anyone advice me on why my quadcopter can't stabilise and keep spinning in a cw direction and tend to drift away from the starting point.

is it because my pid value is wrong?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • MR60
    Is your quad symetrical on all axis ? If yes parameters for roll and pitch should remain identical.

    Second it is a good rule to have I=P. I see your I is zero which means basically that you do not use the integral part of the pid loop. I is used to compensate for permanent external forces on the quad such as wind for example.

    What is the weight of your quad and what props do you use at which KV ?
  • MR60

    If you are a mathematician, the P is Proportion, D is Differencial, and I is Integral ... and these will all have instant meaning to you.  But if you are not:

    Think of P as being the Power of the response.

    Think of D as being the raDar that watches how close the correction is getting to target and making an appropriate response.

    Think of I as being Intelligence remembering the long term

    So the existing yaw settings have no raDar and no Intellegence, just a little power and maybe not enough.

    If changing the PIDs for yaw do not correct well enough then you may:

    o have a bent motor mast

    o have a loose motor mast bolt

    o have a loose or tilted motor mount

    o incorrect rotor spin (you can tell this by applying Yaw and watching which motor spin up and down)

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
10 hours ago
DIY Robocars via Twitter
10 hours ago
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
More…