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 12-31-2018, 10:23 PM   #76
Jeremyxxx
Orbinaut
Default

We still have a CTD due to the missing dll file for the Lander.

and soon we will have to resume work on Queqiao and Longjiangs.
Jeremyxxx is offline   Reply With Quote
Old 01-01-2019, 12:29 AM   #77
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Can u post the log. I may rescale the rover
gattispilot is online now   Reply With Quote
Old 01-01-2019, 02:13 AM   #78
Jeremyxxx
Orbinaut
Default

**** Orbiter.log
000000.000: Build Aug 28 2016 [v.160828]
000000.000: Timer precision: 6.93366e-007 sec
000000.000: Found 0 joystick(s)
000000.000: Module AtlantisConfig.dll .... [Build 160828, API 160828]
000000.000: Module AtmConfig.dll ......... [Build 160828, API 160828]
000000.000: Module DGConfigurator.dll .... [Build 160828, API 160828]
000000.000:
000000.000: **** Creating simulation session
000000.000: Module Sun.dll ............... [Build 160828, API 160828]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
000000.000: Module Mercury.dll ........... [Build 160828, API 160828]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
000000.000: Module Venus.dll ............. [Build 160828, API 160828]
000000.000: Module VenusAtm2006.dll ...... [Build 160828, API 160828]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
000000.000: Module Earth.dll ............. [Build 160828, API 160828]
000000.000: Module EarthAtmJ71G.dll ...... [Build 160828, API 160828]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
000000.000: Module Moon.dll .............. [Build 160828, API 160828]
ELP82: Precision 1e-005, Terms 116/829
000000.000: Module Mars.dll .............. [Build 160828, API 160828]
000000.000: Module MarsAtm2006.dll ....... [Build 160828, API 160828]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
000000.000: Module Phobos.dll ............ [Build ******, API 060425]
000000.000: Module Deimos.dll ............ [Build ******, API 060425]
000000.000: Module Galsat.dll ............ [Build 160828, API 160828]
000000.000: Module Jupiter.dll ........... [Build 160828, API 160828]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
000000.000: Module Io.dll ................ [Build 160828, API 160828]
000000.000: Module Europa.dll ............ [Build 160828, API 160828]
000000.000: Module Ganymede.dll .......... [Build 160828, API 160828]
000000.000: Module Callisto.dll .......... [Build 160828, API 160828]
000000.000: Module Satsat.dll ............ [Build 160828, API 160828]
000000.000: Module Saturn.dll ............ [Build 160828, API 160828]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
000000.000: Module Mimas.dll ............. [Build 160828, API 160828]
SATSAT Mimas: Terms 113
000000.000: Module Enceladus.dll ......... [Build 160828, API 160828]
SATSAT Enceladus: Terms 33
000000.000: Module Tethys.dll ............ [Build 160828, API 160828]
SATSAT Tethys: Terms 101
000000.000: Module Dione.dll ............. [Build 160828, API 160828]
SATSAT Dione: Terms 59
000000.000: Module Rhea.dll .............. [Build 160828, API 160828]
SATSAT Rhea: Terms 68
000000.000: Module Titan.dll ............. [Build 160828, API 160828]
SATSAT Titan: Terms 100
000000.000: Module Iapetus.dll ........... [Build 160828, API 160828]
SATSAT Iapetus: Terms 605
000000.000: Module Uranus.dll ............ [Build 160828, API 160828]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
000000.000: Module Miranda.dll ........... [Build ******, API 060425]
000000.000: Module Ariel.dll ............. [Build ******, API 060425]
000000.000: Module Umbriel.dll ........... [Build ******, API 060425]
000000.000: Module Titania.dll ........... [Build ******, API 060425]
000000.000: Module Oberon.dll ............ [Build ******, API 060425]
000000.000: Module Neptune.dll ........... [Build 160828, API 160828]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
000000.000: Finished initialising world
000000.000: Module Change4ROVER.dll ...... [Build 181230, API 160828]
000000.000: Module GeneralVehicle.dll .... [Build 170626, API 160828]
CHANGE4WHEELS: Meshname:change4wheels
CHANGE4WHEELS: Cockpit Position: 0.000 -0.231 1.000
CHANGE4WHEELS: Acceleration:0.010 Gs Brake:2.000 Gs Maximum Speed:10.000 km/h Max Reverse Speed:10.000 km/h
CHANGE4WHEELS: Always Upright FALSE
CHANGE4WHEELS: No Steering Animation FALSE
CHANGE4WHEELS: Steering Speed Factor:0.000 Maximum Steering Angle:0.000
CHANGE4WHEELS: Full Pedal Time:2.000
CHANGE4WHEELS: Rear Right Groups: 1
n.0 = 4
CHANGE4WHEELS: Rear Left Groups: 1
n.0 = 5
CHANGE4WHEELS: Front Left Groups: 1
n.0 = 3
CHANGE4WHEELS: Front Right Groups: 1
n.0 = 2
CHANGE4WHEELS: Rear Axle Position-> x:0.000000 y:-0.921621 z:-0.760109
CHANGE4WHEELS: Front Right Axle Position-> x:0.525595 y:-0.921241 z:0.754901
CHANGE4WHEELS: Steering Axis Position-> x:0.525595 y:-0.921241 z:0.754901
CHANGE4WHEELS: Front Wheels Camber = 0.000
CHANGE4WHEELS: Front Wheels Diameter: 0.3000
CHANGE4WHEELS: Rear Wheels Diameter: 0.3000
CHANGE4WHEELS: Four Wheels Steering TRUE, Rear Steering Axis: 0.526 -0.922 -0.760
CHANGE4WHEELS: Middle Axles Present, n: 1
Axle:1 n.0 = 1
Axle:1 n.1 = 0
CHANGE4WHEELS: Middle Diameter: 0.300
CHANGE4WHEELS: Height From Ground = 1.070
CHANGE4WHEELS: Towing Attachment Position: 0.000 0.000 0.000
CHANGE4WHEELS: Tow Max Angle:160.0
============================ ERROR: ===========================
Could not load vessel module: Change4LANDER
[Vessel::LoadModule | .\Vessel.cpp | 5747]
================================================== =============
000000.000: Finished initialising status
000000.000: Finished initialising camera
000000.000: Finished setting up render state
Jeremyxxx is offline   Reply With Quote
Old 01-01-2019, 02:36 PM   #79
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So new rover and lander.
https://drive.google.com/open?id=1ax...9jfsi5kNnow5IG

lander 2 rotates solar panels.

working on the attachment.

But I believe press 3 ramp rotates up. press 4 end ramp rotate out and press 5 and the whole rotate down.
gattispilot is online now   Reply With Quote
Old 01-01-2019, 03:58 PM   #80
emin2004
Orbinaut
Default

rover needs to drive onto the ramp and onto the surface off from the lander
emin2004 is offline   Reply With Quote
Old 01-01-2019, 04:02 PM   #81
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Working on that. It is a matter of adjusting the attachment point to match the animation. I have gotten the rover to move out but not angled and follow it as it lowers

Last edited by gattispilot; 01-01-2019 at 04:27 PM.
gattispilot is online now   Reply With Quote
Thanked by:
Old 01-02-2019, 10:53 AM   #82
4throck
Enthusiast !
 
4throck's Avatar
Default

Quote:
Originally Posted by gattispilot View Post
 So new rover and lander...

Works! Great job on the lander animations.
If you can make the lander move down that would be great.
Perhaps you can simply move the mesh (offset) along with the animation status?
4throck is offline   Reply With Quote
Thanked by:
Old 01-02-2019, 11:13 AM   #83
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Thanks. I think I may have to do that. Have mesh groups of the rover. Then move those groups along the ramp. and to the ground. Then create a rover vessel there? And make the rover mesh groups disappear. But the draw back is you don't get the rover animations so the rover would remained stowed until it was on ground. But I guess I could animate the rover mesh on lander.

Last edited by gattispilot; 01-02-2019 at 11:28 AM.
gattispilot is online now   Reply With Quote
Old 01-02-2019, 02:05 PM   #84
fred18
Addon Developer

Default

Quote:
Originally Posted by gattispilot View Post
 Thanks. I think I may have to do that. Have mesh groups of the rover. Then move those groups along the ramp. and to the ground. Then create a rover vessel there? And make the rover mesh groups disappear. But the draw back is you don't get the rover animations so the rover would remained stowed until it was on ground. But I guess I could animate the rover mesh on lander.
why don't you just move the attachment point? it should work very well if you put down the right movements
fred18 is offline   Reply With Quote
Thanked by:
Old 01-02-2019, 02:21 PM   #85
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Thats what i am doing. But not being able to match animation. Any clue why rover is not going straight.
gattispilot is online now   Reply With Quote
Old 01-02-2019, 06:12 PM   #86
fred18
Addon Developer

Default

Quote:
Originally Posted by gattispilot View Post
 Any clue why rover is not going straight.
yes, in the scenario you provided:

Code:
CHANGE4WHEELS:GV_CHANGE4WHEELSnew
  STATUS Landed Moon
  POS -33.4375000 41.1184070
  HEADING -917798380887773310.00
  ALT 0.987
  AROT -131.248 -19.348 138.219
  AFCMODE 7
  NAVFREQ 0 0
END
of course it's wrong and messes up all the internal calculation of GV. I put 0 for test and it worked perfectly
fred18 is offline   Reply With Quote
Thanked by:
Old 01-02-2019, 06:25 PM   #87
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Thanks. I will update the scenario.

Not sure about moving the point. Basically I have it translate out and then translate down and out. But it needs to rotate also and then translate down and away.
gattispilot is online now   Reply With Quote
Old 01-02-2019, 08:01 PM   #88
Donamy
Beta Tester


Default

You might need time steps to get it right.
Donamy is online now   Reply With Quote
Thanked by:
Old 01-02-2019, 11:14 PM   #89
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

rover translates out
ramp moves but rover is not in synch
rover need to rotate 30 degrees? But not going down in synch.
Code:
if (rampstart == 1){   //ramp sequence
			//double dc = simdt * LIFT_SPEED;
			double dc = simdt * .1;
			double dd = simdt * .06;
			double de = simdt * .2;
			double dh = simdt * .3;
			SetAttachmentParams(LR2, ROVER[POS], ROVER[DIR], ROVER[ROT]);


			{
				if (step == 1)
				{
					sprintf(oapiDebugString(), "anim %2.2f anim %3.4f ", R3, R2);

					R3 = (R3 - dc);
					if (R3 < -2.3){
						R3 = -2.3;
						step = 0;
					}
				}
				
				if (step == 2)
				{
					sprintf(oapiDebugString(), "anim %2.2f anim %3.4f ", R3, R2);

					R3 = (R3 - de);//x

					R2 = (R2 - dh);//y
					if (R3 < -3.4){
						R3 = -3.4;
						step = 0;
					}
				}


			}
		}
ramp animation:
Code:
//RAMP
	anim_RAMP1 = CreateAnimation(0);
	anim_RAMP2 = CreateAnimation(0);
	anim_RAMP3 = CreateAnimation(0);
	static UINT RAMPGrp0[1] = { 43 };//PANEL1
	static MGROUP_ROTATE RAMP1(0, RAMPGrp0, 1, _V(0, - 2.130815, - 1.388644), _V(1, 0, 0), (float)(-120 * RAD));
	parent = AddAnimationComponent(anim_RAMP1, 0, 1, &RAMP1);

	static UINT RAMPGrp1[1] = { 41 };//PANEL1
	static MGROUP_ROTATE RAMP2(0, RAMPGrp1, 1, _V(0, -1.083262, - 1.377369), _V(1, 0, 0), (float)(210 * RAD));
	parent1 = AddAnimationComponent(anim_RAMP2, 0, 1, &RAMP2,parent);

	//static MGROUP_ROTATE RAMP2a(0, RAMPGrp1, 2, _V(0, -1.083262, -1.377369), _V(1, 0, 0), (float)(90 * RAD));
	//parent2 = AddAnimationComponent(anim_RAMP2, 0, 1, &RAMP2a, parent1);



	static UINT RAMPGrp2[1] = { 42 };//PANEL1
	static MGROUP_ROTATE RAMP3(0, RAMPGrp2, 1, _V(0, - 2.542481, - 1.386626), _V(1, 0, 0), (float)(160 * RAD));
    AddAnimationComponent(anim_RAMP3, 0, 1, &RAMP3, parent1);
Code:
//RAMP1
	if (RAMP1_status >= DOOR_RAISING) {
		//sprintf(oapiDebugString(), "anim %2.2f ramp2 %2.2f ", RAMP1_proc, RAMP2_proc);
		double da = simdt * .19;
		if (RAMP1_status == DOOR_RAISING) {
			if (RAMP1_proc > 0.0){
				RAMP1_proc = max(0.0, RAMP1_proc - da);
				RAMP2_proc = (RAMP2_proc + da/2);
			}




			else RAMP1_status = DOOR_UP;
		}
		else {
			if (RAMP1_proc < 1.0) {
				RAMP1_proc = min(1.0, RAMP1_proc + da);
				RAMP2_proc = (RAMP2_proc + da/2);
			}
			//if (RAMP2_proc < 1.0) RAMP1_proc = min(1.0, RAMP2_proc + da);
			else RAMP1_status = DOOR_DOWN;
		}
		SetAnimation(anim_RAMP1, RAMP1_proc);
		SetAnimation(anim_RAMP2, RAMP2_proc);
	}
	if (RAMP2_status >= DOOR_RAISING) {
		double da = simdt * LIFT_SPEED;
		if (RAMP2_status == DOOR_RAISING) {
			if (RAMP2_proc > 0.0) RAMP2_proc = max(0.0, RAMP2_proc - da);
			else RAMP2_status = DOOR_UP;
		}
		else {
			if (RAMP2_proc < .43) RAMP2_proc = min(.43, RAMP2_proc + da);
			else RAMP2_status = DOOR_DOWN;
		}
		SetAnimation(anim_RAMP2, RAMP2_proc);

	}
	if (RAMP3_status >= DOOR_RAISING) {
		double da = simdt * LIFT_SPEED;
		if (RAMP3_status == DOOR_RAISING) {
			if (RAMP3_proc > 0.45) RAMP3_proc = max(0.0, RAMP3_proc - da);
			else RAMP3_status = DOOR_UP;
		}
		else {
			if (RAMP3_proc < 1.0) RAMP3_proc = min(1.0, RAMP3_proc + da);
			else RAMP3_status = DOOR_DOWN;
		}
		SetAnimation(anim_RAMP3, RAMP3_proc);

	}
}
gattispilot is online now   Reply With Quote
Old 01-02-2019, 11:17 PM   #90
Donamy
Beta Tester


Default

You have to animate the wheels separately also
Donamy 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 04:55 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 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.