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 @Heavy02011: ⁦@diyrobocars⁩ : A Home-brew computer club* for Connected Autonomous Driving. talk at #piandmore ⁦@PiAndMore⁩ on Jan 23rd h…
Saturday
DIY Robocars via Twitter
RT @a1k0n: New blog post! Deep dive into my ceiling light based localization algorithm which runs in 1ms on a Raspberry Pi 3: https://t.co/…
Saturday
DIY Robocars via Twitter
Great new guide to using @donkey_car https://custom-build-robots.com/donkey-car-e-book-en
Saturday
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars virtual AI race is tomorrow morn at 9:00am PT. You can watch live on Twitch https://www.meetup.com/DIYRobocars/events/275268196/
Friday
DIY Robocars via Twitter
New version of Intel OpenBot! This resolves many of the issues with the first version, including a much smoother tr… https://twitter.com/i/web/status/1352395636369313798
Jan 21
DIY Drones via Twitter
Using ArduRover with an RTK GPS https://ift.tt/2N9I3RO
Jan 18
DIY Drones via Twitter
Jan 18
DIY Robocars via Twitter
Jan 18
DIY Robocars via Twitter
Jan 15
DIY Robocars via Twitter
Jan 15
DIY Drones via Twitter
Jan 14
DIY Robocars via Twitter
RT @Heavy02011: @diyrobocars : A Home-brew computer club* for Connected Autonomous Driving on Jan 23rd, 2021 https://www.meetup.com/Connected-Autonomous-Driving/events/275728684/ #Meetu…
Jan 14
DIY Robocars via Twitter
Jan 14
David Hori liked Isabella Domi's profile
Jan 12
DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ Autonomous Driving Assembly at #rC3. join us at https://rc3.world/rc3/assembly/diyrobocars-f1tenth/ ⁦@f1tenth⁩ ⁦@DAVGtech⁩ ⁦@DWalmroth⁩…
Jan 11
DIY Robocars via Twitter
RT @chr1sa: New car designs coming for our next @DIYRobocars @donkey_car virtual race on the 23rd. Choose any one you want at race time Le…
Jan 11
More…