Problem atlantis/launch lua problem

Sbb1413

Well-known member
Joined
Aug 14, 2018
Messages
948
Reaction score
373
Points
78
Location
India
Preferred Pronouns
he/his/him
When I started the atlantis/launch lua, the engines ignite quickly, rolls a bit and yaws at left direction a bit. It happens in Orbiter 2016 lua only, Orbiter 2010 lua works fine. Please help me!
Vehicle I tested upon: OV-104
 
Last edited:

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
The Atlantis\launch.lua script doesn't work correctly with the 2016 stock Atlantis. It has been replaced by the AscentAP MFD mode. The reason is that the Lua script (incorrectly) uses RCS for attitude control during ascent, while AscentAP uses the SRB and SSME gimbal capability introduced to the 2016 Atlantis.

There was a significant rewrite of the Atlantis code for the 2016 version (for example, the launch stack is now composed of individual docked vessels, instead of a single vessel containing the entire assembly). The Lua launch script was never updated or tested to work with the new version.

If you are interested in updating the Lua version of the launch autopilot, one prerequisite is exposing the Atlantis gimbal control functions to Lua. An example for how to add vessel-specific Lua functions is given in the Deltaglider code. Have a look at Orbitersdk\samples\DeltaGlider\DGLua.cpp to get the general idea. You could then start by re-implementing Orbitersdk\samples\Atlantis\Atlantis\AscentAP.cpp in Lua. Once you get the same behaviour, you have a platform to experiment further.

Vehicle I tested upon: OV-104
If you are not talking about the stock Atlantis, then all bets are off. You won't have the AscentAP MFD mode, and the Lua script may or may not work. Default assumption should be that it doesn't, unless the addon developer explicitly checked it. In any case, an RCS-based ascent AP is a fudge and should only be used as a last resort.
 

Sbb1413

Well-known member
Joined
Aug 14, 2018
Messages
948
Reaction score
373
Points
78
Location
India
Preferred Pronouns
he/his/him
Thank you! I will try your approach.
If you are not talking about the stock Atlantis, then all bets are off. You won't have the AscentAP MFD mode, and the Lua script may or may not work. Default assumption should be that it doesn't, unless the addon developer explicitly checked it. In any case, an RCS-based ascent AP is a fudge and should only be used as a last resort.
OV-104 is just an alternative name of Space Shuttle Atlantis, similar to GL-01.
 
Last edited:
Top