Servo vs Nav PID Gain Tuning?

The Ardupilot manual keeps saying to adjust the Servo PID gains, but shouldn't servos be fast enough to respond these days without gain tuning?

What is the difference between Mission Planner's Nav Roll PID, Nav Pitch AS PID, Nav Pitch Alt PID and their Servo PID counterparts? Shouldn't gain tuning involve the Nav PIDs more so than the Servo PIDs?

Does this have something to do with how the cascaded PID loops are set up? I still haven't been able to picture what the APM's cascaded PID looks like.

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    the best way to set pids is like this
    setup FBW-A

    tune servo gains while using FBW-A , so there is no oscillating

    then set crosstrack gain to 0. and tune your nav gains while in auto.

    then finaly add back crosstrack so you get better line following.

  • What do you mean the PID gains are for the servos? There should be PID controller in the physical servos, but can the APM modify the internal (inner loop?) PID controller of the servos? 

  • Distributor

    The Servo PID gains as the name suggests are for your servos, and are adjusted to get good stable attitude performance from your ArduPilot Mega, IE not oscillating too much when in stable mode.

    The NAV PIDs are for the navigation, so if you find that your aircraft is not following the path correctly, then you need to adjust them.

    For NAV PIDS

    • The P term is the primary tuning value.  This determines how the control deflection varies in proportion to the required correction.
    • The I term is used to control drift.
    • The D term is used to control overshoot.  Avoid adjusting this term if you are not familiar with tuning PID loops.

    If you want to change anything always change them in small amounts and graduly tune them

  • I believe I have read the Manual thoroughly and have not found a complete key to the parameters.  So, I have experimented and parsed the code to learn their effects.  I also have not found a detailed key to the log files.  I figured documenting the parameters and the log files was a place I could make a contribution.  Before I put some polish on what I've done, do these already exist and I just haven't found them?

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @_JonMyer: 🚨Attention DeepRacer's including #UndergroundDeepRacer🚨 Check our our LIVE stream that including @IAM_dbro Take a few moments…
Wednesday
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Aug 3
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…
Aug 1
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…
Jul 31
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
More…