API Question Mapping Control Surfaces to a value

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
8,965
Reaction score
2,791
Points
203
Location
Toulouse
My current project features a core stage with 4 boosters that have fins with control surfaces.

As far as I understand the API doc (that understanding is very limited), control surfaces are automatically mapped to AIRCTRL_AXIS (X or Y). It works fine for a SSTO like the Deltaglider, but not in my case. Is there any way to use a value (like a double) instead to set the Control Surface position dynamically ? So that my core could output a value that could be used to control the boosters Control Surfaces.

I guess I could try to create an airfoil instead and change its orientation in real-time, but it seems a complex way to achieve something simple.
 

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,533
Reaction score
662
Points
128
Location
Code 347
Hi,
if you just want to set the control surface level, then there is:
void SetControlSurfaceLevel (AIRCTRL_TYPE type, double level) const;
I don't think the position (centre of pressure) can be changed dynamically - you'd have to delete the control surface and create a new one at the required position.
I don't think you can have any other orientation than AIRCTRL_AXIS X or Y (vertical or horizontal force).
Cheers,
Brian
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
8,965
Reaction score
2,791
Points
203
Location
Toulouse
That should do it, many thanks !
 
Top