3457F / 3303F-Off-Season-FR

0 stars 0 forks source link

Improve Tuning CLI - Handle Oscillations! #7

Open CodeMyGame1 opened 5 months ago

CodeMyGame1 commented 5 months ago

Problem: When the robot runs test autonomous routines for tuning PID constants, it will sometimes oscillate, indicating that the derivative ("D") constant has to be increased. Once the oscillation is sufficiently negligible, the proportion ("P") constant has to be increased by 1. However, visually detecting such oscillations is problematic Significance: The Inertial Motion Sensor is much more reliable at monitoring angular/linear heading, and, better yet, a set "delta" value can be initialized (either through extensive research, or by researching online), and all oscillations can be checked against this delta to see if it is sufficiently large enough to count as an oscillation. Solution: