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 Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Monday
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Monday
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Monday
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars @donkey_car virtual AI car race is starting in 15 minutes! Watch it live on Twitch https://www.twitch.tv/mossmann3333 htt…
Saturday
DIY Robocars via Twitter
RT @chr1sa: Don't miss our monthly @DIYRobocars @donkey_car virtual AI car race tomorrow at 10:00am PT live on Twitch. Head-to-head racing…
Friday
DIY Robocars via Twitter
RT @sparkfun: Our completed tutorial on building an @NVIDIA Jetson Nano-powered @Sphero RVR gets your bot up and running via teleoperation…
Jul 30
DIY Robocars via Twitter
RT @SmallpixelCar: Freeway test https://t.co/4V5tV9lhIP
Jul 29
DIY Robocars via Twitter
Very small autonomous cars racing, thanks to an overhead camera: https://control.ee.ethz.ch/research/team-projects/autonomous-rc-car-racing.html
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
RT @chr1sa: Don't miss our virtual AI car race this Saturday! Real developers + virtual cars =🏎️🏎️🏎️ Head-to-head battles with thrills, sp…
Jul 28
DIY Robocars via Twitter
Jul 27
DIY Robocars via Twitter
RT @usashirou1: Jetson nano by Isaac Kaya #jetson https://t.co/Mu1N0CyQkN
Jul 23
DIY Robocars via Twitter
RT @GPUsolution: JetRacer mady by Iflytek company #JetsonNANO #Nvidia https://t.co/MimTymIwge
Jul 23
DIY Robocars via Twitter
RT @openmvcam: I love this: Mega or Mini? Image Classification on the 1MB OpenMV Cam H7 by Ish Ot Jr. in OpenMV, Edge Impulse, Internet of…
Jul 23
DIY Robocars via Twitter
RT @RoboticMasters: This is looking pretty good... but still needs a bit more refinement. Pure OpenCV Turning Sign Detection. No Tensorfl…
Jul 23
More…