Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > OrbitHangar Addons & Comments
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

OrbitHangar Addons & Comments Addons uploaded at Orbithangar.com will automatically generate a new thread in this forum for comments. The thread link will also be included on the addons page.

Reply
 
Thread Tools
  #1  
Old
OrbitHangar's Avatar
OrbitHangar OrbitHangar is offline
Addon Comments
Arrow Orion autopilot
by OrbitHangar 06-19-2017, 08:17 AM


Author: pclaurent

Add-on Description:

This add-on for Orbiter 2016 is designed as a companion MFD for francisdrake’s Orion-MPCV spacecraft and its default “Orange SLS” launcher (https://www.orbiter-forum.com/showthread.php?t=34839).

It currently it contains 3 functions:

  • SLS launch autopilot: launches the SLS and puts Orion + EUS (Exploration upper stage) in a low earth circular orbit.
  • Reentry autopilot: manages Orion-MPCV earth reentry from LEO to a defined splashdown point.
  • “Return home” feature: calculates a splashdown point when returning from a moon mission.
Installation

  • Unzip the installation file in the Orbiter root directory (e.g. C:\Orbiter2016).
  • Go to <root directory>\Config\MFD, open file ScriptMFD.cfg and add a line containing “MFD\OrionAP.cfg”
  • Put a semi-colon at the beginning of unneeded script MFD lines if you like. For example:
MFD\OrionAP.cfg
;MFD\Attitude.cfg
;MFD\TestMFD1.cfg
;MFD\TestMFD2.cfg

  • In the Modules tab of Orbiter launcher, check the “ScriptMFD” checkbox.
2018-04-12 update:

- Improved landing point accuracy in RET mode.

- Various display improvements.



DOWNLOAD
Reply With Quote
Views 1533 Comments 13
Total Comments 13

Comments

Old 10-22-2017, 04:35 PM   #2
Gtazsk
Orbinaut
Default

What Azimuth and inclination should I use for make a circular orbit ? I tried with shuttle launching data but every time I didnt make a good orbit
Gtazsk is offline   Reply With Quote
Old 02-21-2018, 02:30 PM   #3
pclaurent
Daydreamer
 
pclaurent's Avatar
Default CPU usage

Remark from the author: the ascent autopilot (SLS mode) takes control every 0.1 second for making trajectory adjustments. If you are using XR Sound it is recommended to increase the UpdateInterval value to 0.1 in the XRSound.cfg file.

Last edited by pclaurent; 03-11-2018 at 02:13 PM.
pclaurent is offline   Reply With Quote
Thanked by:
Old 02-21-2018, 07:27 PM   #4
francisdrake
Addon Developer
Default

I have changed the XRsound update intervall to 0.2 sec without any hickups. My feeling was XRsound is competing with other ressources, e.g. the inital loading of the base textures took longer than with the default Orbiter installation.

Code:
# The default value is 0.05 (20 updates per second).
#--------------------------------------------------------------------------
UpdateInterval=0.2
francisdrake is offline   Reply With Quote
Thanked by:
Old 02-21-2018, 07:45 PM   #5
dbeachy1
O-F Administrator
 
dbeachy1's Avatar


Default

I've run benchmarks and not seen any framerate impact at all from XRSound, even at 50 updates per second (interval 0.02; the default is 0.05, or 20 updates per second). Can you please run some controlled tests both with XRSound loaded and without? If you're seeing a performance impact, please post the scenario and steps to reproduce it and I'll see if I can duplicate it.

EDIT:
Specifically, here are the benchmark numbers from a few days ago when I ran performance tests w/the default "DG Mk4 in orbit" scenario in external view with the default DX7 client, 1920x1200 window mode, with UpdateInterval = 0.02, which is 50 updates per second (2.5x the default of 20 updates per second):
Code:
   With XRSound loaded: 260 fps
Without XRSound loaded: 260 fps
I had the same results with the default update interval of 0.05 (20 updates per second) as well. Testing with the D3D9 client showed the same result -- no detectable performance impact:

D3D9 client w/the default "DG Mk4 in orbit" scenario in default cockpit view:
Code:
   With XRSound loaded: ~1550 fps
Without XRSound loaded: ~1550 fps
Actual FPS varied each second between 1500 and 1600, but 1550 was the average.

XRSound doesn't do any CPU-intensive work in its code (XR vessels, which update their 2D panels at 20 times per second by default, do literally 50x the work each update) so if you really are seeing a performance impact just from running XRSound, I'd like to know how to reproduce it so I can investigate.

Last edited by dbeachy1; 02-21-2018 at 10:00 PM. Reason: Added performance test numbers
dbeachy1 is offline   Reply With Quote
Old 02-27-2018, 02:58 PM   #6
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by dbeachy1 View Post
 XRSound doesn't do any CPU-intensive work in its code (XR vessels, which update their 2D panels at 20 times per second by default, do literally 50x the work each update) so if you really are seeing a performance impact just from running XRSound, I'd like to know how to reproduce it so I can investigate.
The addon here is an interpreted(!) algorithm that involves matrix operations in every time-step. Perhaps some rate limitation feature like e.g. this Lua if-clause at line 528 of OrionAP.cfg's prestep function is not working properly?
Code:
if oapi.get_simtime() - t0 > MET + 0.1 then  -- APs are invoked each 1/10 sec.

Last edited by Face; 02-27-2018 at 03:04 PM.
Face is offline   Reply With Quote
Old 02-27-2018, 04:45 PM   #7
francisdrake
Addon Developer
Default

It seems I have loading stutters. When new audio is loaded, the framerate drops to zero for a few moments. If this happens, e.g. at stage seperation (callout), it skips a few frames, which throws the Autopilot off course.

This might not specifically be an XRsound topic, but a general ressource topic, or how interrupts are handled on my PC.
francisdrake is offline   Reply With Quote
Thanked by:
Old 03-03-2018, 02:09 PM   #8
pclaurent
Daydreamer
 
pclaurent's Avatar
Default

OrionAP actually is a script-MFD, and as so uses an LUA script. The autopilot takes hand each 0.1 sec (which appears to be a good compromise between guidance accuracy and CPU usage, at least on the configuration I used for tests). It seems that with some add-ons it can cause some frame hang-on. Changing the refresh rate in either add-on seems to be the best option. If it’s not in XRSound, it can potentially be in OrionAP, by changing the rate from 0.1 to 0.2 for instance. Didn’t try it, as I’ve switched my priorities, but feel free to change the OrionAP.cfg script. If it works, I’ll consider an OrionAP update.

Last edited by pclaurent; 03-03-2018 at 02:14 PM.
pclaurent is offline   Reply With Quote
Old 11-22-2018, 04:26 AM   #9
daubm
Orbinaut
Default

Not sure why but the autopilot is putting me into a highly elliptical orbit. If anyone knows how to adjust the config file to fix this it would be greatly appreciated
daubm is offline   Reply With Quote
Old 11-25-2018, 12:30 AM   #10
GodAtum
Orbinaut
Default

Thanks for this addon. I am trying the Orange-SLS Lunar Mission scenario but when I launch it crashes into the ground.

Quote:
SLS Active Step 3 Pitch program 70 deg in 12 sec
GodAtum is offline   Reply With Quote
Old 03-30-2019, 07:04 PM   #11
ggrof
Orbinaut
 
ggrof's Avatar
Default

When I launch the lunar mission scenario i get a CTD. There is because i have not the Lunar Module MAV and I canīt find it in orbithangar. Someone knows where could I find it?
ggrof is offline   Reply With Quote
Old 03-30-2019, 08:09 PM   #12
turtle91
Orbinaut
Default

>.... i have not the Lunar Module MAV and I canīt find it in orbithangar
https://www.orbiter-forum.com/showthread.php?t=36504
turtle91 is offline   Reply With Quote
Thanked by:
Old 03-31-2019, 03:36 AM   #13
soumya-8974
Semi-active Orbinaut
 
soumya-8974's Avatar
Post Re: OHM Orion autopilot

Francisdrake does not always host his add-ons in Orbit Hangar.
soumya-8974 is offline   Reply With Quote
Old 03-31-2019, 10:39 AM   #14
francisdrake
Addon Developer
Default

Yes, sorry for the inconveience. Pls search the forum for the MAV thread. It is in Addon Development. The current MAV version can be downloaded from the first page of this thread.
francisdrake is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Addons > OrbitHangar Addons & Comments


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 07:10 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.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright Đ2007 - 2017, Orbiter-Forum.com. All rights reserved.