Update TransX development

Interceptor

Well-known member
Joined
Mar 28, 2008
Messages
2,718
Reaction score
76
Points
63
Location
Michigan,Florida
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.
BTW,after you correct it by turning off the target view,it doesn't seem to happen anymore.
 

fred18

Addon Developer
Addon Developer
Donator
Joined
Feb 2, 2012
Messages
1,667
Reaction score
104
Points
78
Hi all!

I have a question for you. I'm not a big expert of transx so sorry if it's a stupid question :focus:

I understand very well how transx works, and I was excited to try the new features. Starting from the automin option.

So I started Maven addon by brianj... took off, everything was fine, reached parking orbit and started to plan the trip to mars.

Well the automin values goes weird, and the trajectory this option suggests is something like 40Gs away from mars, even if manually i could find easily closest solutions. With IMFD took 30 seconds to setup everything (arrival date 56922.5). Why I was not able to do it with the automin of transx?

I modified the scenario just after burnout of Maven and replaced the Centaur with the stock DG, in order to post it here and allow everyone to test it, could you please help me with that? I have the feeling that if I'm able to understand this, then everything will be much easier for my interplanetary flights!

Thanks a lot for the attention

Code:
BEGIN_DESC
Orbiter saved state at T = 2455
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 56614.7784118899
END_ENVIRONMENT

BEGIN_FOCUS
  Ship GL-01
END_FOCUS

BEGIN_CAMERA
  TARGET GL-01
  MODE Cockpit
  FOV 40.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_SHIPS
GL-01:DeltaGlider
  STATUS Orbiting Earth
  RPOS 2308465.66 4388799.44 -4288438.63
  RVEL 7125.267 -3095.922 667.136
  AROT -97.41 -73.82 138.34
  PRPLEVEL 0:1.000000 1:1.000000
  NAVFREQ 0 0
  AAP 0:0 0:0 0:0
END
END_SHIPS
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,927
Reaction score
340
Points
98
Location
Sparta
Having a look now. Will get back to you in a few mins. I have a question though:

took off, everything was fine, reached parking orbit and started to plan the trip to mars.

First you got into the parkig orbit and then you started to plan the trip to Mars? How did you select the parking orbit if the trip to Mars wasn't already set?

Would you mind walking me through the process you followed step by step?
Don't go into too much detail, (x prograde, y date etc), just the sequence of the setup.
This way we can avoid misunderstandings and double explanations.
 

fred18

Addon Developer
Addon Developer
Donator
Joined
Feb 2, 2012
Messages
1,667
Reaction score
104
Points
78
Very simple:

I used the addon autopilot for parking orbit which replicates the trajectory of the original Maven launch, so my simple guess was that NASA guys did the right job with launch window and parking orbit inclination :lol:

I just wanted to see how quick and easy it became, so I used an historical addon based on historical datas, so i was sure that initial part of the flight was already good!

if you download Maven addon from here:

[ame="http://www.orbithangar.com/searchid.php?ID=6373"]http://www.orbithangar.com/searchid.php?ID=6373[/ame]

and do the launch you will get to the proper parking orbit.

In order to pass the scenario to you I just changed the Centaur stage to the stock DG

hope I was clear, sorry if I made confusion or anything!

And to be more clear:

I did the launch with the Atlas-centaur, and once the parking orbit was achieved I saved the scenario, and edited it putting the DG in place of the centaur stage ready to do the TMI
 

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,927
Reaction score
340
Points
98
Location
Sparta
No prob, I just needed that clarification.
I can see what the problem is and why TransX doesn't come up with the same result as IMFD, when you use the Auto-min. The Outward velocity is 'maxed out' at 1000 m/s and can't go beyond that in order to get you to the trajectory needed for the arrival date of MAVEN's actual filght.

You see the Auto-Min feature needs to have some constraints in order to arrive at sensible optimal trajectories. Those are +/- 4.5 km/s for the Pl.Change and +/- 1 km/s for the Outward velocity. (and I think +/- 50% of the hohmann transfer at the time of the scenario start for the Prograde vel.)

I have already proposed to Enjo to give a little more "room" at the Outward velocity constraint, but it seems that this creates more problems than it solves.

IMFD doesn't have that problem because the user enters the Departure and Arrival dates and the Lambert solver finds the solution for those two variables, while TransX's Auto-Min doesn't have an arrival date variable.

Another thing to watch is that Maven's heliocentric transfer is not exactly optimal, with the heliocentric transfer Delta-V at ~3.48 km/s.

Enjo might be able to clarify a bit more on this, for now I can leave you with the TransX plan tweaked for an arrival ~ at the actual arrival date. It will need more tweaking to match the parking orbit.

Code:
BEGIN_DESC
Contains the latest simulation state.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 56614.7943659233
END_ENVIRONMENT

BEGIN_FOCUS
  Ship GL-01
END_FOCUS

BEGIN_CAMERA
  TARGET GL-01
  MODE Cockpit
  FOV 40.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE User
  MODE TransX
  Ship  GL-01
  FNumber 3
  Int 1
  Orbit True
  Vector  5818633.35266 -2897680.34591 853485.385605
  Vector  -3227.38346184 -4995.36169662 5042.71940807
  Double  3.98600439969e+014
  Double  56614.7943654
  Handle Earth
  Handle NULL
  Handle NULL
Select Target
 0 Escape
Autoplan
0 0
Plan type
0 0
Plan
0 1
Plan
0 0
Plan
0 0
Select Minor
 0 None
Manoeuvre mode
0 0
Auto-Center™
0 0
Base Orbit
0 0
Prograde vel.
 1  0
Man. date
 1  56614.7943651
Outward vel.
 1  0
Ch. plane vel.
 1  0
Intercept with
0 0
Orbits to Icept
0 0
Graph projection
0 0
Scale to view
0 0
Advanced
0 0
Pe Distance
 1  6566000
Ej Orientation
 2  -0.959232956896
Equatorial view
0 0
Finvars
  Finish BaseFunction
  Int 2
  Orbit False
  Handle Sun
  Handle Earth
  Handle Mars
Select Target
 0 Mars
Autoplan
0 0
Plan type
0 2
Plan
0 0
Plan
0 0
Plan
0 1
Select Minor
 0 None
Manoeuvre mode
0 0
Auto-Center™
0 0
Base Orbit
0 1
Prograde vel.
 1  0
Man. date
 1  56614.7943651
Outward vel.
 1  0
Ch. plane vel.
 1  0
Intercept with
0 0
Orbits to Icept
0 0
Graph projection
0 0
Scale to view
0 0
Advanced
0 0
Prograde vel.
 5  2326.86086678
Eject date
 9  56614.7918959
Outward vel.
 4  -2299.29298742
Ch. plane vel.
 3  -1147.12999532
Finvars
  Finish BaseFunction
  Int 5
  Orbit True
  Vector  6109590907.08 110158854.411 1419862954.74
  Vector  -3102.21729463 -54.1646594957 -721.957421058
  Double  4.28282991638e+013
  Double  56899.7970238
  Handle Mars
  Handle NULL
  Handle NULL
Select Target
 0 None
Autoplan
0 0
Plan type
0 1
Plan
0 0
Plan
0 2
Plan
0 0
Select Minor
 0 None
Manoeuvre mode
0 0
Auto-Center™
0 0
Base Orbit
0 0
Prograde vel.
 1  0
Man. date
 1  56614.7785952
Outward vel.
 1  0
Ch. plane vel.
 1  0
Intercept with
0 0
Orbits to Icept
0 0
Graph projection
0 0
Scale to view
0 0
Advanced
0 0
Draw Base
0 0
Finvars
  Finish BaseFunction
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE TransX
END_MFD

BEGIN_SHIPS
GL-01:DeltaGlider
  STATUS Orbiting Earth
  RPOS 5818499.69 -2897887.22 853694.23
  RVEL -3227.724 -4995.192 5042.669
  AROT -66.15 -49.30 110.16
  AFCMODE 7
  PRPLEVEL 0:1.000000 1:1.000000
  NAVFREQ 0 0 0 0
  XPDR 0
  AAP 0:0 0:0 0:0
END
END_SHIPS

BEGIN_ExtMFD
END

The parking orbit is ~12° off-plane with the hypothetical trajectory, but I have adjusted the Ej. Orientation, so that the node and the periapsis coincide. So it will take only one periapsis "kick" to raise the apoapsis, take care of the Rinc there, and finish the burn on the return back to periapsis.

Hope this helped.
:cheers:
 

fred18

Addon Developer
Addon Developer
Donator
Joined
Feb 2, 2012
Messages
1,667
Reaction score
104
Points
78
Thank you very much for immediate help and for the clear explanation!

tomorrow I will give a careful look at your plan and at your suggestions!

Thanks again, it's very good to have helpful people like you! :tiphat:
 

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?
But if there's a way to make it so that when you turn Maneuver mode off, it checks Auto-Center, and if it's on, it turns it off, and then turns Maneuver mode off ... if that's an easy check to make, it might be worth adding in to the next version.

I think I've got it. Please test the attached dll. It did require some small but unconventional changes.
Since I've changed the compiler, you might need the VC++ 2013 redistributable.

[EDIT]
I've also dealt with controlling a focus vessel, which wasn't programmed by its TransX MFD to Auto-Center, i.e. imagine that you set Auto-Center in one vessel, and then switch to another one. the second one's RCS would then fire up and try to reach the orientation of the previous vessel. A silly mistake.
 

Attachments

  • TransX.dll.zip
    71.9 KB · Views: 4
Last edited:

blixel

Donator
Donator
Joined
Jun 29, 2010
Messages
647
Reaction score
0
Points
16
I think I've got it. Please test the attached dll. It did require some small but unconventional changes.

I tried out the new dll several times using a simple Earth to Moon flight I have which is already set up and ready to burn. (I will include the scenario at the bottom.)

With this new dll, I'm seeing the same behavior that I demonstrated in the video I made. The new dll seems to work without the VC++ 2013 redistributable (unless I already had it installed and didn't realize it.) But just to be sure, I installed VC++ 2013 redistributable and tried again, but still have the same result. If I turn Maneuver Mode off before turning off Auto-Center, then the vessel is "locked" into a mode that you can't get out of. You can't use prograde/retrograde, and if you try to manually rotate the vessel to a certain position, the vessel will fight you and eventually rotate itself back to where it wants.


Code:
BEGIN_DESC
Deltaglider in LEO ready for TLi burn.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 55723.7754137836
END_ENVIRONMENT

BEGIN_FOCUS
  Ship GL-Earth
END_FOCUS

BEGIN_CAMERA
  TARGET GL-Earth
  MODE Cockpit
  FOV 50.00
END_CAMERA

BEGIN_HUD
  TYPE Orbit
  REF AUTO
END_HUD

BEGIN_MFD Left
  TYPE User
  MODE TransX
  Ship  GL-Earth
  FNumber 2
  Int 0
  Orbit True
  Vector  4906556.54733 410766.934575 4332446.81509
  Vector  -5128.00292497 -546.337468282 5858.166644
  Double  3.98600439969e+014
  Double  55723.7753848
  Handle Earth
  Handle NULL
  Handle Moon
Select Target
 0 Moon
Autoplan
0 0
Plan type
0 0
Plan
0 0
Plan
0 0
Plan
0 0
Select Minor
 0 None
Manoeuvre mode
0 1
Auto-Center™
0 0
Base Orbit
0 0
Prograde vel.
 4  3131.78652186
Man. date
 7  55723.7825501
Outward vel.
 1  0
Ch. plane vel.
 1  0
Intercept with
0 0
Orbits to Icept
0 0
Graph projection
0 0
Scale to view
0 0
Advanced
0 0
Finvars
  Finish BaseFunction
  Int 5
  Orbit True
  Vector  368652624.768 33167042.9406 50389951.7719
  Vector  -898.430697088 -80.6079082106 -135.190316214
  Double  4.90279493298e+012
  Double  55722.7777232
  Handle Moon
  Handle NULL
  Handle NULL
Select Target
 0 None
Autoplan
0 0
Plan type
0 1
Plan
0 0
Plan
0 2
Plan
0 0
Select Minor
 0 None
Manoeuvre mode
0 0
Auto-Center™
0 0
Base Orbit
0 0
Prograde vel.
 1  0
Man. date
 1  55723.7754126
Outward vel.
 1  0
Ch. plane vel.
 1  0
Intercept with
0 0
Orbits to Icept
0 0
Graph projection
0 0
Scale to view
0 0
Advanced
0 0
Draw Base
0 0
Finvars
  Finish BaseFunction
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE TransX
END_MFD

BEGIN_SHIPS
GL-Earth:DeltaGlider
  STATUS Orbiting Earth
  RPOS 4893714.08 409399.17 4347073.96
  RVEL -5145.326 -547.808 5842.815
  AROT -0.79 20.09 -5.06
  RCSMODE 2
  PRPLEVEL 0:0.554057 1:0.993709
  NAVFREQ 166 484 0 0
  XPDR 0
  TRIM 0.033887
  AAP 0:0 0:0 0:0
END
END_SHIPS

BEGIN_ExtMFD
END
 

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?
Thanks for testing. I see it. All I can say is that it works only if you disable the Man mode in the target view. Not much of a change then, isn't it?

The long story is, that it could work differently: the Auto-Center could work only if the Target View was enabled, but this would have an another side effect - if you only had an another TransX window open (like Encounter MFD for verification), then the Auto-Center wouldn't work, because the other window would overwrite the first one's variables, including the Auto-Center settings. The same goes for disabling Man mode in other modes (like you did) - you're trying to disable it from a different view. If I let you do this, you couldn't verify the burn in other windows.

We have a decision to make then
- either we leave it as it is and provide support for people who don't disable the Auto-Center properly - I'm in for it
- I change it, we get a robust operation, but miss the verification in other windows - What's life without art?

Now we see why Agentgonzo said that TransX was meant to work only as a display-only MFD :lol:
 

blixel

Donator
Donator
Joined
Jun 29, 2010
Messages
647
Reaction score
0
Points
16
We have a decision to make then
- either we leave it as it is and provide support for people who don't disable the Auto-Center properly - I'm in for it

It's fine the way it is. People just have to remember to shut off Auto-Center after the burn is complete. No big deal. I just wish it didn't completely destroy the flight if you forget.

EDIT: Also, I didn't know it would work if you turn Maneuver mode off from inside of Target view. I haven't tested that. When you're in Target view, there are *so many variables* that I find it faster to switch to Maneuver view and turn Maneuver mode off from there. Perhaps someday you can make it so that only relevant variables show up in Target view instead of showing the entire list.
 
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?
Perhaps someday you can make it so that only relevant variables show up in Target view instead of showing the entire list.
Maybe, but people generally have to understand that it's no fun to fix somebody else's bugs, or trying to understand what author had on his mind when he wrote this or that portion of code. Normally this pain costs money. It's much more fun to work on your own project, with use of 3rd party encapsulated libraries. So the fun I had with TransX was implementing my own ideas, without touching the internals too much. I succeeded and I think that this is where my interest starts waning.
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
...People just have to remember to shut off Auto-Center after the burn is complete. No big deal. I just wish it didn't completely destroy the flight if you forget...
Couldn't we have an on-screen flashing reminder then?
Something triggered by "if dV less than x AND throttles at idle then...".
 

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?
Last edited:

sorindafabico

New member
Joined
Mar 23, 2011
Messages
1,231
Reaction score
1
Points
0
Location
Porto Alegre
Maybe it's already implemented and I don't know, but I have an idea: what do you think about implement deep space maneuvers between gravity assists (like those of MESSENGER) when user is planning the mission? Is it feasible?
 

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?
Couldn't we have an on-screen flashing reminder then?
Finally I've found a compromising solution. As always, it took only a few lines of code, but a significant increase in activity of my demotivated grey mass :lol:
Please check the attached dll.

Maybe it's already implemented and I don't know, but I have an idea: what do you think about implement deep space maneuvers between gravity assists (like those of MESSENGER) when user is planning the mission? Is it feasible?
I have a family now, and slight financial problems - mostly living on the edge. I spend most of my free time trying to bring additional income. In this situation I consider my days of happy programming being gone... or simply not quite arrived yet until I sort out my things here. But anyway, if I'm supposed to code something now, it has to bring me fun, like the Auto-Min / Auto-Center features. Otherwise, it falls into the category of trying to read previous author's mind, and like I've already written two posts ago - it's a pain.
 

Attachments

  • TransX.dll.zip
    72.1 KB · Views: 13
Last edited:

Furet

Active member
Joined
Aug 7, 2011
Messages
199
Reaction score
55
Points
28
Location
France
...I consider my days of happy programming being gone... or simply not quite arrived yet until I sort out my things here.

Thank you so much for what you've done so far. I sincereley wish you the best for the real life...
:tiphat:
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
I don't know if I've found a real bug in TransX (the latest version released on OH), but it looks strange at least.

I'm in LEO after setting up a flight to Venus, and I'm switching back and forth between Stage 1 and 2.
If Stage1 is on "Setup" or "Escape Plan" views, when I switch forward to Stage2 I have the correct views (2 of them actually).
If Stage1 is on "Manoeuvre" view and I switch forward to Stage2, I am still in "Manoeuvre" view.
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
This is what I mean:

E5XNNE0.png


I've just switched the left TransX from Stage1 to Stage2 (while being on Stage1's Manoeuvre mode).
If I click on VW (on the left TransX) I get "Setup" and "Eject Plane".


It does the same starting from scratch, too:

EkB3g6n.png


---------- Post added at 17:15 ---------- Previous post was at 17:06 ----------

...the latest version released on OH...
Wait!
I saw only 1 minute ago that Enjo just updated it...
 
Last edited:
Top