Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Missing abstract/virtual methods #88

Open
sanguinariojoe opened this issue Nov 7, 2016 · 4 comments
Open

Missing abstract/virtual methods #88

sanguinariojoe opened this issue Nov 7, 2016 · 4 comments

Comments

@sanguinariojoe
Copy link

sanguinariojoe commented Nov 7, 2016

That's maybe because my C++ deformation...

It seems that calculate_forces_and_moments is a common method of all the aircrafts (called in fact from simulator.py). However such virtual/abstract method is missing at base class Aircraft.

In Python that's not much relevant in practice, but is veeeeery convenient to can document such function in general. Or should I read the Cessna172 code to know how the parent Aircraft actually works?

@AlexS12
Copy link
Member

AlexS12 commented Nov 7, 2016

Well I have to say that, that part of code needs serious review. This class structure is just a first attempt, and in fact, many things from Aircraft should be placed somewhere outside, for example, an Aerodynamics class (or maybe named tuple...) where alpha, beta and that kind of attributes could be stored.

Maybe you, who are more familiar with oop could help us designing the structure 😉

@sanguinariojoe
Copy link
Author

Sure

But how do you want to do that... Because making a fork, and editing the code while you are intensively working on that, sounds like we are having hard conflicts

@AlexS12
Copy link
Member

AlexS12 commented Nov 10, 2016

Yes, we should meet and talk about it first!

@sanguinariojoe
Copy link
Author

OK, I suggest something like that:

pyfme_aircraft

Where everything in the aircraft, including the aircraft itself, is a component. In this way you still have the possibility of setting up simple aircrafts by a class inherited from Aircraft and Wing at the same time, as well as more complex aircraft structures (in case you have data enough).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants