Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Support & Bugs > Addon Developer Forums > Sputnik's Addons
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Sputnik's Addons Support & discussions for all addons released by Sputnik.

Reply
 
Thread Tools
Old 11-09-2014, 11:05 PM   #166
Donamy
Beta Tester


Default

This one :

Code:
ATTACHED 0:1,ATV
Donamy is offline   Reply With Quote
Old 02-07-2015, 01:52 PM   #167
Michael_Chr
Orbinaut
 
Michael_Chr's Avatar
Default

Working on a lunar lander project where the hover engine is the main landing engine. I was adding a velcro droptank using the "crossfeed" statement. It appears that if the engine drawing from the tank that the velcro tank crossfeeds to is a hover engine then velcro will not crossfeed. Tried the "DG with two dropstanks" scenario that comes with Velcro 1.1 and confirmed this behavior.
----- Edit-----
Think I cracked it.
If the vessel in question is a Spacecraft3 vessel then make sure to add a "MAIN_THRUST=xxx" line in the config file. XXX doesn't have to be a great value if you dont plan to use main engine. Before entering the scenario.. make sure that the fueltank you need to draw from (that the velcro tanks crossfeed to) is filled up (scenario file says PRPLEVEL X:1.00000 where X is the tank you crossfeed to). After starting the scenario...before using the hover engine...engage the main engine shortly and verify that fuel is drawn from the right tank (Refuel MFD is helper).
This procedure helped me.

Last edited by Michael_Chr; 02-07-2015 at 02:44 PM. Reason: Identified a workaround if crossfeed fails.
Michael_Chr is offline   Reply With Quote
Thanked by:
Old 02-27-2015, 12:45 PM   #168
Michael_Chr
Orbinaut
 
Michael_Chr's Avatar
Default Abnormal spinrate at jettison using seriesburn

Upon jettison I have experienced the vessel being jettisoned receives an extreme pitch, roll and yaw rate. I'm using seriesburn statement of a third-stage Velcro vessel that carries another vessel that is - after TLI - supposed to be gently jettisoned and then be on its own.

However as mentioned is immediately develops and uncontrollable spinrate

I have tried various Velcro options as per the Velcro manual but the only one that seems to have an effect is spintable whereby it gets a small amount of rate around the X-axis that I can recover from. But still far from desirable. How does spintable command works...is it a vector or can a spin only be applied in one direction. if I set spintable to 0.01 is seems as if the spintable option is ignored?

Anybody else with experience in this area or ideas to share

Best regards
Michael

Code:
BEGIN_DESC

END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 40420.4146313561
END_ENVIRONMENT

BEGIN_FOCUS
  Ship 1-Stg-3
END_FOCUS

BEGIN_CAMERA
  TARGET 1-Stg-3
  MODE Extern
  POS 2.00 128.10 -9.84
  TRACKMODE TargetRelative
  FOV 50.00
END_CAMERA

BEGIN_HUD
  TYPE Orbit
  REF AUTO
END_HUD

BEGIN_MFD Left
  TYPE User
  MODE Interplanetary
END_MFD

BEGIN_MFD Right
  TYPE User
  MODE LunarTransferMFD
  DataA1 2 0 0 0 1 0 -1 0
  DataB1 1853000 40423.45194917113 4.71238898038469 0 0 0
  DataB2 40423.50194917113 40420.41175959089 40420.3441916442 0 120000 0
  DataB3 0 0 0 0
END_MFD

BEGIN_SHIPS
1-Stg-3:Velcro/neptune_cfg/Neptune_Stg3_short
  STATUS Orbiting Earth
  RPOS 5086375.86 389437.95 4359093.79
  RVEL -5888.544 569.885 9067.624
  AROT 0.85 22.97 -1.92
  AFCMODE 7
  PRPLEVEL 0:0.01
  THLEVEL 17:0.000000 18:0.000000
  NAVFREQ 0 0
  CONFIGURATION 0
  PRIMEBOOSTER 0
  CENTERTHRUST 0
  ROLLATT 1
  IGNITENEXT 0
  COUNTINGDOWN 1
  SPINTABLE 0.1
  JETT_ON_MECO 0
  JETT_ON_EMPTY 0
  PADBIAS 1.000000
  CAMERA 0.000000 0.000000 62.000000
  TGT_HEADING 82.000000
  SERIESBURN 0 HydraGV 0.0000 -0.8000 -4.6000 0.0000 0.0000 -1.0000 0.0000 1.0000 0.0000
  PAYLOAD Stg-3_Intstage hydra\Hydra_Interstage_low Hydra_Interstage_low -0.00 0.80 19.15 1800.00 0.00 0.00
END
HydraGV:Spacecraft/spacecraft3
  STATUS Orbiting Earth
  RPOS 5086368.36 389439.01 4359111.41
  RVEL -5889.324 569.912 9069.465
  AROT 0.85 22.97 -1.92
  ATTACHED 0:0,1-Stg-3
  AFCMODE 7
  PRPLEVEL 0:1.000000
  IDS 0:391 100
  NAVFREQ 0 0 0 0
  XPDR 0
  RCS 1
  CTRL_SURFACE 1
  CONFIGURATION 1
  CURRENT_PAYLOAD 0
  SEQ 0 2 0.9995
  SEQ 1 -2 0.0000
  SEQ 2 -2 0.0000
  SEQ 3 2 0.9997
  SEQ 4 -2 0.0000
END
END_SHIPS

BEGIN_ReFuelMFD
  SCENARIO_TREE 
    NAMED Computers
    END_NODE 
  END_NODE 
END

BEGIN_uap
END

BEGIN_Attachment Manager
END
Michael_Chr is offline   Reply With Quote
Old 09-21-2016, 07:08 PM   #169
mike-c
Orbinaut
Question Velcro.dll rebuild

To get some Boosters flying i just tried to rebuild Velcro - from sources provided in the distribution - in orbiter2016 Environment.
Set references to cvellib and OrbiterSoundSDK40.

But the Compiler kept complaining about some "guidance.h" not found.
Does anyone know, what library is missing here?

Thanks in advance
mike-c is offline   Reply With Quote
Old 09-21-2016, 10:24 PM   #170
boogabooga
Bug Crusher
 
boogabooga's Avatar
Default

I suspect that there will be big issues with the touchdown points in Orbiter 2016 anyway.
boogabooga is offline   Reply With Quote
Thanked by:
Old 09-22-2016, 02:33 AM   #171
turtle91
Orbinaut
Default

Maybe this could help, the header is still downloadable.

http://orbiter-forum.com/showthread.php?t=35222
turtle91 is offline   Reply With Quote
Thanked by:
Old 09-22-2016, 07:46 PM   #172
mike-c
Orbinaut
Default

Quote:
Originally Posted by turtle91 View Post
 Maybe this could help, the header is still downloadable.
It helped
(now the linkers complains about cvel.lib - must wait until (next free) Weekend)
mike-c is offline   Reply With Quote
Thanked by:
Old 10-03-2016, 07:25 PM   #173
mike-c
Orbinaut
Default quick-and-dirty patch for 2016

With permission from sputnik i hand this one to the commnity.

Because for getting into fligth and explore Orbiter2016's beautiful new landscapes, i needed a rocket .

Plain Installation of Velcro-Rockets in orbiter2016 left those rockets non functional.

I could build Velcro.dll with vc++2010, but had to recompile cvel.lib first.
Refs to orbitersound40 must also be set for build.

After that i could start an example Scenario and the rocket showed up at the launchpad but tipped over right at engine ignition - as expected.

After adding:
Code:
void VELCRO::LoadState(  FILEHANDLE scn, void *vs )
{
...
	static const DWORD ntdvtx = 4;

	if (padbias != 0.0) {
		VECTOR3 currTD1, currTD2, currTD3, currTD4;
		GetTouchdownPoints(currTD1, currTD2, currTD3);
		//SetTouchdownPoints(_V(currTD1.x,currTD1.y,currTD1.z+padbias), _V(currTD2.x,currTD2.y,currTD2.z+padbias), _V(currTD3.x,currTD3.y,currTD3.z+padbias));
		currTD1 = _V(currTD1.x,currTD1.y,currTD1.z+padbias);
		currTD2 = _V(currTD2.x,currTD2.y,currTD2.z+padbias);
		currTD3 = _V(currTD3.x,currTD3.y,currTD3.z+padbias);
		currTD4 = _V(0,0,padbias+10.0);

		static TOUCHDOWNVTX tdvtx[ntdvtx] = {
			{currTD1, 1e8, 1e6, 3, 1},
			{currTD2, 1e8, 1e6, 3, 1},
			{currTD3, 1e8, 1e6, 3, 1},
			{_V(0.0,0.0, 1.0), 1e8, 1e6, 3},
		};
		SetTouchdownPoints(tdvtx, ntdvtx);
	}

...
and
Code:
void VELCRO::SetAttachedStage( )
{

...

VECTOR3 currTD1, currTD2, currTD3, currTD4;
	GetTouchdownPoints(currTD1, currTD2, currTD3);
	if (PrimeBooster)
		//AtchV->SetTouchdownPoints (_V(currTD1.x,currTD1.y-0.01,currTD1.z-0.1-attach[chosenpoint].z+tgtpos.z+padbias), _V(currTD2.x,currTD2.y-0.01,currTD2.z-0.1-attach[chosenpoint].z+tgtpos.z+padbias), _V(currTD3.x,currTD3.y-0.01,currTD3.z-0.1-attach[chosenpoint].z+tgtpos.z+padbias));

		currTD1 = _V(currTD1.x,currTD1.y-0.01,currTD1.z-0.1-attach[chosenpoint].z+tgtpos.z+padbias);
		currTD2 = _V(currTD2.x,currTD2.y-0.01,currTD2.z-0.1-attach[chosenpoint].z+tgtpos.z+padbias);
		currTD3 = _V(currTD3.x,currTD3.y-0.01,currTD3.z-0.1-attach[chosenpoint].z+tgtpos.z+padbias);
		currTD4 = _V(0,0,-0.1-attach[chosenpoint].z+tgtpos.z+padbias+10.0);

		static const DWORD ntdvtx0 = 4;
		static TOUCHDOWNVTX tdvtx0[ntdvtx0] = {
			{currTD1, 1e8, 1e6, 3, 1},
			{currTD2, 1e8, 1e6, 3, 1},
			{currTD3, 1e8, 1e6, 3, 1},
			{_V(0.0,0.0, 1.0), 1e8, 1e6, 3},
		};
		AtchV->SetTouchdownPoints(tdvtx0, ntdvtx0);

...
similar,
the rocket was able to Launch after some trying with the material stiffness-param (1e8).


But the (stage).cfg's (in Config\Vessels\Velcro\*.cfg) have also to be edited, since the weight has to be loaded in equal parts on the first three touchdown-points or the rocked would not stand upright due to finite stiffnes of the ground. Defining These Point as an equal sided triangle, the z-axis right through the Center works.

example: AtlasVCore.cfg
Code:
; === Configuration file for vessel class Generic CVEL stage (Atlas V Core) ===

Module = Velcro
Meshname = Velcro/EELV/AtlasVCore
Size = 14.0

Mass = 22461 ; empty mass [kg]
MaxFuel = 284453 ; max fuel mass [kg]
Isp = 3319        ; fuel specific impulse [m/s]
IspSL = 3050.9

MaxMainThrust = 4153416.66
MaxRetroThrust = 0
MaxHoverThrust = 0
MaxAttitudeThrust = 12778
COG_OverGround = 4.0
CameraOffset = 0.0 0.0 17.0
CW = .2 .3 .7 .7
LiftFactor = 0.0
CrossSections = 30.0 30.0 16.0
RotResistance = 0.7 0.7 0.3
Touchdownpoints = 0 4.4 -16.778  3.81 -2.2 -16.778  -3.81 -2.2 -16.778

; === Attachment specs ===
BEGIN_ATTACHMENT
C  0.0 0.0 16.776      0 0 1  0 1 0  VELCRO1
C  1.9 0.0 0.0      0 0 1  -1 0 0  VELCRO2
P  0.0 0.0 16.776      0 0 1  0 1 0  VELCRO3
P  1.9 0.0 0.0      0 0 1  -1 0 0  VELCRO4
END_ATTACHMENT

; === Scenario-style inputs ===
THROTTLEBACK 49.05

; === Engine reference points ===
ExhaustType = KERO
MEngineRef1 = 0.707 0.707 -16.0
MEngineRef2 = -0.707 -0.707 -16.0
Giving a constant for touchdownpoint[3] is not a clean solution at all , i'm working on appropiate params in the (Vessel.cfg), maybe a
BEGIN_TD
x0 y0 z0 st0 dp0 frk0
......
END_TD
-construct

Anyway the patch worked for me. Let's name it ...

ScriptPB_to_Tranquility.scn
Code:
BEGIN_DESC
The Atlas 402 is tied for being the lightest Atlas V variant.  4-meter fairing but with 2-engine Centaur for LEO payloads.

Date 14 November 1969, launch time: 16:22 UT, azimut: 72.029 degrees.
yes!! AtlasV didn't exist in 1969, it is a test

You are 5 minutes 30 seconds before launch time.

END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 40539.678125
END_ENVIRONMENT

BEGIN_FOCUS
  Ship Atlas400
END_FOCUS

BEGIN_CAMERA
  TARGET Atlas400
  MODE Extern
  POS 9.73 -0.51 -123.30
  TRACKMODE TargetRelative
  FOV 50.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Surface
END_MFD

BEGIN_MFD Right
  TYPE Orbit
  PROJ Ship
  REF Earth
END_MFD

BEGIN_SHIPS
Atlas400:Velcro/AtlasVCore
  STATUS Landed Earth
  BASE Cape Canaveral:6
  HEADING 270.00
  TGT_HEADING 095.0
  FUEL 1.000
  CONFIGURATION 0
  MINPITCH 10.0
  CAMERA 0 0 50.0
  Fairing 2 2.0 0.0 -2.0 0.0
  PAYLOAD Int Velcro/Parts/At400Int Velcro/Parts/At400Int 0 0 0 0.1 0 0.0 1.0
  STAGE DECentaur Velcro/EELV/DECentaur Velcro/AtlasVDECentaur 0 0 20.75 22823.0 0.0 1.0
    PAYLOAD ScriptPB ShuttlePB ScriptPB 0 0 29.75 2000.0 0.0 1.0
  ENDSTAGE
  PAYLOAD Fair1 Velcro/Parts/AtlasfairV4_1 Velcro/Parts/AtlasfairV4_1 1.01 0 31.5 1043.5 0 0.0 1.0
  PAYLOAD Fair2 Velcro/Parts/AtlasfairV4_2 Velcro/Parts/AtlasfairV4_2 -1.01 0 31.5 1043.5 0 0.0 1.0

END
END_SHIPS
well.. wait.. this is must be added:

Config\Moon\Base\Tranquility.cfg
Code:
BASE-V2.0
Name = Tranquillity
Location = +23.4333  +0.6875
Size = 500
MapObjectsToSphere = TRUE

BEGIN_NAVBEACON
END_NAVBEACON

BEGIN_SURFTILELIST
END_SURFTILELIST

BEGIN_OBJECTLIST
END_OBJECTLIST
I had to still deal with instabilities of the second stage, but then with IMFD56 and PursuitMFD for 2016 the Mission went flawlessly


Earthrise.scn
Code:
BEGIN_DESC

END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 40543.2727027012
  Help CurrentState_img
END_ENVIRONMENT

BEGIN_FOCUS
  Ship ScriptPB
END_FOCUS

BEGIN_CAMERA
  TARGET ScriptPB
  MODE Cockpit
  FOV 20.37
END_CAMERA

BEGIN_HUD
  TYPE Orbit
  REF AUTO
END_HUD

BEGIN_SHIPS
Atlas400:Velcro/AtlasVCore
  STATUS Landed Earth
  POS -60.7893705 32.1392656
  HEADING 175.60
  ALT -16.851
  AROT -35.754 24.406 -109.599
  AFCMODE 7
  NAVFREQ 0 0
  CONFIGURATION 1
  PRIMEBOOSTER 1
  CENTERTHRUST 0
  THROTTLEBACK 49.050
  COUNTINGDOWN 1
  PADBIAS 1.000
  MINPITCH 10.000
  CAMERA 0.000 0.000 50.000
  TGT_HEADING 72.030
  PAYLOAD Int Velcro/Parts/At400Int Velcro/Parts/At400Int 0.00 0.00 0.00 0.10 0.00 0.00
END
Fair2:Velcro/Parts/AtlasfairV4_2
  STATUS Landed Earth
  POS -72.2703727 30.4812644
  HEADING 114.84
  ALT 1.996
  AROT -78.536 -68.324 134.723
  AFCMODE 7
END
Fair1:Velcro/Parts/AtlasfairV4_1
  STATUS Orbiting Sun
  RPOS 14266610786745840.000 30191006691097448.000 -19784680059416844.000
  RVEL 522336370404.4666 1105375376709.1365 -724375582535.5223
  AROT 0.000 -0.000 0.000
  AFCMODE 7
END
DECentaur:Velcro/AtlasVDECentaur
  STATUS Orbiting Sun
  RPOS 82755834991.236 60356129.755 122732751063.704
  RVEL 897658.2803 533263.2605 -149082.8731
  AROT -40.751 -58.595 127.414
  VROT 70.2891 4.4053 13.2670
  AFCMODE 7
  PRPLEVEL 0:0.073363
  NAVFREQ 0 0
  CONFIGURATION 1
  PRIMEBOOSTER 1
  CENTERTHRUST 0
  COUNTINGDOWN 1
  PADBIAS 1.000000
  TGT_HEADING 313.687894
END
ScriptPB:ScriptPB
  STATUS Orbiting Moon
  RPOS 152143.514 -441767.260 -1781240.585
  RVEL -1630.1868 41.3247 -134.6007
  AROT 24.857 77.384 -78.630
  AFCMODE 7
  PRPLEVEL 0:0.967663
  NAVFREQ 0 0
END
END_SHIPS

BEGIN_ExtMFD
END
mike-c is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Addons > Addon Support & Bugs > Addon Developer Forums > Sputnik's Addons


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 06:26 AM.

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 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.