Need some advice: I’m running ArduCopter v3.6.8 on a 680 H4 frame with PixHawk4 (https://rotorbuilds.com/build/18468).
Maiden Flight: I used default PIDs and it flew well. Downloaded and looked at logs as described in the “First Flight with Copter” section of the doc (LOG_BITMASK set to default+IMU). All looked good (response, vibration, etc).
Second (Autotune) Flight: I ran the Autotune (grit my teeth with aggressiveness set to 0.1). Autotune completed successfully for Pitch and Roll. I flew the default vs. autotune PIDs at the end of the flight and the autotune PIDs seemed similar but somewhat tighter overall as expected.
When I looked at the default vs autotune PIDs in Mission Planner, I noticed something strange:
Autotune PIDs (with default values in parentheses):
* Stabilize Roll (Error to Rate) = 8.840641 (default was 4.50)
* Rate Roll, P = 0.09606013 (default was 0.135)
* Rate Roll, I = 0.09606013 (default was 0.090)
* Rate Roll, D = 0.00527265 (default was 0.0036)
* Rate Roll, IMAX = 0.5
* Rate Roll, FILT = 10
* Stabilize Pitch (Error to Rate) = 11.78815 (default was 4.50)
* Rate Roll, P = 0.1167617 (default was 0.135)
* Rate Roll, I = 0.1167617 (default was 0.090)
* Rate Roll, D = 0.00824510 (default was 0.0036)
* Rate Roll, IMAX = 0.5
* Rate Roll, FILT = 10
The P and I values are EXACTLY THE SAME! This is true for both Pitch and Roll. It’s as if the value of one of the parameters got stored for both the P and I values (?)
I thought I could maybe figure this out by looking at the log file, but I had set the LOG_BITMASK back to “default” (830 -> ATTITUDE_MED, GPS, PM, CTUN, NTUN, CMD, and CURRENT) before the autotune flight and no ATUN or ATDE parameters were captured. I assumed that the ATUN and ATDE would be logged since there was no reminder in the “Dataflash logging” section of the doc under autotune to set the LOG_BITMASK to anything besides default - I should have researched further.
So, my questions are:
-
Is it typical to have the P and I values be the exact same after autotune (as above)?
-
How should I set the LOG_BITMASK to capture the autotune (ATUN and ATDE) parameters? Is it the PID (12) bit that I need to set? Is there a better description of what is captured for each of the mask bits (i.e., what does setting bit 12, the “PID” bit log?)
Thanks!