OHM Lunar Electric Rover

OrbitHangar

Addon Comments
Joined
Apr 9, 2008
Messages
3,832
Reaction score
18
Points
0
Author: gattispilot

Here is the Lunar Electric Rover.
Keys:
G - switch internal camera views: default, Left seat, bubble, Right seat and rear controls
4 - straightens wheels
7/8 holds the key down until correct angle is desired.

1/3 keypad rotate the LER. Wheels automatically turn to the correct angle.
+/- keypad thrust


UMMU controls
1/2 select eva person
9/0 selects airlocks There are 3(#0 is the main side and 2 & 3 are in the rear of the vessel
D- opens Selected Airlock
E-performs EVA
D-opens/cloes airlocks
N- removes UMmu message
M- lowers/raises the shield


DOWNLOAD
 
Will this be updated when UCO is released?
 
Thanks. What would you like to see changed? One thing maybe use the std Ummus meshes?
 
Very Nice!

I'll be putting your rover to work shortly... :thumbup:
 
Last edited:
Thanks for putting this out. It's really nice.
 
Last edited:
LER new module

It came to mine attention about the weight. So I increased the weight to 4000kg and adjusted the thrust accordingly. Here is a new module for that. if that works I 'll update.

http://www.4shared.com/file/158669309/e71aab9a/_8__LER2.html

I also increase the thrust for spinning.

If anyone want to do a VC that would be great

On the turns here is the code I notice it does great except when the direction is near 270 and 90.


Thrust defined

Code:
			VECTOR3 dir = {0,0,0};
			VECTOR3 dirR = {0,0,0};

			//main  thrust
th_main[0] = CreateThruster (_V(1.5,0,0), dir, MAXMAINTH, TANK, ISP);
th_main[1] = CreateThruster (_V(-1.5,0,0), dir, MAXMAINTH, TANK, ISP);
thg_main = CreateThrusterGroup (th_main, 2, THGROUP_MAIN);

//rotating thrust
th_main[2] = CreateThruster (_V(1.5,0,0), dir, MAXMAINTH, TANK, ISP);
th_main[3] = CreateThruster (_V(-1.5,0,0), dir, MAXMAINTH, TANK, ISP);
//retro
th_retro[0] = CreateThruster (_V(-1.5,0,0), dirR, MAXRETROTH, TANK, ISP);
th_retro[1] = CreateThruster (_V(-1.5,0,0), dirR, MAXRETROTH, TANK, ISP);
	thg_retro= CreateThrusterGroup (th_retro, 2, THGROUP_RETRO);

//rotate thrust
	th_retro[2] = CreateThruster (_V(1.5,0,0), dirR, MAXRETROTH, TANK, ISP);
	th_retro[3] = CreateThruster (_V(-1.5,0,0), dirR, MAXRETROTH, TANK, ISP);

thruster direction determined. Turn_proc is the heading. So the amount of thrust is based on Heading or Turn_proc


Code:
SetThrusterMax0(th_main[0], 7000+ 7000*abs(sin(2*PI*TURN_proc)));
SetThrusterMax0(th_main[1], 7000+ 7000*abs(sin(2*PI*TURN_proc)));
SetThrusterMax0(th_main[2], 7000+ 7000*abs(sin(2*PI*TURN_proc)));
SetThrusterMax0(th_main[3], 7000+ 7000*abs(sin(2*PI*TURN_proc)));

SetThrusterMax0(th_retro[0], 7000+ 7000*abs(sin(2*PI*TURN_proc)));
SetThrusterMax0(th_retro[1], 7000+ 7000*abs(sin(2*PI*TURN_proc)));
SetThrusterMax0(th_retro[2], 7000+ 7000*abs(sin(2*PI*TURN_proc)));
SetThrusterMax0(th_retro[3], 7000+ 7000*abs(sin(2*PI*TURN_proc)));

Thrust direction:
Code:
SetThrusterDir (th_main[0], _V(sin(2*PI*TURN_proc), 0, cos(2*PI*TURN_proc)));
SetThrusterDir (th_main[1], _V(sin(2*PI*TURN_proc), 0, cos(2*PI*TURN_proc)));
SetThrusterDir (th_retro[0], _V(-sin(2*PI*TURN_proc), 0, -cos(2*PI*TURN_proc)));
SetThrusterDir (th_retro[1], _V(-sin(2*PI*TURN_proc), 0, -cos(2*PI*TURN_proc))); 
SetThrusterDir (th_main[2], _V(sin(2*PI*TURN_proc), 0, cos(2*PI*TURN_proc)));
SetThrusterDir (th_main[3], _V(sin(2*PI*TURN_proc), 0, cos(2*PI*TURN_proc)));
SetThrusterDir (th_retro[2], _V(-sin(2*PI*TURN_proc), 0, -cos(2*PI*TURN_proc)));
SetThrusterDir (th_retro[3], _V(-sin(2*PI*TURN_proc), 0, -cos(2*PI*TURN_proc)));

I also may need to adjust the speed control part as on turns more thrust so it may need more reverse force.
Code:
    VECTOR3 speedvec; // first we define our vector which will recieve the data
oapiGetFocusShipAirspeedVector(&speedvec);//then we retrieve its x,y,z


VECTOR3 newspeedvec;
newspeedvec.x=(speedvec.x*-500);
newspeedvec.y=(speedvec.y*-500);
newspeedvec.z=(speedvec.z*-500);

if (GetAirspeed() >10){
AddForce(newspeedvec,_V(0,0,0));}
 
Last edited:
Gave it a quick spin to test it out and it works perfectly. Will "deliver" it via an XR-5 mission soon.

Great work!
 
What would be nice to see in a VC for the LER?
Any ideas about the thrust issues
 
LER panels

mmmmmmm....digital radars to detect close range moon stones..to be analized closer...
 
With the cockpit view I think it has want it needs. But not sure. Need to get the thrust issue first though.
 
No idea why the speed in the x direction is slower. I did notice at first the speed increased but then went down and would not go up past .35 in the x direction.

Reverse thrust does the same.

As you can see in the image the direction of the thrust and the force.

Here is newest module:http://www.4shared.com/file/159694750/32f50b1f/_9__LER2.html
 
Last edited:
No idea why the speed in the x direction is slower. I did notice at first the speed increased but then went down and would not go up past .35 in the x direction.

Reverse thrust does the same.

As you can see in the image the direction of the thrust and the force.
I think you also need to move position of thrusters (i.e. SetThrusterRef) in the circle around the center of mass, additionally to their changed direction, when rotating wheels of vessel (from the quick look at code, and pictures).
 
Thanks. I looked at this:
SetThrusterRef
Reset the thrust force attack point of a thruster.
Synopsis:
void SetThrusterRef (
THRUSTER_HANDLE th,
const VECTOR3 &pos) const
Parameters:
th thruster identifier
pos new force attack point [m]
Notes:
· pos is specified in the vessel reference system.
· This function should be used whenever a thruster has been physically
moved in the vessel’s local frame of reference.
· If the vessel's centre of gravity, i.e. the origin of its reference system, is
moved with VESSEL::ShiftCG, the thruster positions are updated
automatically.
· The attack point has no influence on the linear force exerted on the vessel
by the thruster, but it affects the induced torque.

The thrusters are at:(1.5,0,0) and (-1.5,0,0). The direction of the thrust is based on the turn_proc/heading. The wheels just reflect that. I wonder ing the 2 thrusters on the side are causing that.
 
Thanks. I looked at this:
SetThrusterRef
Reset the thrust force attack point of a thruster.
Synopsis:
void SetThrusterRef (
THRUSTER_HANDLE th,
const VECTOR3 &pos) const
Parameters:
th thruster identifier
pos new force attack point [m]
Notes:
· pos is specified in the vessel reference system.
· This function should be used whenever a thruster has been physically
moved in the vessel’s local frame of reference.
· If the vessel's centre of gravity, i.e. the origin of its reference system, is
moved with VESSEL::ShiftCG, the thruster positions are updated
automatically.
· The attack point has no influence on the linear force exerted on the vessel
by the thruster, but it affects the induced torque.

The thrusters are at:(1.5,0,0) and (-1.5,0,0). The direction of the thrust is based on the turn_proc/heading. The wheels just reflect that. I wonder ing the 2 thrusters on the side are causing that.
It may be, but I'd need to compile the source myself to test it. Maybe I'll do this today evening. Also from the last test of new module, the speed in exact 90 degrees wheel direction is 0.00 for me, so it maybe something else, like wrong direction of thrusters (neutralized forces?).
 
I may move the thruster to 0,0,0 and just use the 2 other thrusters for rotating/spining. I will check the direction on the 2nd thrust also.
UPDATE:

I check the direction on the 2nd thruster and it was the same direction as the other so the 2 main thrusters fire in the same direction

I also made 1 thruster at 0,0,0 and increased the thrust but still speed drops when around 300-250 degrees
 
Last edited:
I may move the thruster to 0,0,0 and just use the 2 other thrusters for rotating/spining. I will check the direction on the 2nd thrust also.
UPDATE:

I check the direction on the 2nd thruster and it was the same direction as the other so the 2 main thrusters fire in the same direction

I also made 1 thruster at 0,0,0 and increased the thrust but still speed drops when around 300-250 degrees
I fixed it for you, and by the way added saving wheel heading to scenario, changed max speed to 2.78 m/s (= 10 km/h) instead of 10 m/s, and added few other improvements. Modified sources [highlight](without compiled module)[/highlight] are in attached file.
 

Attachments

Legacy Reviews

Legacy Add-on Reviews from Orbit Hangar Mods


Review by puma
Pros: Everything
Cons: Nothing
Review:
One of the best project Constellation addons.Very very realistic.It is a must have addon.


Review by axel
Pros: nice looking
Cons: to low weight
Review:
Its weight is only 5 kg ! Thats not very realistic. If i want it to carry as payload in a mission, it would be for free, my carrier would not feel the rover payload mass.
 
Back
Top