Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Orbiter Lua Scripting
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Lua Scripting Find support, share snippets and general discussion around using the Lua engine in Orbiter.

Reply
 
Thread Tools
Old 01-24-2019, 05:58 AM   #1
soumya-8974
Orbinaut
 
soumya-8974's Avatar
Post atlantis/launch lua problem

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 by soumya-8974; 01-24-2019 at 06:06 AM.
soumya-8974 is offline   Reply With Quote
Old 01-24-2019, 11:04 AM   #2
martins
Orbiter Founder
Default

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.

Quote:
Originally Posted by soumya-8974 View Post
 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.
martins is offline   Reply With Quote
Thanked by:
Old 01-26-2019, 12:24 PM   #3
soumya-8974
Orbinaut
 
soumya-8974's Avatar
Thumbs up Re: atlantis/launch lua problem

Thank you! I will try your approach.
Quote:
Originally Posted by martins View Post
 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 by soumya-8974; 01-27-2019 at 07:41 AM.
soumya-8974 is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Orbiter Lua Scripting


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 12:41 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.