Jump to content

Recommended Posts

Since the autorove mod is not updated, and it does not seem like it will happen soon, I'm considering assume maintenance. However, my first attempt in getting it to work in KSP 1.1.2 was only partially successfull.

My first autorove ended up underground.... That's no good :confused:

Currently the mod is calculating the height at which to place the rover, at a given latitude/longitude on a specific body like this.

        internal static double surfaceHeight(double latitude, double longitude, CelestialBody body)
        {
            Vector3d pqsRadialVector = QuaternionD.AngleAxis(longitude, Vector3d.down) * QuaternionD.AngleAxis(latitude, Vector3d.forward) * Vector3d.right;
            double altitude = body.pqsController.GetSurfaceHeight(pqsRadialVector) - body.pqsController.radius;

            return altitude;
        }

Now my question is, what is the best way to calculate the height to put the vessel after moving it. There must be some robust way of determining where to spawn the vessel, I'm just not sure how.

 

Can anybody help me figuring this out?

Link to comment
Share on other sites

HULLO

I'm not sure what the question is though. That code does give you the height at this lat/long coordinates. After that, if you want to spawn a vehicle on the surface,there isnt an easy way to do it. Something like the HyperEdit autoland feature works.

Link to comment
Share on other sites

3 hours ago, stupid_chris said:

HULLO

I'm not sure what the question is though. That code does give you the height at this lat/long coordinates. After that, if you want to spawn a vehicle on the surface,there isnt an easy way to do it. Something like the HyperEdit autoland feature works.

I do get your confusion. The fact is that I'm looking at updating autorove mod, but if I cannot get it to work there is no point. 

Upon testing I ran into the issue, that the rover ended up underground, hence my question regarding surface height. I would like to remove this issye which I didn't notice in ksp 1.05.

Link to comment
Share on other sites

Just now, Warezcrawler said:

I do get your confusion. The fact is that I'm looking at updating autorove mod, but if I cannot get it to work there is no point. 

Upon testing I ran into the issue, that the rover ended up underground, hence my question regarding surface height. I would like to remove this issye which I didn't notice in ksp 1.05.

Except for anyone not knowing what the autorove mode is, that's quite nebulous. Also I'll repeat myself, but if you're trying to spawn a vehicle on the surface, the safe way to do it is like HyperEdit does it.

Link to comment
Share on other sites

1 minute ago, stupid_chris said:

Except for anyone not knowing what the autorove mode is, that's quite nebulous. Also I'll repeat myself, but if you're trying to spawn a vehicle on the surface, the safe way to do it is like HyperEdit does it.

Autorove http://forum.kerbalspaceprogram.com/index.php?/topic/129363-105autorove-autonomous-rovermovement-in-the-background/

I didn't think about reference the mod directly. Sorry.

Well The mod is moving a rover in the background, so that you don't need to drive it manually. So maybe it is like spawning. It changes the coordinates of the vessel, and to do that it really needs the height to place it at.

I will look at hyperedit again, but that one is not easy.... thanks.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...