
OrbitHangar Addons & Comments Addons uploaded at Orbithangar.com will automatically generate a new thread in this forum for comments. The thread link will also be included on the addons page. 

Thread Tools 
LER2016
by OrbitHangar 06272018, 10:09 AM
Author: gattispilot LER for 2016. So now explore the Lunar Surface updated crab steering and slowed the straighten wheels. Changed view key from G to V DOWNLOAD 
Views 1879
Comments 10

07052018, 10:24 AM  #2 
Addon Developer

Updated the LER. Fixed the crab steering and changed the view key to V rather than G

Thanked by: 
07122018, 01:57 PM  #4 
Enthusiast !

Is that my Altair ? Strange to see the 4 pads sinking on level ground.
The LER seems to skink by the same amount... Can you check that » the default inline graphics gives the same result? » your terrain interpolation settings » are you placing vessels by scenario with ALT values ? » moving to another place gives the same results ? 
07142018, 02:07 PM  #5 
Orbinaut

msl rover bodies disappear fix it for me and upload it to orbithanger?
it would be grateful if you do this 
Thanked by: 
07162018, 01:37 PM  #6 
Addon Developer

Quote:
What? So I am confused. Here is the same scn but run in d3d9. Notice how the wheels are good. my d3d9 I think this is for the beta orbiter? So how can I tell if I have the high res or default low res terrain? 
07182018, 12:06 PM  #7 
Addon Developer

So by using hi res texture and d3d9 you get this:
Low res you get the ler lower in the ground. 
07232018, 10:48 AM  #8 
Addon Developer

So in d3d9 using hi res
you get this: but in nond3d9 hi res: Not sure if I should make a not d3d9 version and raise the touchdown point? 
07232018, 04:02 PM  #9 
Kourou CSG addon Developper

Just for info, me also I had some problem with shadows in kourouELS area :
 without D3D9 no problem, the shadows are on the ground.  with D3D9 the shadows are... too high!... (they are 1 to 2 meters above the ground...) I do not know why.... 
Thanked by: 
07232018, 04:15 PM  #10 
Orbinaut

Quote:

05122019, 01:14 AM  #11 
Addon Developer

So I am trying to make an eva guy for the LER. I am using a lot of GV code and the ler.
trying to duplicate the way UMMu moved So I can move forward and backwards, left and right. But I can only rotate direction aka heading only when not moving. Code:
void eva2016::MoveAround(){ memset(&vs2, 0, sizeof(vs2)); vs2.version = 2; GetStatusEx(&vs2); if (leftmove == 0)TURN_proc = 0; if (rightmove == 0)TURN_proc = 0; if (leftmove == 1)TURN_proc = .25; if (rightmove == 1)TURN_proc = .75; double sinTurn = sin(2 * PI * TURN_proc); double cosTurn = cos(2 * PI * TURN_proc); //change heading sprintf(oapiDebugString(), "hdchange %6.6f surfhd %2.2f rudderchange %d ", d_hdg, vs2.surf_hdg, i3); if (i3 < 0){//LEFT TURN d_hdg = d_hdg + .00001;//rate of steering change of heading vs2.surf_hdg = d_hdg; //sprintf(oapiDebugString(), "turn %d SURFHDG %2.2f", i3, vs2.surf_hdg); } if (i3 > 0){//RIGHT TURN d_hdg = d_hdg + .00001;//rate of steering change of heading vs2.surf_hdg += d_hdg; //sprintf(oapiDebugString(), "turn %d SURFHDG %2.2f", i3, vs2.surf_hdg); if (vs2.surf_hdg>2 * PI){ vs2.surf_hdg = 2 * PI; } } if (i3 == 0){// no change of heading d_hdg = 0; } if (FORWARDgear == 1)//MOVING FORWARD { if (i3 < 0){//LEFT TURN d_hdg = d_hdg + .00001;//rate of steering change of heading vs2.surf_hdg = d_hdg; //sprintf(oapiDebugString(), "turn %d SURFHDG %2.2f", i3, vs2.surf_hdg); } if (i3 > 0){//RIGHT TURN d_hdg = d_hdg + .00001;//rate of steering change of heading vs2.surf_hdg += d_hdg; //sprintf(oapiDebugString(), "turn %d SURFHDG %2.2f", i3, vs2.surf_hdg); if (vs2.surf_hdg>2 * PI){ vs2.surf_hdg = 2 * PI; } } if (i3 == 0){// no change of heading d_hdg = 0; } sprintf(oapiDebugString(), "hdchange1 %6.6f surfhd %2.2f rudderchange %d ", d_hdg, vs2.surf_hdg, i3); //sprintf(oapiDebugString(), "roll %6.6f pitchs %2.2f pitchs %d ", d_hdg, vs2.surf_hdg,i3); if (TURN_proc == 0){//wheels are straight so move with heading d_lat = (targetSpeed*oapiGetSimStep()*cos(vs2.surf_hdg) / each_deg); d_lng = (targetSpeed*oapiGetSimStep()*sin(vs2.surf_hdg) / each_deg); } else {//wheels are not straight so move no matter the heading d_lat = (targetSpeed*oapiGetSimStep()*(cosTurn) / each_deg); d_lng = (targetSpeed*oapiGetSimStep()*(sinTurn) / each_deg); } //sprintf(oapiDebugString(), "turn %2.2f cos %2.2f sin %2.2f lat %2.2f lng %2.2f", TURN_proc, cosTurn, sinTurn, d_lat, d_lng); vs2.surf_lat += d_lat*RAD; vs2.surf_lng += d_lng*RAD; } if (REVERSEgear == 1) { if (TURN_proc == 0){//wheels are straight so move with heading d_lat = (targetSpeed*oapiGetSimStep()*cos(vs2.surf_hdg) / each_deg); d_lng = (targetSpeed*oapiGetSimStep()*sin(vs2.surf_hdg) / each_deg); } else {//wheels are not straight so move no matter the heading d_lat = (targetSpeed*oapiGetSimStep()*(cosTurn*1) / each_deg); d_lng = (targetSpeed*oapiGetSimStep()*(sinTurn*1) / each_deg); } //sprintf(oapiDebugString(), "turn %2.2f cos %2.2f sin %2.2f lat %2.2f lng %2.2f", TURN_proc, cosTurn, sinTurn, d_lat, d_lng); vs2.surf_lat = d_lat*RAD; vs2.surf_lng = d_lng*RAD; } //movesideways if ((leftmove == 1)  (rightmove == 1)){ { d_lat = (targetSpeed*oapiGetSimStep()*cosTurn / each_deg); d_lng = (targetSpeed*oapiGetSimStep()*sinTurn / each_deg); } vs2.surf_lat = d_lat*RAD; vs2.surf_lng = d_lng*RAD; } lng = vs2.surf_lng; lat = vs2.surf_lat; hdg = vs2.surf_hdg; 
Thanked by: 

Thread Tools  


Quick Links  Need Help? 