pheidlauf / AeroBenchVV

Simulation and analysis tools for autonomous F-16 maneuvers as a V&V benchmark
GNU General Public License v3.0
63 stars 22 forks source link

(Slightly) inconsistent S&L model between control design and simulation #3

Open stanleybak opened 6 years ago

stanleybak commented 6 years ago

The control design uses subf16.m, and the values of ay and az this model outputs. However, the simulation model uses subf16_stevens.m, which is almost the same, except for a few lines including a modification to ay:

ay=ay+xa*xd(9);           % moves side accel in front of c.g.

I believe this means the control design uses a (slightly) different model than the simulation.

We probably only want one S&L model, rather than having both subf16.m and subf16_stevens.m (maybe subf16.m could call subf16_stevens.m and drop the extra variables).

pheidlauf commented 6 years ago

I modified the 'subf16.m' file to add the 'ay' shift. The controller still needs to be retuned and gains recopied.