jrossignol / WaypointManager

MIT License
38 stars 14 forks source link

MechJeb integration #28

Open jrossignol opened 9 years ago

jrossignol commented 9 years ago

Not sure if this is possible, but requested by Dr. Jet on the forums:

Excellent mod! The only important feature lacking is MechJeb integration. I mean feeding contract waypoint coordinates to Landing Guidance or Rover Autopilot would be nice, no?

jrossignol commented 9 years ago

Info from @DMagic1 on the forum:

MechJeb landing guidance integration is actually very easy (assuming you don't mind using a small shim plugin, if you do mind that's another case...), as it's simple to plug in to the current MechJeb core and add a landing target; most of the complexity in SCANsat comes from the other way around, watching for a new landing target assigned by MechJeb.

DMagic1 commented 9 years ago

The watcher that I'm using to interface with MechJeb just checks if everything is valid and takes the landing point from MechJeb or assigns one from the SCANsat maps.

You can check it out here.

For a one-way thing, where you are only feeding coordinates to MechJeb, a custom GameEvent might work better. You might be able to avoid all of those constant verifying steps...