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
19 hours ago
DIY Robocars via Twitter
RT @SahikaGenc: AWS DeepRacer & Hot Wheels Track https://youtu.be/4H0Ei07RdR4 via @YouTube
Sep 14
DIY Robocars via Twitter
Sep 8
DIY Robocars via Twitter
RT @davsca1: We are releasing the code of our Fisher Information Field, the first dedicated map for perception-aware planning that is >10x…
Sep 8
DIY Robocars via Twitter
RT @SmallpixelCar: How this works: 1)object detection to find cones in single camera image, 30 frames/sec on @NVIDIAEmbedded Xavier. 2)comp…
Sep 8
DIY Robocars via Twitter
RT @SmallpixelCar: Use two color cones to guide the robocar. No map needed, on onsite training needed. Just place the cones and it will fol…
Sep 7
DIY Robocars via Twitter
Sep 7
DIY Robocars via Twitter
RT @roboton_io: Great to see http://roboton.io running at 60fps on the cheapest #chromebook we could find! #edtech #robotics #educat…
Sep 3
DIY Robocars via Twitter
RT @openmvcam: Crazy in-depth article about using the OpenMV Cam for Astrophotography: https://github.com/frank26080115/OpemMV-Astrophotography-Gear https://t.co/BPoK9QDEwS
Sep 3
DIY Robocars via Twitter
RT @openmvcam: Hi folks, it's finally here! Our first draft of our Arduino Interface Library is out! It works over SoftwareSerial, Hardware…
Sep 3
DIY Robocars via Twitter
RT @chr1sa: Please let them have an open API. This would be perfect for @DIYRobocars races https://twitter.com/NintendoAmerica/status/1301513099707658246
Sep 3
DIY Robocars via Twitter
RT @SmallpixelCar: Lanenet pretty much used all my GPU power on @NVIDIAEmbedded Xavier since I optimized with tensorRT. I need to run anoth…
Sep 3
xemone liked Max Gilson's profile
Aug 31
DIY Robocars via Twitter
RT @LyftLevel5: Our @kaggle competition on Motion Prediction for Autonomous Vehicles is now live! Experiment with the largest-ever self-dri…
Aug 24
DIY Robocars via Twitter
RT @chr1sa: Our next @DIYRobocars virtual AI car race will be on Sept 26th. Sign up here https://www.meetup.com/DIYRobocars/events/272786977/ https://t.co/UENKGSOWO8
Aug 24
DIY Robocars via Twitter
New ready-to-run @NVIDIAEmbedded JetRacer car from Waveshare. Perfect for the next @diyrobocars race as soon as we… https://twitter.com/i/web/status/1297960223013867520
Aug 24
More…