SDK Question CreateControlSurface (45 degree) problem

Woodylepic

New member
Joined
Dec 29, 2009
Messages
71
Reaction score
0
Points
0
screenshot172ul.jpg

screenshot174q.jpg

screenshot175.jpg

screenshot176b.jpg

Hi all I'm working on my Little JoeII Rocket update whit all the mission flow in the 60 area (A-001,A-002,A-003,A_004, and PA-1,PA-2) autopilot and surface animation was made ;)
But I have some trouble whit the CreateControlSurface for my A-002 rocket :idk: (A-002 rocket have control rudder, elevator and RCS)

I have to put my rocket wing at an angle of 45 degree at launch becose the rocket was launch in this configuration) but it seem that CreateControlSurface orientation was only availlable in XPOS or YPOS
Is there a way to get it to a 45 ZPOS :idk:?

And what
AIRCTRL_AXIS_AUTO mean ?


here my wing at standart orientation
helevator = CreateControlSurface3 (AIRCTRL_ELEVATOR, 1.415726, 1.5, _V( 0,0,-9.458), AIRCTRL_AXIS_XPOS, 1.0, anim_elevator);
hrudder = CreateControlSurface3 (AIRCTRL_RUDDER, 1.415726, 1.5, _V( 0,0,-9.458), AIRCTRL_AXIS_YPOS, 1.0, anim_rudder);
hlaileron = CreateControlSurface3 (AIRCTRL_AILERON, 1.415726, 1.5, _V( 3.496,0,-9.458), AIRCTRL_AXIS_XPOS, 1.0, anim_raileron);
hraileron = CreateControlSurface3 (AIRCTRL_AILERON, 1.415726, 1.5, _V(-3.496,0,-9.458), AIRCTRL_AXIS_XNEG, 1.0, anim_laileron);

Thank in advence for your reply.
 
Last edited:
Am afraid Orbiter doesn't handle the X configuration, although it leads to better maneuverability in RL. You can always designate one surface as XPOS, another as YPOS and then translate commands received from keyboard into surface deflections. AFAIR that's the way igel and Thorton do key management in their add-ons (by intercepting keystrokes).
 
Am afraid Orbiter doesn't handle the X configuration, although it leads to better maneuverability in RL. You can always designate one surface as XPOS, another as YPOS and then translate commands received from keyboard into surface deflections. AFAIR that's the way igel and Thorton do key management in their add-ons (by intercepting keystrokes).

Thank for reply.
How to translate the command and intercepting keystrokes ?
and where I can get the source code of igel and Thorton ? :huh:
 
Rotate your rocket by 45 degrees :P
 
This one at Orbiter hangar Vostok.1.0.110301.zip ? I have tested it but there no movable surface on the booster only mouvable thruster and is aligned at xpos whit the cockpit, and not 45 degree like my rocket, thank aniway, I think the best way will be to put the animation at 45 degree but the surface will be at xpos and ypos
 
Last edited:
Back
Top