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 01-07-2019, 12:26 PM   #106
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Odd.
try these:
https://drive.google.com/open?id=1s1...zm6xrgWylcY2b4

it has 3 scenarios. 1 launch and 2 landed.

I found a long march 4 but it is in blender
https://drive.google.com/open?id=1vI...pubfsCkzkU0OTo

So I need to convert into meshes and make the rocket
on the satellite i think this will work.

launching will not be an issue it will be getting it into place.

I am going on vacation so I will be out of the loop for about a week
gattispilot is offline   Reply With Quote
Thanked by:
Old 01-08-2019, 12:05 AM   #107
4throck
Enthusiast !
 
4throck's Avatar
Default

Gave it a quick test and it's fun to fly! Thanks!

Only tested the rocket + lander

Main problems are:
- The current lander vessel orientation doesn't match the main engine. Prograde is switched with normal + . Perhaps it's better to define a hover engine ?
- Landing points are not good and it has brakes ? It tumbles when you try to land.

Nice to have:
- downward facing camera for the landing
- lander deck camera


I've converted the Blender meshes into Orbiter format, will send them to you by mail tomorrow
You will need to reapply textures, for some reason they didn't export.
4throck is offline   Reply With Quote
Old 01-08-2019, 03:08 AM   #108
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So on the landing gear
Code:
const double totalweight = MASS + FUELMASS ;
const double xtx_target = -0.1;
const double xtst = (-1)*(totalweight*9.80655) / (3 * xtx_target);
const double xtda = 0.9*(2 * sqrt(totalweight*xtst));

static const DWORD ntdvtx_geardown = 4;
static TOUCHDOWNVTX tdvtx_geardown[ntdvtx_geardown] = {
	{ _V(-4, -3.28, -4), xtst, xtda, 30.0, 30 },
	{ _V(4, -3.28, -4), xtst, xtda, 30.0, 30 },
	{ _V(4, -3.28, 4), xtst, xtda, 30.0, 30 },
	{ _V(-4, -3.28, 4), xtst, xtda, 30.0 }
};
and hover engine:
Code:
th_hover[0] = CreateThruster(_V(0, 0, 0), _V(0, 1, 0), 10000, ph_main, RCS_ISP);
AddExhaust(th_hover[0], 1, 0.3, _V(0, -2.8, 0), _V(0, -1, 0));
thg_hover = CreateThrusterGroup(th_hover, 1, THGROUP_HOVER);
gattispilot is offline   Reply With Quote
Old 01-15-2019, 05:51 PM   #109
Jeremyxxx
Orbinaut
Default

It has been a week, and I have been waiting patiently for the work on Queqiao and the Longjiangs to be resumed.
Jeremyxxx is offline   Reply With Quote
Old 01-16-2019, 04:38 PM   #110
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Well I am back. Trying to compile the satelite and have run into an issue:


not sure if my compiler is broke?
gattispilot is offline   Reply With Quote
Old 01-17-2019, 05:38 PM   #111
Jeremyxxx
Orbinaut
Default

The complier may have a CTD.
Jeremyxxx is offline   Reply With Quote
Old 01-17-2019, 05:46 PM   #112
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Well I got it to work. Need to start on the other sats. Not sure how/where they are attached. Working on launch of the 4c also. And getting the lander set.
gattispilot is offline   Reply With Quote
Old 01-21-2019, 03:19 PM   #113
gattispilot
Addon Developer
 
gattispilot's Avatar
Default




So I can launch the Sat.
I tried to have when detached from the 3rd stage open up but it wouldn't.:
Code:
if (GetAttachmentStatus(Queqiaobottom)){

		SetMeshVisibilityMode(DISHOPEN, MESHVIS_ALWAYS);
		
		SetMeshVisibilityMode(DISHCLOSED, MESHVIS_NEVER);

	}
But the other BIG issue is the lander.
Can't get the landing points to keep it from moving around and then ending upside down.
Code:
const double pesototal = MASS +FUELMASS;
const double xtx_target = -0.1;
const double xtst = (-1)*(pesototal*9.80655) / (3 * xtx_target);
const double xtda = 0.9*(2 * sqrt(pesototal*xtst));

static const DWORD ntdvtx_geardown = 4;
static TOUCHDOWNVTX tdvtx_geardown[ntdvtx_geardown] = {
	{ _V(-4, -3.2806, -4), xtst, xtda, 0.0, 0 },
	{ _V(4, -3.2806, -4), xtst, xtda, 0.0, 0 },
	{ _V(4, -3.2806, 4), xtst, xtda, 0.0, 0 },
	{ _V(-4, -3.2806, 4), xtst, xtda, 0.0 }
};
Code:
{
	// physical specs
	SetSize (1.5);
	SetEmptyMass(MASS);
	SetCW (0.3, 0.3, 0.6, 0.9);
	SetWingAspect (0.1);
	SetWingEffectiveness (0.1);
	SetCrossSections (_V(6.05,15.26,6.17));
	SetRotDrag (_V(0.1,0.1,0.1));
	if (GetFlightModel() >= 1) {
		SetPitchMomentScale (1e-4);
		SetBankMomentScale (1e-4);
	}
	SetPMI (_V(4.08,1.31,4.18));
	SetTrimScale (0.05);
	SetCameraOffset (_V(0,2,.731));
	double ro = Passo;
	//SetTouchdownPoints(tdvtx, ntdvtx);

	//SetTouchdownPoints(_V(0, .001, 1), _V(-1.6, .001, -1), _V(1.6, .001, -1));;

	SetTouchdownPoints(tdvtx_geardown, ntdvtx_geardown);
	SetSurfaceFrictionCoeff(20, 30);
Got a mesh for the other sats. I may just cover the body in gold foil and call it a day
gattispilot is offline   Reply With Quote
Old 01-23-2019, 03:09 PM   #114
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So 4throck and I have been trying to get the lander to land. We may use Fred's add on and make the lander sc4 and use a dll vessel for cameras,....

One Major resaon not to use a dll for me. When I fire the hover engine. The vessel goes up but starts to spin and rotate. Best guess is the COG is off. Not matching the center of the ship.

But not sure how to set it. I have the thruster set at 0,0,0.
gattispilot is offline   Reply With Quote
Thanked by:
Old 01-27-2019, 01:49 PM   #115
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Some images of the launch of the satellites




The lander is what I am still having issues with. Sure it can be static on the lunar surface. But I am trying to get the thruster/flight right so if someone wanted to try to land her.

I have done all that I know. Ran the mesh and got the cross reference and pmi. I spread the hover thrust out.

But as soon as I apply hover thrust I start to rotate

Code:
void CHANGE4LANDER::clbkSetClassCaps(FILEHANDLE cfg)
{
	// physical specs
	SetSize (1.5);
	SetEmptyMass(MASS);
	SetCrossSections (_V(6.05,15.26,6.17));
	SetRotDrag (_V(0.1,0.1,0.1));
	//if (GetFlightModel() >= 1) {
	//	SetPitchMomentScale (1e-4);
	//	SetBankMomentScale (1e-4);
	//}
	SetPMI (_V(4.08,1.31,4.18));
	SetTrimScale (0.05);
	SetCameraOffset (_V(0,2,.731));
	double ro = Passo;
	//SetTouchdownPoints(tdvtx, ntdvtx);

	//SetTouchdownPoints(_V(0, .001, 1), _V(-1.6, .001, -1), _V(1.6, .001, -1));;

	SetTouchdownPoints(tdvtx_geardown, ntdvtx_geardown);
	SetSurfaceFrictionCoeff(50, 40);
EnableTransponder (true);
mesh_MSL = AddMesh(oapiLoadMeshGlobal("change4lander3"));
SetMeshVisibilityMode(mesh_MSL, MESHVIS_ALWAYS); //Main ship mesh
//LR2 = CreateAttachment(false, _V(0, -1.06, -.371), _V(0, 1, 0), _V(0, 0, -1), "ROVER", false);
LR2 = CreateAttachment(false, _V(0, -2.130815, -.671), _V(0, 1, 0), _V(0, 0, 1), "ROVER", false);
//0, -2.130815, -1.388644

ph_main = CreatePropellantResource(FUELMASS);

th_hover[0] = CreateThruster(_V(5, 0, 5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[1] = CreateThruster(_V(-5, 0, 5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[2] = CreateThruster(_V(5, 0, -5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[3] = CreateThruster(_V(-5, 0, -5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);

AddExhaust(th_hover[0], 1, 0.3, _V(0, -2.8, 0), _V(0, -1, 0));
thg_hover = CreateThrusterGroup(th_hover,4, THGROUP_HOVER);
gattispilot is offline   Reply With Quote
Old 01-27-2019, 02:08 PM   #116
kuddel
Donator
Default

...just a thought...
maybe you introduce another (RCS) thrust when you intentionally only want hovering.
E.g. by accidentally using a variable / reference that should only be used for hover, but was (re-)used by another thruster ...
kuddel is offline   Reply With Quote
Old 01-27-2019, 03:47 PM   #117
fred18
Addon Developer

Default

Quote:
Originally Posted by gattispilot View Post
 Some images of the launch of the satellites




The lander is what I am still having issues with. Sure it can be static on the lunar surface. But I am trying to get the thruster/flight right so if someone wanted to try to land her.

I have done all that I know. Ran the mesh and got the cross reference and pmi. I spread the hover thrust out.

But as soon as I apply hover thrust I start to rotate

Code:
void CHANGE4LANDER::clbkSetClassCaps(FILEHANDLE cfg)
{
	// physical specs
	SetSize (1.5);
	SetEmptyMass(MASS);
	SetCrossSections (_V(6.05,15.26,6.17));
	SetRotDrag (_V(0.1,0.1,0.1));
	//if (GetFlightModel() >= 1) {
	//	SetPitchMomentScale (1e-4);
	//	SetBankMomentScale (1e-4);
	//}
	SetPMI (_V(4.08,1.31,4.18));
	SetTrimScale (0.05);
	SetCameraOffset (_V(0,2,.731));
	double ro = Passo;
	//SetTouchdownPoints(tdvtx, ntdvtx);

	//SetTouchdownPoints(_V(0, .001, 1), _V(-1.6, .001, -1), _V(1.6, .001, -1));;

	SetTouchdownPoints(tdvtx_geardown, ntdvtx_geardown);
	SetSurfaceFrictionCoeff(50, 40);
EnableTransponder (true);
mesh_MSL = AddMesh(oapiLoadMeshGlobal("change4lander3"));
SetMeshVisibilityMode(mesh_MSL, MESHVIS_ALWAYS); //Main ship mesh
//LR2 = CreateAttachment(false, _V(0, -1.06, -.371), _V(0, 1, 0), _V(0, 0, -1), "ROVER", false);
LR2 = CreateAttachment(false, _V(0, -2.130815, -.671), _V(0, 1, 0), _V(0, 0, 1), "ROVER", false);
//0, -2.130815, -1.388644

ph_main = CreatePropellantResource(FUELMASS);

th_hover[0] = CreateThruster(_V(5, 0, 5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[1] = CreateThruster(_V(-5, 0, 5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[2] = CreateThruster(_V(5, 0, -5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[3] = CreateThruster(_V(-5, 0, -5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);

AddExhaust(th_hover[0], 1, 0.3, _V(0, -2.8, 0), _V(0, -1, 0));
thg_hover = CreateThrusterGroup(th_hover,4, THGROUP_HOVER);
I don't think the settrimscale helps you, so in anycase I would take it out.

On the other hand, I experimented that if you don't have an active flight control system it can happen that when you fire multiple engines together the reaction is very realistic, as if they were not fired exactly together.

So, at least as a test I would condensate the 4 engines in just one engine applied in _V(0,0,0) and then add 4 exhausts, to see if it works properly in this way.
fred18 is offline   Reply With Quote
Old 01-27-2019, 05:49 PM   #118
Jeremyxxx
Orbinaut
Default

Nice work on the Longjiangs!
Jeremyxxx is offline   Reply With Quote
Thanked by:
Old 01-27-2019, 08:07 PM   #119
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Code:
void CHANGE4LANDER::clbkSetClassCaps(FILEHANDLE cfg)
{
	// physical specs
	SetSize (1.5);
	SetEmptyMass(MASS);
	SetCrossSections (_V(6.05,15.26,6.17));
	SetRotDrag (_V(0.1,0.1,0.1));
	//if (GetFlightModel() >= 1) {
	//	SetPitchMomentScale (1e-4);
	//	SetBankMomentScale (1e-4);
	//}
	SetPMI (_V(4.08,1.31,4.18));
	//SetTrimScale (0.05);
	SetCameraOffset (_V(0,2,.731));
	double ro = Passo;
	//SetTouchdownPoints(tdvtx, ntdvtx);

	//SetTouchdownPoints(_V(0, .001, 1), _V(-1.6, .001, -1), _V(1.6, .001, -1));;

	SetTouchdownPoints(tdvtx_geardown, ntdvtx_geardown);
	SetSurfaceFrictionCoeff(50, 40);
EnableTransponder (true);
mesh_MSL = AddMesh(oapiLoadMeshGlobal("change4lander3"));
SetMeshVisibilityMode(mesh_MSL, MESHVIS_ALWAYS); //Main ship mesh
//LR2 = CreateAttachment(false, _V(0, -1.06, -.371), _V(0, 1, 0), _V(0, 0, -1), "ROVER", false);
LR2 = CreateAttachment(false, _V(0, -2.130815, -.671), _V(0, 1, 0), _V(0, 0, 1), "ROVER", false);
//0, -2.130815, -1.388644

ph_main = CreatePropellantResource(FUELMASS);

th_hover[0] = CreateThruster(_V(0, 0, 0), _V(0, 1, 0), 10000, ph_main, RCS_ISP);
//th_hover[1] = CreateThruster(_V(-5, 0, 5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
//th_hover[2] = CreateThruster(_V(5, 0, -5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
//th_hover[3] = CreateThruster(_V(-5, 0, -5), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);

AddExhaust(th_hover[0], 1, 0.3, _V(0, -2.8, 0), _V(0, -1, 0));
thg_hover = CreateThrusterGroup(th_hover,1, THGROUP_HOVER);
So I merge the hover back into one

When I apply hover the lander rises but starts to rotate along the y axis.


Not sure if the issue is the hover thruster at 0,0,0 is not at the center of the mesh?
gattispilot is offline   Reply With Quote
Old 01-28-2019, 12:26 AM   #120
fred18
Addon Developer

Default

Quote:
Originally Posted by gattispilot View Post
 Not sure if the issue is the hover thruster at 0,0,0 is not at the center of the mesh?
Surely not, in orbiter there is no link between physics of the vessel and the mesh, which is just its graphical representation.
fred18 is offline   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 09:01 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 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.