Problem Description
Previously, a different actuator configuration could only be represented through a new model. This results in a large number of derived models, and since VTOL configurations are diverse this is not scalable.
Since we are using a lumped sum model to describe the aerodynamic forces of the system, we can generalize control surfaces into actuators that influence lift and drag coefficients.
Proposed Solution
In this PR, a general control surface actuator is proposed, where the vehicle is lumped as a single wing model and the control surfaces influence the lift and drag coefficients of the lumped wing.
I tried to make the control surface have the same interface/structure as the rotor model so that both can be considered as different kinds of "actuators"
Testing
The regression results show almost no difference in the force estimation, therefore I consider this not to be worse, although the performance doesn't seem to be great at all. (Most likely not good enough for the simulation)
Before PR
After PR
Additional Context
This approach helped on adding an additional control surface (flaps) to the vehicle - as simple as adding a new control surface in the config file.
If this seems reasonable, I would like to move all actuators under a base class called Actuators so that all actuators have the same interface.
@manumerous I think having the lift drag plot would really help on debugging this problem. Since the z acceleration predictions are pretty bad (which is what matters most) I suspect there is something not working on the wing coefficient estimation itself.
Problem Description Previously, a different actuator configuration could only be represented through a new model. This results in a large number of derived models, and since VTOL configurations are diverse this is not scalable.
Since we are using a lumped sum model to describe the aerodynamic forces of the system, we can generalize control surfaces into actuators that influence lift and drag coefficients.
Proposed Solution In this PR, a general control surface actuator is proposed, where the vehicle is lumped as a single wing model and the control surfaces influence the lift and drag coefficients of the lumped wing.
I tried to make the control surface have the same interface/structure as the rotor model so that both can be considered as different kinds of "actuators"
Output of the model results are as the following:
Quick sanity check - Note that the two aileron channels are estimating close to symmetric coefficients:
(Not sure why they are sooo big)
Testing The regression results show almost no difference in the force estimation, therefore I consider this not to be worse, although the performance doesn't seem to be great at all. (Most likely not good enough for the simulation)
Before PR
After PR
Additional Context
Actuators
so that all actuators have the same interface.