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 10-20-2016, 12:35 PM   #136
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by gattispilot View Post
 Thanks. I just needed that encouragement.

Ok on the crawler and hill. Yes the SSU crawler climbs the hill. BUT it is a SSU Hill. So it has other structures there.

So maybe we can make a new mesh for the ssl to match the slope of the SSu and remove the structures?
The hill will be the same for both, I doubt NASA will make the ramp different.

If I remember correctly, it did not even change between Apollo and STS.
Urwumpe is offline   Reply With Quote
Old 10-20-2016, 12:41 PM   #137
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

But I think the user may not want all the structures on there is SSU. I guess we will see.
gattispilot is online now   Reply With Quote
Old 10-20-2016, 12:54 PM   #138
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by gattispilot View Post
 But I think the user may not want all the structures on there is SSU. I guess we will see.
You are not using the SSU crawler anyway, so why worry so much about SSU?

Sure, we rely on a FSS/RSS "vessel" to accept the MLP. But practically, all we want from a crawler perspective is just something where the MLP can rest on.
Urwumpe is offline   Reply With Quote
Thanked by:
Old 10-20-2016, 01:04 PM   #139
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Well this was the ssu crawler. Yes something to carry the mlp. But also need something to carry up the hill to the launchpad.

I was using a different mesh that needs work to fit the ssu crawler
gattispilot is online now   Reply With Quote
Old 10-20-2016, 01:13 PM   #140
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by gattispilot View Post
 I was using a different mesh that needs work to fit the ssu crawler
Was never expected by SSU and is not supported. Again, I would rather change the mesh than the crawler in that context.
Urwumpe is offline   Reply With Quote
Thanked by:
Old 10-20-2016, 08:43 PM   #141
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

OK. I may model the new pad/hill like the ssu one so that the touchdown points will remain the same.

This is why I was using attachment points.


Here are the 2 area to compare. On the top view the green one is the non SSU
On the side view the taller one is the SSU




---------- Post added at 03:43 PM ---------- Previous post was at 08:17 AM ----------

oK. The SSu mesh LC39_hardstand is a good one without alot of extra structures. So I made a cfg and used that mesh. Then added it and adjusted. no issues. The issue comes when I delete the ssu_pad. I get a CTD and nothing in the log
cfg
Code:
MeshName = SSU/LC39A_hardstand
Size = 200
scn:
Code:
BEGIN_DESC
Contains the latest simulation state.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 54278.5328779857
  Context SSU
END_ENVIRONMENT

BEGIN_FOCUS
  Ship Crawler-Transporter
END_FOCUS

BEGIN_CAMERA
  TARGET L39SLS
  MODE Extern
  POS 4.13 -38.71 -44.83
  TRACKMODE TargetRelative
  FOV 40.00
END_CAMERA

BEGIN_VC
END_VC

BEGIN_SHIPS
Crawler-Transporter:SSU_CT
  STATUS Orbiting Earth
  RPOS 5030462.11 1818249.49 3460952.67
  RVEL -178.810 -145.732 336.461
  AROT 35.98 37.56 95.06
  AFCMODE 7
  NAVFREQ 0 0
  VELOCITY 0.00
  TGT_VELOCITY 0.00
  STEERING_ACTUAL 0.000000 0.000000
  STEERING_COMMANDED 0.000000 0.000000
  JACK_HEIGHT 0.40
  TARGET_JACK_INDEX 0
  ANGLE 0.010000 0.010000
  VIEWPOS 0
  STANDALONE 0
  GROUND_POS 0.4989492637 -1.4076933883 0.6813765400
@SUBSYSTEM Engine
  ENGINE_POWER 0.00
  ENGINE_STATE 0
@ENDSUBSYSTEM		;Engine
  @PANEL FWD_CAB_LEFT
  "NEUT" SET
  @ENDPANEL 
  @PANEL FWD_CAB_CTR
  @ENDPANEL 
  @PANEL FWD_CAB_RIGHT
  "GreatCircle" SET
  @ENDPANEL 
  @PANEL REAR_CAB_LEFT
  "NEUT" SET
  @ENDPANEL 
  @PANEL REAR_CAB_CTR
  @ENDPANEL 
  @PANEL REAR_CAB_RIGHT
  "GreatCircle" SET
  @ENDPANEL 
END
L39SLS:LP39PAD_SLS
  STATUS Landed Earth
  POS -80.6041220 28.6078150
  HEADING 270.00
  AFCMODE 7
  NAVFREQ 0 0
END
END_SHIPS

BEGIN_Attachment Manager
END

BEGIN_ReFuelMFD
  SCENARIO_TREE 
    NAMED Computers
    END_NODE 
  END_NODE 
END
log:
Code:
**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 1914 x 1051 x 32
Graphics: Hardware T&L capability: Yes
Graphics: Z-buffer depth: 32 bit
Graphics: Active lights supported: 8
Loading 15382 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtmJ71G.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Finished initialising world
Module SSU_Crawler.dll ....... [Build 150818, API 100830]
Added subsystem Engine.
BasicPanel[FWD_CAB_RIGHT]:	Define VC Animations. 12 components
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicPanel[REAR_CAB_RIGHT]:	Define VC Animations. 12 components
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
BasicVCComponent:	Define VC Animations
@SUBSYSTEM Engine
FWD_CAB_LEFT
		Parse panel block for panel "FWD_CAB_LEFT"...
	Look up switch "NEUT"...		(SET)
	Found switch.
	Read switch state.
SET
		Done.
	Leave @PANEL block.
FWD_CAB_CTR
		Parse panel block for panel "FWD_CAB_CTR"...
		Done.
	Leave @PANEL block.
FWD_CAB_RIGHT
		Parse panel block for panel "FWD_CAB_RIGHT"...
	Look up switch "GreatCircle"...		(SET)
	Found switch.
	Read switch state.
SET
		Done.
	Leave @PANEL block.
REAR_CAB_LEFT
		Parse panel block for panel "REAR_CAB_LEFT"...
	Look up switch "NEUT"...		(SET)
	Found switch.
	Read switch state.
SET
		Done.
	Leave @PANEL block.
REAR_CAB_CTR
		Parse panel block for panel "REAR_CAB_CTR"...
		Done.
	Leave @PANEL block.
REAR_CAB_RIGHT
		Parse panel block for panel "REAR_CAB_RIGHT"...
	Look up switch "GreatCircle"...		(SET)
	Found switch.
	Read switch state.
SET
		Done.
	Leave @PANEL block.
(SpaceShuttleUltra) [DEBUG] Panel state violation in FWD_CAB_LEFT, not defined at Realize()
(SpaceShuttleUltra) [DEBUG] Panel state violation in FWD_CAB_CTR, not defined at Realize()
(SpaceShuttleUltra) [DEBUG] Panel state violation in REAR_CAB_LEFT, not defined at Realize()
(SpaceShuttleUltra) [DEBUG] Panel state violation in REAR_CAB_CTR, not defined at Realize()
Finished initialising status
Finished initialising camera
CrawlerRightPanel::RegisterVC() called
(SpaceShuttleUltra) [DEBUG] Panel state violation in FWD_LDS, not realized at RegisterVC()
Finished initialising panels
Finished setting up render state

Last edited by gattispilot; 10-20-2016 at 02:09 PM. Reason: added images
gattispilot is online now   Reply With Quote
Thanked by:
Old 10-20-2016, 10:16 PM   #142
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by gattispilot View Post
 [/COLOR]oK. The SSu mesh LC39_hardstand is a good one without alot of extra structures. So I made a cfg and used that mesh. Then added it and adjusted. no issues. The issue comes when I delete the ssu_pad. I get a CTD and nothing in the log
Reproduced in a clean SSU installation. Filed an official ticket for it.
DaveS is offline   Reply With Quote
Thanked by:
Old 10-23-2016, 08:52 AM   #143
AeronaticalPerson55
Commander Harambe
 
AeronaticalPerson55's Avatar
Default

Can someone attach a file, I cant go to the website to download the main thing (dropbox website)?
AeronaticalPerson55 is offline   Reply With Quote
Old 10-23-2016, 10:31 PM   #144
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

ok. Updated my crawler.



But The next think I want to add is the change touchdown points to climb the hill
I have looked at the SSU crawler.

But I have run into some obstacles.

this is not defined:vhLC39
Code:
void SLSCRAWLER::FindLaunchpads()
{
	for (DWORD i = 0; i<oapiGetVesselCount(); i++) {
		OBJHANDLE hVessel = oapiGetVesselByIndex(i);
		if (hVessel && !_strnicmp(oapiGetVesselInterface(hVessel)->GetClassName(), "SLS_Pad", 7)) {
			vhLC39.push_back(hVessel);
			//oapiWriteLog("Found pad");
		}
	}
}
but it is in the h
Code:
	OBJHANDLE hEarth;
	std::vector<OBJHANDLE> vhLC39;

};
Code:
void SLSCRAWLER::clbkPreStep(double simt, double simdt, double mjd) {

	// check distance from pads; adjust touchdown points to simulate going up ramp
	for (unsigned int i = 0; i < vhLC39.size(); i++) {
		//VESSEL* pV=oapiGetVesselInterface(vhLC39[i]);

		VECTOR3 rpos = CalcRelSurfPos(vhLC39[i], vs);

		if (UpdateTouchdownPoints(rpos)) break;
	}


}
Not sure where UltraMath.h is?

Code:
	3	IntelliSense: identifier "range" is undefined	e:\orbiter2010p1A\Orbitersdk\samples\SLSCRAWLER\SLSCRAWLER.H	76	46	SLSCRAWLER
	4	IntelliSense: this declaration has no storage class or type specifier	e:\orbiter2010p1A\Orbitersdk\samples\SLSCRAWLER\SLSCRAWLER.H	86	2	SLSCRAWLER
	5	IntelliSense: namespace "std" has no member "vector"	e:\orbiter2010p1A\Orbitersdk\samples\SLSCRAWLER\SLSCRAWLER.H	86	7	SLSCRAWLER
	6	IntelliSense: expected a ';'	e:\orbiter2010p1A\Orbitersdk\samples\SLSCRAWLER\SLSCRAWLER.H	86	13	SLSCRAWLER
gattispilot is online now   Reply With Quote
Thanked by:
Old 10-23-2016, 10:52 PM   #145
Longjap
Orbinaut
 
Longjap's Avatar
Default

Looks awesome gattispilot! Wish I could help you with the code.
Longjap is offline   Reply With Quote
Thanked by:
Old 10-23-2016, 11:02 PM   #146
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by gattispilot View Post
 Not sure where UltraMath.h is?
In libUltra\src.
DaveS is offline   Reply With Quote
Thanked by:
Old 10-24-2016, 09:07 PM   #147
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

I got it to compile. But not sure what adjustments need to happen.in the scenario:

SLS_Pad:SLS\LP39PAD

But the touchdown are the same.
Code:
void SLSCRAWLER::FindLaunchpads()
{
    for (DWORD i = 0; i<oapiGetVesselCount(); i++) {
        OBJHANDLE hVessel = oapiGetVesselByIndex(i);
        if (hVessel && !_strnicmp(oapiGetVesselInterface(hVessel)->GetClassName(), "SLS_Pad", 7)) {
            vhLC39.push_back(hVessel);
            //oapiWriteLog("Found pad");
        }
    }
}
So it finds the sls_pad vessel

Well I went to these touchdown point and now the crawler is under the ground tilted.

I think I like the old touchdown.

Code:
    SetTouchdownPoints(_V(0, jackHeight + curFrontHeight, 20.0), _V(-15, jackHeight + curFrontHeight, -20.0), _V(15, jackHeight + curFrontHeight, -20.0));;


---------- Post added 10-24-16 at 06:08 AM ---------- Previous post was 10-23-16 at 06:52 PM ----------

oK. looking at the code:
Code:
void SLSCRAWLER::clbkPreStep(double simt, double simdt, double mjd) {

    // check distance from pads; adjust touchdown points to simulate going up ramp
    for (unsigned int i = 0; i < vhLC39.size(); i++) {
        //VESSEL* pV=oapiGetVesselInterface(vhLC39[i]);

        VECTOR3 rpos = CalcRelSurfPos(vhLC39[i], vs);
        sprintf(oapiDebugString(), "xdf %2.2fzdf %2.2f ydf %2.2f",  rpos.x, rpos.z, rpos.y);

        if (UpdateTouchdownPoints(rpos)) break;
    }


}
when i run the debugger I get vhLC39.size=0

Code:
void SLSCRAWLER::FindLaunchpads()
{
    for (DWORD i = 0; i<oapiGetVesselCount(); i++) {
        OBJHANDLE hVessel = oapiGetVesselByIndex(i);
        if (hVessel && !_strnicmp(oapiGetVesselInterface(hVessel)->GetClassName(), "SLS_Pad", 7)) {
            vhLC39.push_back(hVessel);
            //oapiWriteLog("Found pad");
        }
    }
}
Not sure why the size is not picking up as the size of the sls_pad?

---------- Post added at 04:07 PM ---------- Previous post was at 06:08 AM ----------

This is what I get in the debugger
Code:
-        vhLC39    { size=0 }    std::vector<void *,std::allocator<void *> >
        [size]    0    int
        [capacity]    0    int
+        [Raw View]    0x043f861c {...}    std::vector<void *,std::allocator<void *> > *
Code:
void SLSCRAWLER::clbkPreStep(double simt, double simdt, double mjd) {
    if (!firstTimestepDone) DoFirstTimestep();

    // check distance from pads; adjust touchdown points to simulate going up ramp
    for (unsigned int i = 0; i<vhLC39.size(); i++) {
        
    // check distance from pads; adjust touchdown points to simulate going up ramp
    
        //VESSEL* pV=oapiGetVesselInterface(vhLC39[i]);
//    for (unsigned int i = 0; i < 1; i++) {
        VECTOR3 rpos = CalcRelSurfPos(vhLC39[i], vs);
        sprintf(oapiDebugString(), "xdf %2.2fzdf %2.2f ydf %2.2f",  rpos.x, rpos.z, rpos.y);

        if (UpdateTouchdownPoints(rpos)) break;
    }


}
scn.
Code:
SLS_Pad:SLS\LP39PAD
  STATUS Landed Earth
  POS -80.6204210 28.6268820
  HEADING 0.00
  ALT 1.997
  AROT 61.696 4.478 8.250
  AFCMODE 7
  NAVFREQ 0 0
END

Last edited by gattispilot; 10-23-2016 at 11:59 PM.
gattispilot is online now   Reply With Quote
Old 10-24-2016, 09:58 PM   #148
DaveS
Addon Developer
 
DaveS's Avatar


Default

You're confusing the vessel name with the class name. This is from OrbiterConfig.pdf, p. 30. The code looks for the class name, not the vessel name. So you need to rename your cfg to SLS_Pad.cfg for it to work.

DaveS is offline   Reply With Quote
Thanked by:
Old 10-24-2016, 10:23 PM   #149
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Ok I rename the cfg and scn.
Code:
SLS_Pad:SLS_Pad
  STATUS Landed Earth
  POS -80.6204210 28.6268820
  HEADING 0.00
  ALT 1.997
  AROT 61.696 4.478 8.250
  AFCMODE 7
  NAVFREQ 0 0
END
the same size. 0

the cfg:
MeshName = LP39
ClassName = SLS_Pad
Size = 200

BEGIN_ATTACHMENT
C 2 36.5 95.25 0 1 0 0 0 1 sp1
C 3.2 37.5 -6.1 0 1 0 0 0 1 sp2
C -111 38 -7 0 1 0 0 0 1 sp3
C -104 38.5 95 0 1 0 0 0 1 sp4
C -101 23.5 29.7 0 1 0 0 0 1 sp5
C 2.5 23 57 0 1 0 0 0 1 sp6
END_ATTACHMENT

Last edited by gattispilot; 10-24-2016 at 10:32 PM.
gattispilot is online now   Reply With Quote
Old 10-24-2016, 11:27 PM   #150
DaveS
Addon Developer
 
DaveS's Avatar


Default

Could you uncomment //oapiWriteLog("Found pad"); in FindLaunchPads? This way it will write to the orbiter.log file if it has found the pad. This will demonstrate if the code is actually doing something.
DaveS 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 11:05 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.