Orbiter-Forum  

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

Addon Requests If you have a request for a new addon or want to know where to find a specific addon, ask it here!

Reply
 
Thread Tools
Old 07-21-2019, 01:03 PM   #16
gattispilot
Addon Developer
 
gattispilot's Avatar
Default


then i created the vessel:


So I entered a Deltaglider sc3 and the same result as far as flight dynamics. I will make a dll but need thrust values.

---------- Post added at 12:35 PM ---------- Previous post was at 10:48 AM ----------

So here is a dll version major issues. Apply a little hover and zooms into space
https://drive.google.com/open?id=10x...xhsbKxGXRtrqr4

Code:
void DFTITAN::clbkSetClassCaps(FILEHANDLE cfg)
{
	

	SetSize(3);
	
	SetEmptyMass(450);
	SetPMI(_V(1.84, 0.85, 1.18));
	SetCrossSections(_V(2.26, 4.05, 1.10));
	// ==============================================================
	SetCW(0.3, 0.3, .3, .3);
	SetRotDrag(_V(0.7, 0.7, 1.2));
	SetPitchMomentScale(0);
	SetYawMomentScale(0);
	SetLiftCoeffFunc(0);
	SetCameraOffset(_V(0, 1, 1.6));
	SetTouchdownPoints(tdvtx_geardown, ntdvtx_geardown);

	SetMeshVisibilityMode(AddMesh(oapiLoadMeshGlobal("DRAGONFLYTITAN")), MESHVIS_ALWAYS); //Main ship mesh
	ph_main = CreatePropellantResource(FUELMASS);

	th_hover[0] = CreateThruster(_V(6, 0, 10), _V(0, 1, 0), .1 / 4, ph_main, JET_ISP);
	th_hover[1] = CreateThruster(_V(-6, 0, 10), _V(0, 1, 0), .1 / 4, ph_main, JET_ISP);
	th_hover[2] = CreateThruster(_V(6, 0, -10), _V(0, 1, 0), .1 / 4, ph_main, JET_ISP);
	th_hover[3] = CreateThruster(_V(-6, 0, -10), _V(0, 1, 0), .1 / 4, ph_main, JET_ISP);

	thg_hover = CreateThrusterGroup(th_hover, 4, THGROUP_HOVER);


	
	


}
Code:
const double FUELMASS = 10;
const double JET_THRUST = .01;
const double JET_ISP = 45.0*G;


---------- Post added 07-21-19 at 08:03 AM ---------- Previous post was 07-20-19 at 12:35 PM ----------

So I still am having issues flying her. I wonder if it would better to move the craft versus using thrust?

So press a key and the craft moves forward release the key the craft stops. I think I can do this but not sure on the altitude change?

Last edited by gattispilot; 07-20-2019 at 04:31 PM.
gattispilot is online now   Reply With Quote
Thanked by:
Old 07-21-2019, 06:34 PM   #17
Jeremyxxx
Orbinaut
Default

Someone needs to do a Titan terrain.
Jeremyxxx is offline   Reply With Quote
Old 07-22-2019, 10:32 AM   #18
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So I am trying to raise/lower the mesh for height.
But I am getting weird values for the height.

Code:
int LER2016::clbkConsumeDirectKey(char *kstate) {

//	if (!firstTimestepDone) return 0;

	
	 if (KEYDOWN(kstate, OAPI_KEY_SUBTRACT)) {
		//pEngine->DecreaseTgtSpeed(down);
		 { //FORWARDgear = 0;
		// REVERSEgear = 1;
		// neutralgear = 0;
		// LASTGEAR = 0;
		// LASTGEAR = 2;
			double dv = 0.1;
			targetSpeed = (targetSpeed - dv);
			if (targetSpeed <0) targetSpeed = 0;
			//SetAnimation(anim_SPEEDCONTROL, targetSpeed);
			//decreaseTgtSpeed = down;
			//increaseTgtSpeed = false;
		}
		return 0;
	}
	else if  (KEYDOWN(kstate, OAPI_KEY_ADD)) {
		//FORWARDgear = 1;
		//REVERSEgear = 0;
		//neutralgear = 0;
		//LASTGEAR = 0;
		double dv = 0.1;
		//LASTGEAR = 1;
		targetSpeed = (targetSpeed + dv);
		if (targetSpeed > MAXSPEED) targetSpeed = MAXSPEED;
		return 0;
	}
	
	else if (KEYDOWN(kstate, OAPI_KEY_NUMPAD4)) {
		TURN_proc = 90;
				FORWARDgear = 0;
				REVERSEgear = 0;
		//		neutralgear = 1;
		sidegear = 1;
		return 0;
	}
	else if (KEYDOWN(kstate, OAPI_KEY_NUMPAD8)) {
		
				FORWARDgear = 1;
				REVERSEgear = 0;
				neutralgear = 0;
				sidegear = 0;
		return 0;
	}
	else if (KEYDOWN(kstate, OAPI_KEY_NUMPAD2)) {

		FORWARDgear = 0;
		REVERSEgear = 1;
		neutralgear = 0;
		sidegear = 0;
		return 0;
	}
	else if (KEYDOWN(kstate, OAPI_KEY_NUMPAD7)) {

		FORWARDgear = 0;
		REVERSEgear = 0;
		neutralgear = 0;
		sidegear = 0;
		MOVEUP = 1;
		double dh = 0.1;
		height = (height + dh);
		return 0;
	}
	else if (KEYDOWN(kstate, OAPI_KEY_NUMPAD9)) {

		FORWARDgear = 0;
		REVERSEgear = 0;
		neutralgear = 0;
		sidegear = 0;
		MOVEUP = 0;
		MOVEdown = 1;
		double dh = 0.1;
		height = (height - dh);
		
		return 0;
	}
	FORWARDgear = 0;
	REVERSEgear = 0;
	MOVEUP = 0;
	MOVEdown = 0;
	sidegear = 0;
	
	
	
	return 0;
}
initialize:
Code:
height = 0;
Code:
if (MOVEUP==1)
		 {
			 ShiftMesh(0, _V(0, height, 0));
		 }
		if (MOVEdown == 1)
		{
			ShiftMesh(0, _V(0, height, 0));
		}
mesh moves up but not down?

fixed the height value. But not sure how to move the mesh smoothly up/down.

Last edited by gattispilot; 07-22-2019 at 12:14 PM.
gattispilot is online now   Reply With Quote
Old 07-23-2019, 04:04 PM   #19
Jeremyxxx
Orbinaut
Default

I'm sure that the Dragonfly would have to be carried by a cruising spacecraft that would fly by Saturn.
Jeremyxxx is offline   Reply With Quote
Old 07-24-2019, 02:49 AM   #20
Gargantua2024
Orbinaut
Default

Quote:
Originally Posted by Jeremyxxx View Post
 I'm sure that the Dragonfly would have to be carried by a cruising spacecraft that would fly by Saturn.
Yes it would be! However, JPL hasn't released its planned trajectory to Saturn yet (2026-2034)



...even its launch vehicle, but we can safely assume it will be launched from either of these rockets:

1. Space Launch System (Block 1B or 2)
2. Super Heavy-Starship (BFR)
3. Angara A5
4. Ariane 64
5. Vulcan
6. New Glenn
7. Yenisei


Delta IV and Atlas V might retire by 2025, and if Starship is operational, Falcon Heavy is out of the question too
Gargantua2024 is offline   Reply With Quote
Old 07-24-2019, 01:59 PM   #21
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Got her to fly better


One issue is I am shifting the mesh up/down . Not sure if you can change the Y pos. So in external view the mesh may be above and so you have to zoom out.
gattispilot is online now   Reply With Quote
Thanked by:
Old 07-26-2019, 12:03 PM   #22
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Try this:
https://drive.google.com/open?id=1kW...Egi5YwoCF3IpNj

G starts the blades spinning.
3 raises the HGA
1/2 rotate the HGA

Keypad 7/9 raise/lower
+/- increase/decrease throttle
8/2 forward/lower
4/6 side travel

So to move forward increase the throttle + speed is on the HUD. the press and hold 8 and the craft will move forward. when you release the key the craft will stop moving forward
gattispilot is online now   Reply With Quote
Thanked by:
Old 07-26-2019, 01:23 PM   #23
barrygolden
Orbinaut
 
barrygolden's Avatar
Default

Hey John way cool and I do like the controls, easy to fly around and land. While your having a go at this it would be nice to see the one planned for Mars 2020 and have it fly the same way. I think it was just a box the a single counter rotating blade system and small landing legs.
barrygolden is offline   Reply With Quote
Thanked by:
Old 07-27-2019, 12:20 PM   #24
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So like this:
gattispilot is online now   Reply With Quote
Old 07-27-2019, 12:48 PM   #25
barrygolden
Orbinaut
 
barrygolden's Avatar
Default

yes that it
barrygolden is offline   Reply With Quote
Old 07-28-2019, 10:59 AM   #26
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Here is the Marscopter2020.
https://drive.google.com/open?id=1Hc...Ha5M_rPjvXbtgY

So one issue.
The camera view from below seem to be the same as the horizon one?


Code:
void MARSCOPTER2020::SelectCockpitView(int CAM) {
	switch (CAM) {
	case 0: //FRONT
		SetCameraDefaultDirection(_V(0, 0, 1));
		SetCameraOffset(_V(0, height+1, 3.121));
		oapiCameraSetCockpitDir(0, 0);
		break;
	case 1: //bottom
		SetCameraDefaultDirection(_V(0, 1, 0));
		SetCameraOffset(_V(0, height, 0));
		oapiCameraSetCockpitDir(0, 0);
		break;
	
	}
}


Looked at vs2. To see if there is a way to change the altitude. I shift the mesh

Last edited by gattispilot; 07-28-2019 at 11:59 AM.
gattispilot is online now   Reply With Quote
Old 07-31-2019, 10:28 AM   #27
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So tried adding hover to the dragonfly and when I apply the thrust it ctds.
Code:
ph_main = CreatePropellantResource(FUELMASS);
	th_hover[0] = CreateThruster(_V(5, 0, 5), _V(0, 1, 0), 100 / 4, ph_main, RCS_ISP);
	th_hover[1] = CreateThruster(_V(-5, 0, 5), _V(0, 1, 0), 100 / 4, ph_main, RCS_ISP);
	th_hover[2] = CreateThruster(_V(5, 0, -5), _V(0, 1, 0), 100 / 4, ph_main, RCS_ISP);
	th_hover[3] = CreateThruster(_V(-5, 0, -5), _V(0, 1, 0), 100 / 4, ph_main, RCS_ISP);

	
	thg_hover = CreateThrusterGroup(th_hover, 4, THGROUP_HOVER);

the scn:
Code:
df:DRAGONFLYTITAN
  HGAROT 0.5000
  HGA 0 0.0000
  STATUS Landed Mars
  POS -135.4300000 12.7400000
  HEADING 315.60
  ALT 0.000
  AROT 48.850 22.257 -48.659
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  XPDR 468
END
END_SHIPS
so maybe hover can not be used?
gattispilot is online now   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Requests


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 10:56 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.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.