The hybrid approach I've settled on after hundreds of tuning sessions combines the reliability of calculated starting points with real-flight feedback loops. First, flash the latest betaflight and run the correct preset for your frame size. A 5-inch typically starts around 45-50 P-gain and 35-40 D-gain on pitch and roll. These presets have become remarkably good since betaflight 4.3, giving you a flyable baseline immediately.
Your first flights should be gentle hovers and slow circuits. Watch for mid-throttle oscillations that indicate P is too high, or sluggish response suggesting it's too low. The beauty of modern flight controllers is you can adjust PIDs in the field via your radio and the LUA scripts. I typically increase P-gain by increments of 3-5 points until I notice the quad getting twitchy or see visible propwash oscillations in descents. That's your ceiling. Now reduce P by about 10 percent to create headroom for environmental variables like wind or battery sag.
D-gain handles how the quad responds to rapid stick inputs and disturbances. Too little D and your quad will overshoot on sharp turns, feeling loose and imprecise through gates. Too much D generates excessive motor heat and can actually create high-frequency noise. After setting P, increase D gradually while performing hard direction changes and quick stops. You'll feel when the quad locks in. For most 5-inch racing setups, I end up somewhere between 38-45 D-gain. Check your motors after a full battery. If they're uncomfortably hot to touch within two seconds, you've likely pushed D too far.
I-gain is the safety net that corrects steady-state errors. The stock value of 80-90 works for most quads. Only reduce it if you're getting bounce-backs after flips, or increase it slightly if the quad drifts in flight.
The feedforward setting is equally important for racing responsiveness. I run feedforward between 85-110 depending on how direct I want stick feel. Higher values make the quad react almost before you finish the stick input, which feels incredible on a tight track but can be twitchy for beginners.
Environmental tuning matters too. A quad tuned perfectly in calm morning air might feel different in evening thermals. I keep two separate profiles: one optimized for practice sessions and another slightly softer for race day when adrenaline makes my fingers heavier. Temperature affects battery voltage sag and motor performance, so what worked at 15 degrees celsius might need tweaking at 30 degrees.
Black box logging closes the loop. After suspicious flights, I'll review the gyro trace looking for oscillations I couldn't feel. This objective data catches problems before they cause crashes or burned components.