Open cnpcshangbo opened 7 years ago
In commit (4c5aa0af76415c544d7c3a1a5a6d8acc21911ef5), I added limit block and zero hold. However, issues still exist.
After reading some materials, I found that clamping method always work, but back-calculation highly rely on the coefficient. So I am going to try the clamping method. https://stackoverflow.com/questions/18654853/simulink-pid-controller-difference-between-back-calculation-and-clamping-for#
The clamping method still has a serious actuator saturation. I am going to retest the back-calculation method using a larger anti-windup gain as Dr. Chen suggested.
df92935ad603c6d8119a9fd2f9766e4d6c254570 Results: drone avoid marker. To-do: check if the controller needs reverse by using mouse to move marker.
b9f3340a6d56530845cfdba5741a50879f13b73e Issues: Drone shakes. To do retest.
The drone shaking issue is solved by changing to a better computer.
commit dd54131c6cbbe04c4d434734147927c22c9419b7 Tested again. Drone keeps moving after losing target. The controller output u keeps a value when feedback=0 (feedback is not available). To do: