ManeuverPlanner#

public class ManeuverPlanner#

The Maneuver Planner window, which makes maneuver nodes for its operations, and executes them.

Note

MechJeb shares the operations, and most of their settings, between vessels.

OperationAdvancedTransfer getOperationAdvancedTransfer()#

The operation that transfers to another planet, at the departure that needs the least delta-v.

Game Scenes:

Flight

OperationApoapsis getOperationApoapsis()#

The operation that changes the apoapsis.

Game Scenes:

Flight

OperationCircularize getOperationCircularize()#

The operation that circularizes the orbit.

Game Scenes:

Flight

OperationCourseCorrection getOperationCourseCorrection()#

The operation that fine tunes the closest approach to the target.

Game Scenes:

Flight

OperationEccentricity getOperationEccentricity()#

The operation that changes the eccentricity.

Game Scenes:

Flight

OperationEllipticize getOperationEllipticize()#

The operation that changes both the periapsis and the apoapsis.

Game Scenes:

Flight

OperationInclination getOperationInclination()#

The operation that changes the inclination.

Game Scenes:

Flight

OperationInterplanetaryTransfer getOperationInterplanetaryTransfer()#

The operation that transfers to another planet.

Game Scenes:

Flight

OperationKillRelVel getOperationKillRelVel()#

The operation that matches velocities with the target.

Game Scenes:

Flight

OperationLambert getOperationLambert()#

The operation that intercepts the target at a chosen time.

Game Scenes:

Flight

OperationLan getOperationLan()#

The operation that changes the longitude of the ascending node.

Game Scenes:

Flight

OperationLongitude getOperationLongitude()#

The operation that changes the surface longitude of the apsis.

Game Scenes:

Flight

OperationMoonReturn getOperationMoonReturn()#

The operation that returns from a moon.

Game Scenes:

Flight

OperationPeriapsis getOperationPeriapsis()#

The operation that changes the periapsis.

Game Scenes:

Flight

OperationPlane getOperationPlane()#

The operation that matches planes with the target.

Game Scenes:

Flight

OperationResonantOrbit getOperationResonantOrbit()#

The operation that changes to a resonant orbit.

Game Scenes:

Flight

OperationSemiMajor getOperationSemiMajor()#

The operation that changes the semi-major axis.

Game Scenes:

Flight

OperationTransfer getOperationTransfer()#

The operation that transfers to the target.

Game Scenes:

Flight

void abortNodeExecution()#

Stop executing the maneuver nodes.

Game Scenes:

Flight

void executeAllNodes()#

Execute all the maneuver nodes. Throws an exception if the vessel has no maneuver node.

Game Scenes:

Flight

void executeNextNode()#

Execute the next maneuver node. Throws an exception if the vessel has no maneuver node.

Game Scenes:

Flight

boolean getAutowarp()#
void setAutowarp(boolean value)#

Whether to warp time to the burn.

Game Scenes:

Flight

boolean getExecutingNode()#

Whether a maneuver node is being executed.

Game Scenes:

Flight

double getLeadTime()#
void setLeadTime(double value)#

The time before the burn at which time warp stops, in seconds.

Game Scenes:

Flight

boolean getRCSOnly()#
void setRCSOnly(boolean value)#

Whether to burn with the RCS thrusters in place of the engines.

Game Scenes:

Flight

boolean getKillRollRotation()#
void setKillRollRotation(boolean value)#

Whether to stop the vessel’s roll before the burn.

Game Scenes:

Flight

public class OperationException#

Thrown when an operation cannot make its nodes, such as when it needs a target and there is none.

A subclass of krpc.client.ServerException.

TimeSelector#

public class TimeSelector#

The time of a maneuver.

double getCircularizeAltitude()#
void setCircularizeAltitude(double value)#

The altitude, in meters.

Game Scenes:

Flight

Note

Applies to TimeReference.ALTITUDE.

double getLeadTime()#
void setLeadTime(double value)#

The time from now, in seconds.

Game Scenes:

Flight

Note

Applies to TimeReference.X_FROM_NOW.

TimeReference getTimeReference()#
void setTimeReference(TimeReference value)#

The time reference. Throws an exception if set to a reference the operation does not allow.

Game Scenes:

Flight

public enum TimeReference#

The time reference of a maneuver. See TimeSelector.getTimeReference().

public TimeReference COMPUTED#

At the optimum time.

public TimeReference X_FROM_NOW#

After TimeSelector.getLeadTime().

public TimeReference APOAPSIS#

At the next apoapsis.

public TimeReference PERIAPSIS#

At the next periapsis.

public TimeReference ALTITUDE#

At TimeSelector.getCircularizeAltitude().

public TimeReference EQ_ASCENDING#

At the equatorial ascending node.

public TimeReference EQ_DESCENDING#

At the equatorial descending node.

public TimeReference REL_ASCENDING#

At the next ascending node with the target.

public TimeReference REL_DESCENDING#

At the next descending node with the target.

public TimeReference CLOSEST_APPROACH#

At the closest approach to the target.

public TimeReference EQ_HIGHEST_AD#

At the cheaper of the equatorial ascending and descending nodes.

public TimeReference EQ_NEAREST_AD#

At the nearer of the equatorial ascending and descending nodes.

public TimeReference REL_HIGHEST_AD#

At the cheaper of the ascending and descending nodes with the target.

public TimeReference REL_NEAREST_AD#

At the nearer of the ascending and descending nodes with the target.

Operations#

OperationAdvancedTransfer#

public class OperationAdvancedTransfer#

An interplanetary transfer to the target body, at the departure that needs the least delta-v before OperationAdvancedTransfer.getMaxArrivalTime().

Note

MechJeb searches for the departure in the background. The first call to MakeNodes starts the search, and throws an OperationException until it finishes. See OperationAdvancedTransfer.getSearching().

double getMaxArrivalTime()#
void setMaxArrivalTime(double value)#

The latest arrival time, as a time from now, in seconds.

Game Scenes:

Flight

boolean getIncludeCaptureBurn()#
void setIncludeCaptureBurn(boolean value)#

Whether to plan a capture burn at the destination.

Game Scenes:

Flight

double getPeriapsisHeight()#
void setPeriapsisHeight(double value)#

The altitude of the periapsis at the destination, in meters.

Game Scenes:

Flight

boolean getSearching()#

Whether MechJeb is searching for the departure.

Game Scenes:

Flight

int getSearchProgress()#

The progress of the search for the departure, as a percentage.

Game Scenes:

Flight

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

OperationApoapsis#

public class OperationApoapsis#

Change the apoapsis.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewApoapsis()#
void setNewApoapsis(double value)#

The new apoapsis altitude, in meters.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationCircularize#

public class OperationCircularize#

Circularize the orbit.

Note

To raise the periapsis to the apoapsis, set the time to TimeReference.APOAPSIS, and to lower the apoapsis to the periapsis, set it to TimeReference.PERIAPSIS. These are the cheapest.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationCourseCorrection#

public class OperationCourseCorrection#

Fine tune the closest approach to the target.

double getFinalPeriapsisAltitude()#
void setFinalPeriapsisAltitude(double value)#

The periapsis altitude at a target body, in meters.

Game Scenes:

Flight

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

double getInterceptDistance()#
void setInterceptDistance(double value)#

The closest approach distance to a target vessel, in meters.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

OperationEccentricity#

public class OperationEccentricity#

Change the eccentricity.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewEccentricity()#
void setNewEccentricity(double value)#

The new eccentricity.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationEllipticize#

public class OperationEllipticize#

Change both the periapsis and the apoapsis.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewApoapsis()#
void setNewApoapsis(double value)#

The new apoapsis altitude, in meters.

Game Scenes:

Flight

double getNewPeriapsis()#
void setNewPeriapsis(double value)#

The new periapsis altitude, in meters.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationInclination#

public class OperationInclination#

Change the inclination.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewInclination()#
void setNewInclination(double value)#

The new inclination, in degrees.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationInterplanetaryTransfer#

public class OperationInterplanetaryTransfer#

Transfer to another planet.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

boolean getWaitForPhaseAngle()#
void setWaitForPhaseAngle(boolean value)#

Whether to wait for the optimal phase angle. Otherwise the transfer happens now.

Game Scenes:

Flight

OperationKillRelVel#

public class OperationKillRelVel#

Match velocities with the target.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationLambert#

public class OperationLambert#

Intercept the target at a chosen time.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

double getInterceptInterval()#
void setInterceptInterval(double value)#

The time from the maneuver to the intercept, in seconds.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationLan#

public class OperationLan#

Change the longitude of the ascending node.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewLAN()#
void setNewLAN(double value)#

The new longitude of the ascending node, in degrees.

Game Scenes:

Flight

Note

MechJeb holds this value in the target controller of each vessel, as the longitude of the position target. Setting it also moves the position target.

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationLongitude#

public class OperationLongitude#

Change the surface longitude of the apsis.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewSurfaceLongitude()#
void setNewSurfaceLongitude(double value)#

The new surface longitude of the apsis after one orbit, in degrees.

Game Scenes:

Flight

Note

MechJeb holds this value in the target controller of each vessel, as the longitude of the position target. Setting it also moves the position target.

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationMoonReturn#

public class OperationMoonReturn#

Return from a moon to the body it orbits.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getMoonReturnAltitude()#
void setMoonReturnAltitude(double value)#

The approximate periapsis altitude at the body, in meters.

Game Scenes:

Flight

OperationPeriapsis#

public class OperationPeriapsis#

Change the periapsis.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewPeriapsis()#
void setNewPeriapsis(double value)#

The new periapsis altitude, in meters.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationPlane#

public class OperationPlane#

Match planes with the target.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationResonantOrbit#

public class OperationResonantOrbit#

Change to a resonant orbit, to place satellites in a constellation.

Note

Start from an orbit in the plane of the constellation. To deploy satellites, set the denominator to their number. A numerator one less than the denominator is the cheapest, though not the fastest. The two numbers must have no common factor.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

int getResonanceDenominator()#
void setResonanceDenominator(int value)#

The denominator of the ratio of the new orbital period to the current one.

Game Scenes:

Flight

int getResonanceNumerator()#
void setResonanceNumerator(int value)#

The numerator of the ratio of the new orbital period to the current one.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationSemiMajor#

public class OperationSemiMajor#

Change the semi-major axis.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

double getNewSemiMajorAxis()#
void setNewSemiMajorAxis(double value)#

The new semi-major axis, in meters.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight

OperationTransfer#

public class OperationTransfer#

A bi-impulsive (Hohmann) transfer to the target, within one sphere of influence. It suits a rendezvous with a vessel or a transfer to a moon.

Note

Despite the name, the transfer is often uni-impulsive. It happens at the selected time, or at the optimum time.

String getErrorMessage()#

The warning or error from the last call to MakeNodes, or an empty string.

Game Scenes:

Flight

java.util.List<SpaceCenter.Node> makeNodes()#

Make the maneuver nodes of the operation. Throws an OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Game Scenes:

Flight

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

boolean getCapture()#
void setCapture(boolean value)#

Whether the transfer ends in the target’s orbit. Without capture, it is an impact or a flyby.

Game Scenes:

Flight

boolean getPlanCapture()#
void setPlanCapture(boolean value)#

Whether to make a second node for the capture burn.

Game Scenes:

Flight

boolean getRendezvous()#
void setRendezvous(boolean value)#

Whether to meet the target, rather than reach its orbit.

Game Scenes:

Flight

double getLagTime()#
void setLagTime(double value)#

The time by which the vessel arrives behind the target, in seconds.

Game Scenes:

Flight

boolean getCoplanar()#
void setCoplanar(boolean value)#

Whether the transfer stays in the vessel’s orbital plane.

Game Scenes:

Flight

TimeSelector getTimeSelector()#

The time of the maneuver.

Game Scenes:

Flight