Get access to exclusive content for just $3/month on my Patreon / thepidtoolboxguy For a direct 1-on-1 tuning consultation, check the PIDtoolbox Website: pidtoolbox.com
Hello, this is probably not the video where I should ask you this, but I have been following your videos since the beginning and following your tutorials for pid adjustment and they have gone very well for me. Normally I use a small drone of less than 250 grams and on a day when it is quite windy I notice how the drone has a hard time following my instructions and makes very strange vibrations when subjected to strong gusts of wind, and I was wondering if I could do something in those conditions with the adjustment of the pids. I don't know if higher values will produce better behavior or if it is just the opposite, so that the drone is not trying to correct very radically the position changes caused by the wind. Thanks in advance
Forward flight smoothness issues are the most difficult to solve. It’s rarely a PID issue. You have to consider several things, including ESC pwm, filters, electrical and gyro health, as well as mechanical aspects like props, motors and cam mount issues. Some of these issues will be invisible under certain environmental conditions then become really bad when the wind picks up. The way I approach this issue is a process of elimination. I start by ruling out electrical noise, then look at how intense the motor noise is using the power spec (you don’t want this to exceed about -10dB. Any rig with prefiltered noise exceeding this will rarely fly smooth under any circumstances. So this is a prop/motor/frame dampening capability question). Then if these are ruled out I move on to ESC pwm. If that’s optimized and there’s still video issues I look to the camera mount. 95% of the time some combination of these things works. But remember, as long as we fly drones using spinning things they will vibrate. There’s a misconception that filtering kills all. Filtering does not erase vibration!( stating the obvious). Filtering only stops noise from entering the PID control process. But make no mistake, the vibration you had before you started tuning will always be there in the frame. The better you can bring that to a nominal level the smoother the rig will fly, and that comes down to the right prop and motor choice. Those two things are at the heart of the vibration issue. Outside that it is electrical and gyro health which tends to be a real issue as well these days with poor QC in the electronics, especially wrt AIO boards. Avoid those if possible. If you’d like one on one help in this regard, I offer a comprehensive face to face tuning service. www.pidtoolbox.com
I do get error Index exceeds the number of array elements (0). Error in PTviewerUIcontrol (line 70) Error using waitforallfiguresclosed (line 9) Error while evaluating UIControl Callback. Not on every files - random really Files are 100% good
That means PTB is working fine. The logfile crashed. This usually happens because you’re not running the program as suggested or there are short files from arming and disarming quickly. PTB can’t link the header with the correct csv. It works in BBE sure because that program loads logfiles directly. PTB cannot do this. It has to use BB tools decoder to convert the logfiles to csv files. After quick arm disarm, it creates a logfile with header but no data (seems to take second or two to start writing data).
all logs are at least 1m long. Funny that after moving folder form desktop - files that worked few minutes ago are not loading. Short beep when loading and then nothingis going on for minutes. @@PIDtoolbox
If you’re using a Mac, this will happen because the location of main is coded in a file so Ptb knows where it is. Also critical to unlock logfiles on mac. Or they won’t get cleared from main folder after loading. In windows it should not matter