Scenario Separating multiple spacecraft3 based vessels attached to each other

Cosmic Penguin

Geek Penguin in GTO
News Reporter
Donator
Joined
Jan 27, 2011
Messages
3,672
Reaction score
3
Points
63
Location
Hong Kong
Well, it looks like that after years of playing with Orbiter, I still have very basic questions in scenario creation.....

Anyway, here is a scenario with 2 spacecraft linked together by attaching one to the other, both based on spacecraft3.dll, and in turn attached as a payload to the Falcon 9 rocket by BrianJ:

Code:
BEGIN_DESC

END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 57083.152778
END_ENVIRONMENT

BEGIN_FOCUS
  Ship Falcon9
END_FOCUS

BEGIN_CAMERA
  TARGET Falcon9
  MODE Extern
  POS 3.97 60.23 33.32
  TRACKMODE Ground Earth
  GROUNDLOCATION -80.57857 28.56044 12.26
  FOV 40.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Surface
  SPDMODE 1
END_MFD

BEGIN_MFD Right
  TYPE Map
  REF Earth
  BTARGET Habana
  POS 0.00 0.00
END_MFD

BEGIN_SHIPS
SLC40:Falcon9R/slc40r
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 10.00
  AFCMODE 7
  PRPLEVEL 0:1.000000 1:1.000000
  NAVFREQ 0 0
  PST 0.00 0.00
  TOWER 3 0.00
END
Eutelsat115WB:Beta\Eutelsat115WB
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 23.64
  ATTACHED 0:0,Falcon9
  AFCMODE 7
  PRPLEVEL 0:1.00000
  NAVFREQ 0 0
END
ABS-3A:Beta\ABS-3A
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 23.64
  ATTACHED 0:1,Eutelsat115WB
  AFCMODE 7
  PRPLEVEL 0:1.00000
  NAVFREQ 0 0
END
Falcon9:Falcon9R\f9
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 10.00
  ATTACHED 0:0,SLC40
  AFCMODE 7
  PRPLEVEL 0:1.000000 1:1.000000 2:1.000000
  NAVFREQ 0 0
  FAIRS 0
  SOST 0 0 0 0 0
  SOPR -0.5000 175000.0000 950000.0000 00000.0 120000.000 NULL
END
END_SHIPS

BEGIN_ExtMFD
END

The 2 spacecraft are each defined by a configuration file that points to a .ini file:

Code:
ClassName = Eutelsat115WB
Module = spacecraft3

BEGIN_ATTACHMENT
P 0 0 -1.22  0 0 -1  0 1 0  F9
C 0 0 1.50  0 0 1  0 1 0   Sat
END_ATTACHMENT

Code:
ClassName = ABS-3A
Module = spacecraft3

BEGIN_ATTACHMENT
P 0 0 -1.22  0 0 -1  0 1 0  F9
C 0 0 1.50  0 0 1  0 1 0   Sat
END_ATTACHMENT

Code:
[TEXTURE_LIST]
TEX_1=Exhaust_atrcs

[CONFIG]
MESHNAME="Falcon9R/cassiope"
SIZE=2.0
EMPTY_MASS=1000
FUEL_MASS=1000.00 
ISP=2000
ATTITUDE_THRUST=50
PMI=(3.61,5.62,3.85)
CROSS_SECTION=(4.0,4.0,6.0)
ATT_TEX=Exhaust_atrcs

[PARENT_ATTACH_0]
POS=(0,0,-1.22)
DIR=(0,0,-1)
ROT=(0,1,0)

[CHILD_ATTACH_1] 
NAME=Sat
POS=(0,0,1.5)
DIR=(0,0,1)
ROT=(0,1,0)
RANGE=1

Code:
[TEXTURE_LIST]
TEX_1=Exhaust_atrcs

[CONFIG]
MESHNAME="Falcon9R/cassiope"
SIZE=2.0
EMPTY_MASS=1000
FUEL_MASS=1000.00 
ISP=2000
ATTITUDE_THRUST=50
PMI=(3.61,5.62,3.85)
CROSS_SECTION=(4.0,4.0,6.0)
ATT_TEX=Exhaust_atrcs

[PARENT_ATTACH_0]
POS=(0,0,-1.22)
DIR=(0,0,-1)
ROT=(0,1,0)

[CHILD_ATTACH_1] 
NAME=Sat
POS=(0,0,1.5)
DIR=(0,0,1)
ROT=(0,1,0)
RANGE=1

I was able to separate the 2 vessels as a whole after launch, but I was unable to separate the 2 vessels from each other. I am sure there is a problem with defining the attachment points, but I was unable to find the cause. Can anyone try and see how could I separate them (or even better, separate ABS-3A on the top of the stack away while the lower vessel Eutelsat115WB stays connected to the F9 2nd stage)? Thanks! :tiphat:
 
Have you tried deleting the "ABS-3A...END" entry from the scenario? It should work.
 
Have you tried deleting the "ABS-3A...END" entry from the scenario? It should work.

I don't think that worked.

This one worked though, using spacecraft3.dll's internal parent/child attachment system:

Code:
BEGIN_DESC

END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 57083.152778
END_ENVIRONMENT

BEGIN_FOCUS
  Ship Falcon9
END_FOCUS

BEGIN_CAMERA
  TARGET Falcon9
  MODE Extern
  POS 3.97 60.23 33.32
  TRACKMODE Ground Earth
  GROUNDLOCATION -80.57857 28.56044 12.26
  FOV 40.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Surface
  SPDMODE 1
END_MFD

BEGIN_MFD Right
  TYPE Map
  REF Earth
  BTARGET Habana
  POS 0.00 0.00
END_MFD

BEGIN_SHIPS
SLC40:Falcon9R/slc40r
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 10.00
  AFCMODE 7
  PRPLEVEL 0:1.000000 1:1.000000
  NAVFREQ 0 0
  PST 0.00 0.00
  TOWER 3 0.00
END
Eutelsat115WB:Beta\Eutelsat115WB
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 23.64
  ATTACHED 0:0,Falcon9
  AFCMODE 7
  PRPLEVEL 0:1.00000
  NAVFREQ 0 0
END
ABS-3A:Beta\ABS-3A
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 23.64
  ATTACHED 0:0,Eutelsat115WB
  AFCMODE 7
  PRPLEVEL 0:1.00000
  NAVFREQ 0 0
END
Falcon9:Falcon9R\f9
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 10.00
  ATTACHED 0:0,SLC40
  AFCMODE 7
  PRPLEVEL 0:1.000000 1:1.000000 2:1.000000
  NAVFREQ 0 0
  FAIRS 0
  SOST 0 0 0 0 0
  SOPR -0.5000 175000.0000 950000.0000 00000.0 120000.000 NULL
END
END_SHIPS

BEGIN_ExtMFD
END

Code:
ClassName = Eutelsat115WB
Module = spacecraft3

Code:
ClassName = ABS-3A
Module = spacecraft3

(Eutelsat115WB)

Code:
[TEXTURE_LIST]
TEX_1=Exhaust_atrcs

[CONFIG]
MESHNAME="Falcon9R/cassiope"
SIZE=2.0
EMPTY_MASS=1000
FUEL_MASS=1000.00 
ISP=2000
ATTITUDE_THRUST=50
PMI=(3.61,5.62,3.85)
CROSS_SECTION=(4.0,4.0,6.0)
ATT_TEX=Exhaust_atrcs

[PARENT_ATTACH_0]
POS=(0,0,-1.22)
DIR=(0,0,-1)
ROT=(0,1,0)

[CHILD_ATTACH_0]
POS=(0,0,1.5)
DIR=(0,0,1)
ROT=(0,1,0)

(ABS-3A)

Code:
[TEXTURE_LIST]
TEX_1=Exhaust_atrcs

[CONFIG]
MESHNAME="Falcon9R/cassiope"
SIZE=2.0
EMPTY_MASS=1000
FUEL_MASS=1000.00 
ISP=2000
ATTITUDE_THRUST=50
PMI=(3.61,5.62,3.85)
CROSS_SECTION=(4.0,4.0,6.0)
ATT_TEX=Exhaust_atrcs

[PARENT_ATTACH_0]
POS=(0,0,-1.22)
DIR=(0,0,-1)
ROT=(0,1,0)

[CHILD_ATTACH_0]
POS=(0,0,1.5)
DIR=(0,0,1)
ROT=(0,1,0)

The only problem is that I wanted to detach the two satellites at an automatic speed exerted between them, instead of having to use the RCS of one of them to do so. Anyone knows how to do it?
 
The only problem is that I wanted to detach the two satellites at an automatic speed exerted between them, instead of having to use the RCS of one of them to do so. Anyone knows how to do it?
Not possible with SC3. You have to use the RCS.
 
I'd found ReleaseMFD in a few of Greg Burch's addons. It works to separate SC3 craft, but I don't know if in your case they would separate and one would gain and distance over the other.
 
I'd found ReleaseMFD in a few of Greg Burch's addons. It works to separate SC3 craft, but I don't know if in your case they would separate and one would gain and distance over the other.

ReleaseMeMFD was done to let you detach a child attachment while focusing the child object. It just calls VESSEL::DetachChild(ATTACHMENTHANDLE) on the parent of the child without specifying a velocity. I could add this parameter to the MFD if really needed.

But what about adding such a feature to genericvessel?
 
ReleaseMeMFD was done to let you detach a child attachment while focusing the child object. It just calls VESSEL::DetachChild(ATTACHMENTHANDLE) on the parent of the child without specifying a velocity. I could add this parameter to the MFD if really needed.

But what about adding such a feature to genericvessel?

That would be great. A built in attachment manager, that could attach and unattach to another vessel and choose which attachment point.
 
I have put a basic issue description for this enhancement into the issue tracker of the genericvessel project here: http://bitbucket.org/face/genericvessel/issues

If you have anything to add or clarify, please feel free to comment or add any item there (should be possible with anonymous access, too).
 
Back
Top