dakejahl / TeensyFlight36

Teensy3.6 based flight control firmware
MIT License
25 stars 4 forks source link

Doesn't level quickly when sticks return to zero (attitude controller sucks) #22

Open dakejahl opened 5 years ago

dakejahl commented 5 years ago

After commanded a roll/pitch, the vehicle does not return to "level". This should be the job of the P only controller for roll and pitch. The P gain has been increased as high as it can go without oscillations at hover, however this doesn't seem to be sufficient when the error is large.

dakejahl commented 5 years ago

The step response from the rate controller looks good, the tracking is pretty much spot on with minimal overshoot/ringing. The issue seems to be that the attitude controller is producing medium demand while near zero (saw about +/-15deg/s as input to rate controller). This causes the rate controller to oscillate rapidly and the phase delay between rates setpoint and rates actual can be clearly seen.

tracking performance of rate controller with step inputs

Selection_020