chris-ali / j6dof-flight-sim

A high fidelity 6DOF flight simulation that the user can fly themselves or run to analyze an aircraft's flight dynamics
GNU General Public License v3.0
49 stars 13 forks source link

Add lookup tables to longitudinal stability derivatives #4

Closed chris-ali closed 8 years ago

chris-ali commented 8 years ago

Stability derivatives are normally nonlinear, especially CL_alpha and CM_alpha, in order to model stall and ground effect at various alpha and flaps deflections. These should be reflected in the model.

chris-ali commented 8 years ago

Integrated lookup tables into the project for CL_alpha for a custom "LookupNavion" aircraft in 18dcb540f6a8bbf88fc29a73c68233b9ba289388, but still need to integrate them into the Aerodynamics class; it needs to differentiate between double and p.b.s.i.f. objects for this to work correctly

chris-ali commented 8 years ago

41bdea0e4833777663743cc38b199e7f36c102c4 adds a CM_alpha lookup table, and integrates the lookup tables into the aerodynamic buildup in the Aerodynamics class (getCL(), getCD(), etc.). Lateral derivatives don't vary much with beta, so this functionality should exist just for longitudinal derivatives (L,D and M).

Lookup table parsing needs to have error handling

chris-ali commented 8 years ago

485ed42380467e90a4ad690d71b790932ea9690a adds error handling to lookup table creation, so that a badly formatted lookup table text file will throw an exception, handled by creating a default constant lookup table.