Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Development Developers post news, updates, & discussions here about your projects in development.

Reply
 
Thread Tools
Old 04-30-2017, 09:49 PM   #346
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

EVA: The vessel will carry 1 MMU unit.



Then when you do an eva The mmu is manned.


Looking at Atlantis code. Haven't seen how the MMu get back int the Atlantis, though
gattispilot is offline   Reply With Quote
Old 05-03-2017, 11:00 AM   #347
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Ok a code issue.

I have 2 docks. one is the nose cone and the other is the mmu.
Code:
SetDockParams(_V(0, 0, 4.375), _V(0, 0, 1), _V(0, 1, 0));//NOSE DOCK0
SetDockParams(_V(0, 1.9, -1), _V(0, -1, 0), _V(0, 0, 1)); //eva DOCK1
So then if dock#1 is empty do an eva.
Code:
void TALON::SeparateMMU(void)
{
	if (HATCH_proc > .8){
	
	// Create MMU at docking port
	DOCKHANDLE hDock = GetDockHandle(1);
	if (GetDockStatus(hDock)) return; // something is already attached to this docking port

	int i;
	char name[256];
	OBJHANDLE hVessel;
	for (i = 0;; i++) {
		sprintf(name, "%s-MMU-%d", GetName(), i + 1);
		hVessel = oapiGetVesselByName(name);
		if (!hVessel) break;
	}

	VESSELSTATUS vs;
	EVA = 1;
	GetStatus(vs);
	hMMU = oapiCreateVessel(name, "Nasa_MMU", vs);
	Dock(hMMU, 0, 0, 1);
	SetMeshVisibilityMode(MMUMeshUINT, MESHVIS_NEVER);

	oapiSetFocusObject(hMMU);
	}
}
void TALON::ENTER_MMU(void)
{
	if ((HATCH_proc > .8)&&(EVA=1)){

		// Create MMU at docking port
		DOCKHANDLE hDock = GetDockHandle(1);
		if (GetDockStatus(hDock)) return; // something is already attached to this docking port

		for (DWORD i = 0; i < oapiGetVesselCount(); i++) {
			OBJHANDLE hV = oapiGetVesselByIndex(i);    //get handle for ship
			// if (strncmp (hV->GetVesselByName(), "OBLIVIONBIKE1", 12)!=0  ){
			OBJHANDLE Focusvessel = oapiGetVesselByName("TALON-MMU-1");


			oapiDeleteVessel(Focusvessel);
			SetMeshVisibilityMode(MMUMeshUINT, MESHVIS_EXTERNAL);
			EVA = 0;
			//oapiSetFocusObject(hMMU);
		}
	}
}
it all works. But when I do an eva. it shows the guy at dock 1 not dock 2.




Code:
TALON:TALON
  JOINT1 0.0000
  JOINT2 0.5000
  JOINT7 1.0000
  MODE 0
  HGA 1 1.0000
  HATCH 1 1.0000
  BEACON 0
  EVA 1
  STATUS Orbiting Earth
  RPOS 5380150.927 -0.022 4490841.213
  RVEL -4832.7491 -0.0000 5789.7766
  AROT -180.000 0.000 180.000
  AFCMODE 7
  PRPLEVEL 0:1.000000
  DOCKINFO 0:0,TALON-MMU-1
  NAVFREQ 0 0
  XPDR 0
END
TALON-MMU-1:Nasa_MMU
  STATUS Orbiting Earth
  RPOS 5380150.927 1.378 4490842.213
  RVEL -4832.7491 -0.0000 5789.7766
  AROT 90.000 -0.000 -0.000
  AFCMODE 7
  PRPLEVEL 0:1.000000
  DOCKINFO 0:0,TALON
  NAVFREQ 0 0
END
gattispilot is offline   Reply With Quote
Thanked by:
Old 06-21-2017, 10:46 AM   #348
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Well I think I finally got her off the Moon:


I think I saw something about a bug in KIll_rot though

Basically The eagle is orientated along the Z while the lander is along the y. But One fires the eagle sets kill-rot and switches to lander and detaches. But the kill_rot gets shut off. I may need to hard wire in?

We have gotten her launch on a Delta4 HVY and SLS.
gattispilot is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Addons > Addon Development

Tags
em1, hlv, orion mpcv, sls


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 03:29 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.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.