Update TransX development

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,665
Reaction score
13
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
BTC: include RCS

As per blixel's request, the BTC now has an "include RCS" button, similar to Ext, but automatically taking into account RCS fuel, for more precise DV budget considerations.
 

Attachments

  • BurnTimeMFD.dll.zip
    28 KB · Views: 3

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,932
Reaction score
360
Points
98
Location
Sparta
Is it possible to give the Outward Vel constraint in TransX's Auto-Min a little bit more "room"?
By using the Auto-Min in all three variables and changing the date, I have noticed that TransX "misses" some launch opportunities (or it displays more dV than what is needed). It always happens with the Outward maxed out at ±1000.
If it was possible to connect the Outward constraint to 75% of the hohmann transfer, I think it would be able to catch those (otherwise counter-intuitive) transfer trajectories.

That is IF it is easy to implement. Otherwise no need to bother, all it takes is a bit of manual tuning.
 

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,665
Reaction score
13
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
Sure it's possible and it's very easy. The problem is that the solver may prefer suboptimal solutions, but this is what is assumed when you include Outward Vel anyway.

Could you post a scenario with a plan, having a minimized Cl. App. so I can immediately try if the Auto-Min results are sane?
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,932
Reaction score
360
Points
98
Location
Sparta
The scenarios are attached on the bottom of this post.
Both of them leave on the same date: Feb 29 2016

The 2016 - TransX long uses:
Pro : 2503
Out : -1236
Ch.Pl: - 955.8
Total: 2951 m/s TOF: 307.9 days

The 2016 - TransX short uses:
Pro: 2441
Out: 1331
Pl.Ch.: 1325
Total: 3080 m/s TOF: 176.1 days

The trade-off is small (129 m/s) to save 132 days of flight.
The Auto-Min isn't able to "catch" either of these plans due to the Outward being beyond the ±1000 constraint.

In all fairness, those plans are less than optimal and TransX did catch a slightly cheaper plan (TotalDV: 2850 m/s - TOF 189.6 ) ~12 days prior to the launch date of these plans, but I think raising the constraint will give it more flexibility.

If you think that this can be done without creating more problems than it will solve, then it would be great. If not, leave it as it is.
 

Attachments

  • 2016-TransX long.scn
    3.5 KB · Views: 2
  • 2016-TransX short.scn
    3.5 KB · Views: 2

blixel

Donator
Donator
Joined
Jun 29, 2010
Messages
647
Reaction score
0
Points
16
As per blixel's request, the BTC now has an "include RCS" button, similar to Ext, but automatically taking into account RCS fuel, for more precise DV budget considerations.

Thanks Enjo. This will be very helpful.

There are a couple of logic problems with this build though. If you switch ENG type to RCS, it doesn't seem to count the fuel that you have in the Main tank - which makes sense. But if you switch to RCS engine type and press the new RCS button, it seems to count the RCS fuel x2

I've attached a scenario you can work with that has very limited fuel.

EDIT: This scenario starts with exactly 311.787 m/s remaining.

Code:
BEGIN_DESC
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 58310.5130378703
  Script dV_XR2
END_ENVIRONMENT

BEGIN_FOCUS
  Ship XR2-05
END_FOCUS

BEGIN_CAMERA
  TARGET XR2-05
  MODE Cockpit
  FOV 55.00
END_CAMERA

BEGIN_HUD
  TYPE Orbit
  REF AUTO
END_HUD

BEGIN_MFD Left
  TYPE User
  MODE BurnTimeMFD
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE Interplanetary
  Scenario Old2
  MapMFD V5
  Reference Sun
  Target earth
  Center Sun
  Data 0 1 1.220907152468945e-009 0 1 1 0 2 1 0 0 0
  MassLimit 1e+020
  CMode 0
  Config 1 1 1 1 0 0
  ExtMode 0
  Periapis Earth
  END 
  CorMFD V4
  Reference Mars
  Target Ecliptic
  Source XR2-05
  ActiveProg 5 5
  DataA 0 3 1 0 0 0
  DataB 1 1 58310.51303671245 0 0 0 0 0 0
  DVProg 2028.700000000004 0 0 1
  AdvConf 0 0 0 0 0
  Guidance 0
  END 
  EjectMFD V5
  Reference Auto
  Data 0 1 3 0 1 58197.04078147035 10
  Guidance 0
  END 
  BaseAprMFD V2
  Reference Auto
  Target none
  Source none
  DataA 0 0 120000 0.10821 0.366519 1 1 58197.04078147035 58197.04078147035 0
  DataB 0 3 0 1 0 1
  END 
  SlingMFD V4
  Reference Auto
  Source none
  Data 0 1 1 3 0 1 58197.04078147035 0
  END 
  LaunchMFD V4
  Target None
  Data 0 1 1 3 0 1 0
  END 
  CF1_DataA 0 0
  CF1_DataB 0 10 120000 2 20 150000
  CF1_SecTgt 
  mfdShare -1
  mfdProgram 2
END_MFD

BEGIN_SHIPS
ISS:ProjectAlpha_ISS
  STATUS Orbiting Earth
  RPOS 5314209.04 4051433.93 -809506.23
  RVEL -298.480 1849.237 7472.050
  AROT 179.61 -75.59 -86.84
  VROT -0.11 0.03 -0.13
  AFCMODE 7
  IDS 0:588 100 1:586 100 2:584 100 3:582 100 4:580 100
  NAVFREQ 0 0
  XPDR 466
END
XR2-05:XR2Ravenstar
  STATUS Orbiting Sun
  RPOS 70519463453.06 -5520064582.83 -175485256918.40
  RVEL 21755.654 -216.333 15338.801
  AROT 178.53 -46.56 -176.03
  PRPLEVEL 0:0.019526 1:0.040994
  IDS 0:203 100
  NAVFREQ 0 0 0 0
  XPDR 201
  SECONDARY_HUD 1
  LAST_ACTIVE_SECONDARY_HUD 0
  ADCTRL_MODE 0
  TAKEOFF_LANDING_CALLOUTS 3798.509856 1326.527415 1326.527462 0.000000 2777.246777
  APU_FUEL_QTY 0.951461
  LOX_QTY 1.000000
  CABIN_O2_LEVEL 0.209000
  CREW_STATE 0
  INTERNAL_SYSTEMS_FAILURE 0
  COGSHIFT_MODES 0 0 0
  MWS_ACTIVE 0
  COOLANT_TEMP 31.200000
  DMG_0 1.000000 Left Wing
  DMG_1 1.000000 Right Wing
  DMG_2 1.000000 Left Aileron
  DMG_3 1.000000 Right Aileron
  DMG_4 1.000000 Landing Gear
  DMG_5 1.000000 Nosecone
  DMG_6 1.000000 Retro Doors
  DMG_7 1.000000 Top Hatch
  DMG_8 1.000000 Radiator
  DMG_9 1.000000 Airbrake
  DMG_10 1.000000 Left Main Engine
  DMG_11 1.000000 Right Main Engine
  DMG_12 1.000000 Left SCRAM Engine
  DMG_13 1.000000 Right SCRAM Engine
  DMG_14 1.000000 Fore Hover Engine
  DMG_15 1.000000 Aft Hover Engine
  DMG_16 1.000000 Left Retro Engine
  DMG_17 1.000000 Right Retro Engine
  DMG_18 1.000000 Forward Lower RCS
  DMG_19 1.000000 Aft Upper RCS
  DMG_20 1.000000 Forward Upper RCS
  DMG_21 1.000000 Aft Lower RCS
  DMG_22 1.000000 Forward Star. RCS
  DMG_23 1.000000 Aft Port RCS
  DMG_24 1.000000 Forward Port RCS
  DMG_25 1.000000 Aft Star. RCS
  DMG_26 1.000000 Outboard Upper Port RCS
  DMG_27 1.000000 Outboard Lower Star. RCS
  DMG_28 1.000000 Outboard Upper Star. RCS
  DMG_29 1.000000 Outboard Lower Port RCS
  DMG_30 1.000000 Aft RCS
  DMG_31 1.000000 Forward RCS
  DMG_32 1.000000 Bay Doors
  IS_CRASHED 0
  MET_STARTING_MJD 58197.010853
  INTERVAL1_ELAPSED_TIME -1.000000
  INTERVAL2_ELAPSED_TIME -1.000000
  MET_RUNNING 1
  INTERVAL1_RUNNING 0
  INTERVAL2_RUNNING 0
  ACTIVE_MDM 2
  TEMP_SCALE 2
  CUSTOM_AUTOPILOT_MODE 0
  AIRSPEED_HOLD_ENGAGED 0
  SCRAM0DIR 0.000000 0.000000 1.000000
  SCRAM1DIR 0.000000 0.000000 1.000000
  HOVER_BALANCE 0.000000
  MAIN0DIR 0.000000 0.000000 1.000000
  MAIN1DIR 0.000000 0.000000 1.000000
  GIMBAL_BUTTON_STATES 0 0 0 0 0 0
  ATTITUDE_HOLD_DATA 0.000000 0.000000 0 0 0.000000
  DESCENT_HOLD_DATA 0.000000 -3.000000 0
  AIRSPEED_HOLD_DATA 0.000000
  OVERRIDE_INTERLOCKS 0 0
  TERTIARY_HUD_ON 1
  CREW_DISPLAY_INDEX 0
  GEAR 0 0.0000
  RCOVER 0 0.0000
  NOSECONE 0 0.0000
  AIRLOCK 0 0.0000
  IAIRLOCK 0 0.0000
  CHAMBER 0 0.0000
  AIRBRAKE 0 0.0000
  RADIATOR 1 1.0000
  HATCH 0 0.0000
  SCRAM_DOORS 0 0.0000
  HOVER_DOORS 0 0.0000
  BAY_DOORS 0 0.0000
  APU_STATUS 0
  EXTCOOLING_STATUS 0
  TRIM 0.000000
  SKIN Virgin
  LIGHTS 0 0 0
  XRUMMU_CREW_DATA_VALID 1
  UMMUCREW XI0-Lee_Nash-39-65-78
  UMMUCREW XI1-Kara_Miller-32-65-58
  UMMUCREW XI2-Sharon_Valerii-26-67-54
  UMMUCREW XI3-Cameron_Mitchell-36-65-77
  UMMUCREW XI4-Samantha_Carter-33-66-53
  UMMUCREW XI5-Daniel_Jackson-35-68-75
  UMMUCREW XI6-Teal_c-31-64-104
  UMMUCREW XI7-Vala_Mal_Doran-30-67-53
  UMMUCREW XI8-Elizabeth_Weir-36-68-56
  UMMUCREW XI9-John_Sheppard-34-64-77
  UMMUCREW XI10-Rodney_McKay-35-72-90
  UMMUCREW XI11-Teyla_Emmagan-27-68-57
  UMMUCREW XI12-Ronon_Dex-32-63-97
  UMMUCREW XI13-Carson_Beckett-38-74-95
  PAYLOAD_SCREENS_DATA 0.2 0 1 0
END
XR2-05_Bay:XRPayloadBay
  STATUS Orbiting Mars
  RPOS -16266882872.17 643556819.75 17038332993.98
  RVEL -1246.875 96.017 3302.548
  AROT 178.53 -46.56 -176.03
  ATTACHED 0:3,XR2-05
  AFCMODE 7
END
XR2PayloadCHM-01-2:XR2PayloadCHM
  STATUS Orbiting Mars
  RPOS -16266882868.49 643556819.53 17038332990.52
  RVEL -1246.875 96.017 3302.548
  AROT 178.53 -46.56 -176.03
  ATTACHED 0:0,XR2-05
  AFCMODE 7
  NAVFREQ 0 0
END
XR2PayloadLOX-02-1:XR2PayloadLOX
  STATUS Orbiting Mars
  RPOS -16266882869.77 643556819.35 17038332991.73
  RVEL -1246.875 96.017 3302.548
  AROT 178.53 -46.56 -176.03
  ATTACHED 0:1,XR2-05
  AFCMODE 7
  PRPLEVEL 2:0.276491
  NAVFREQ 0 0
END
LaunchMFD-Probe-XR2-05:LaunchMFD-Probe
  STATUS Orbiting Mars
  RPOS 420308.66 3649392.73 118932.66
  RVEL 601.137 22.708 -3366.716
  AROT -92.55 0.34 -22.05
  AFCMODE 7
  NAVFREQ 0 0
END
END_SHIPS

BEGIN_ExtMFD
END
 
Last edited:

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,665
Reaction score
13
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
There are a couple of logic problems with this build though. If you switch ENG type to RCS, it doesn't seem to count the fuel that you have in the Main tank - which makes sense. But if you switch to RCS engine type and press the new RCS button, it seems to count the RCS fuel x2
Indeed. That was easy.
 

Attachments

  • BurnTimeMFD.dll.zip
    28 KB · Views: 9

blixel

Donator
Donator
Joined
Jun 29, 2010
Messages
647
Reaction score
0
Points
16
Indeed. That was easy.

Looks good. I tested several different situations. Transferred all the fuel to RCS, transferred all the fuel to the Main, left some in the RCS and some in the main. In all situations the reported dV was correct with the new RCS button.

Nice work Enjo!
 

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,665
Reaction score
13
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
dgat: I was experimenting with the scenarios and as far as I can see, even with greater OV margin, you are able to find the solutions automatically only if the PV isn't minimized together with the other two velocities. I need to spend some more time on it.
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,932
Reaction score
360
Points
98
Location
Sparta
If it's too much trouble, forget about it. Auto-Min has already sped up the process by at least x10. Those scenarios and others like it, are special cases.
 

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,665
Reaction score
13
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
You are always welcome to test my stuff, but yes, you could say so. Thanks for all your help and for confirming my assumptions.
Let this be a reminder for us all - always test on a clean installation before drawing any conclusions.
 
Last edited:

Interceptor

Well-known member
Joined
Mar 28, 2008
Messages
2,718
Reaction score
76
Points
63
Location
Michigan,Florida
Thanks Enjo,dgat,Ripley,blixel,and all the others for helping make transX,and Burntime calculator,better,and more stable.:cheers:
 

Interceptor

Well-known member
Joined
Mar 28, 2008
Messages
2,718
Reaction score
76
Points
63
Location
Michigan,Florida
OK Enjo,I found a bug in transX,sometimes when you press the ++ it switches it to the target view.
 
Last edited:

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,665
Reaction score
13
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
Enjo, is ModuleMessaging required by TransX, or is it optional?
I know what you're up to - the TransX OH description, which doesn't mention MM explicitly :) Oh, if only the download count wasn't reset when just updating the description. My addons would have teh bes descriptionz evar... (OK. Growing up! Growing up!)

OK Enjo,I found a bug in transX,sometimes when you press the ++ it switches it to the target view.
More info please. Ideally a solid reconstruction script.
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,135
Reaction score
409
Points
123
Location
Rome
Website
www.tuttovola.org
I know what you're up to - the TransX OH description, which doesn't mention MM explicitly :)...
Exactly!
I knew you were a brilliant developer, but I didn't know that you could read people's mind :lol:

I asked it because of this screenshot, posted by a new FOI member:

Errore2_zpsf1c3e595.png


It says "ModuleMessaging.dll not found. Couldn't launch program".


...Oh, if only the download count wasn't reset when just updating the description...
What?
You have both "Downloads Since Update" and "Total Downloads"...
 
Last edited:

Interceptor

Well-known member
Joined
Mar 28, 2008
Messages
2,718
Reaction score
76
Points
63
Location
Michigan,Florida
OK Enjo,I found a bug in transX,sometimes when you press the ++ it switches it to the target view.
Enjo,this problem seems to happen when I am on my way to the moon,and just out of the Earths SOI,when I go to start my first mid course correction,and switch the maneuver mode on,as soon as I switch to outward vel,or change plane,and then use the --,or the ++ to change the value that's when it all of a sudden switches to the target view.
 

Enjo

Mostly harmless
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 25, 2007
Messages
1,665
Reaction score
13
Points
38
Location
Germany
Website
www.enderspace.de
Preferred Pronouns
Can't you smell my T levels?
What?
You have both "Downloads Since Update" and "Total Downloads"...
After like 6th release the total download count doesn't tell much anymore.
 
Top