ManeuverPlanner#
- 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 OperationAdvancedTransfer { get; }#
The operation that transfers to another planet, at the departure that needs the least delta-v.
- Game Scenes:
Flight
- OperationApoapsis OperationApoapsis { get; }#
The operation that changes the apoapsis.
- Game Scenes:
Flight
- OperationCircularize OperationCircularize { get; }#
The operation that circularizes the orbit.
- Game Scenes:
Flight
- OperationCourseCorrection OperationCourseCorrection { get; }#
The operation that fine tunes the closest approach to the target.
- Game Scenes:
Flight
- OperationEccentricity OperationEccentricity { get; }#
The operation that changes the eccentricity.
- Game Scenes:
Flight
- OperationEllipticize OperationEllipticize { get; }#
The operation that changes both the periapsis and the apoapsis.
- Game Scenes:
Flight
- OperationInclination OperationInclination { get; }#
The operation that changes the inclination.
- Game Scenes:
Flight
- OperationKillRelVel OperationKillRelVel { get; }#
The operation that matches velocities with the target.
- Game Scenes:
Flight
- OperationLambert OperationLambert { get; }#
The operation that intercepts the target at a chosen time.
- Game Scenes:
Flight
- OperationLan OperationLan { get; }#
The operation that changes the longitude of the ascending node.
- Game Scenes:
Flight
- OperationLongitude OperationLongitude { get; }#
The operation that changes the surface longitude of the apsis.
- Game Scenes:
Flight
- OperationMoonReturn OperationMoonReturn { get; }#
The operation that returns from a moon.
- Game Scenes:
Flight
- OperationPeriapsis OperationPeriapsis { get; }#
The operation that changes the periapsis.
- Game Scenes:
Flight
- OperationPlane OperationPlane { get; }#
The operation that matches planes with the target.
- Game Scenes:
Flight
- OperationResonantOrbit OperationResonantOrbit { get; }#
The operation that changes to a resonant orbit.
- Game Scenes:
Flight
- OperationSemiMajor OperationSemiMajor { get; }#
The operation that changes the semi-major axis.
- Game Scenes:
Flight
- OperationTransfer OperationTransfer { get; }#
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
- bool Autowarp { get; set; }#
Whether to warp time to the burn.
- Game Scenes:
Flight
Note
The same setting as
RendezvousAutopilot.Autowarp.
- double LeadTime { get; set; }#
The time before the burn at which time warp stops, in seconds.
- Game Scenes:
Flight
- bool RCSOnly { get; set; }#
Whether to burn with the RCS thrusters in place of the engines.
- Game Scenes:
Flight
- bool KillRollRotation { get; set; }#
Whether to stop the vessel’s roll before the burn.
- Game Scenes:
Flight
- OperationStationaryOrbit OperationStationaryOrbit { get; }#
The operation that transfers to the stationary orbit of the body.
- Game Scenes:
Flight
- double InitialWarpLeadTime { get; set; }#
The time before the burn at which the first, coarse time warp stops, in seconds.
- Game Scenes:
Flight
Note
A burn further away than this is warped to in two steps: to this time before it, then to
ManeuverPlanner.LeadTimeonce the vessel is aligned.
- 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#
- class TimeSelector#
The time of a maneuver.
- double CircularizeAltitude { get; set; }#
The altitude, in meters.
- Game Scenes:
Flight
Note
Applies to
TimeReference.Altitude.
- double LeadTime { get; set; }#
The time from now, in seconds.
- Game Scenes:
Flight
Note
Applies to
TimeReference.XFromNow.
- TimeReference TimeReference { get; set; }#
The time reference. Throws an exception if set to a reference the operation does not allow.
- Game Scenes:
Flight
- enum TimeReference#
The time reference of a maneuver. See
TimeSelector.TimeReference.- Computed#
At the optimum time.
- XFromNow#
After
TimeSelector.LeadTime.
- Apoapsis#
At the next apoapsis.
- Periapsis#
At the next periapsis.
- Altitude#
- EqAscending#
At the equatorial ascending node.
- EqDescending#
At the equatorial descending node.
- RelAscending#
At the next ascending node with the target.
- RelDescending#
At the next descending node with the target.
- ClosestApproach#
At the closest approach to the target.
- EqHighestAd#
At the cheaper of the equatorial ascending and descending nodes.
- EqNearestAd#
At the nearer of the equatorial ascending and descending nodes.
- RelHighestAd#
At the cheaper of the ascending and descending nodes with the target.
- RelNearestAd#
At the nearer of the ascending and descending nodes with the target.
Operations#
OperationAdvancedTransfer#
- class OperationAdvancedTransfer#
An interplanetary transfer to the target body. The departure and transfer time come from a search, chosen as
OperationAdvancedTransfer.Modesets.Note
MechJeb searches in the background. The first call to
MakeNodesstarts the search, and throws anOperationExceptionuntil it finishes. SeeOperationAdvancedTransfer.Searching.- double MaxArrivalTime { get; set; }#
The latest arrival time, as a time from now, in seconds.
- Game Scenes:
Flight
Note
Applies in the
AdvancedTransferMode.LimitedTimemode.MakeNodescomputes a default for a new target, from the synodic period and the transfer time, unless it was set while the target was selected.
- bool IncludeCaptureBurn { get; set; }#
Whether to plan a capture burn at the destination.
- Game Scenes:
Flight
- double PeriapsisHeight { get; set; }#
The altitude of the periapsis at the destination, in meters.
- Game Scenes:
Flight
- int SearchProgress { get; }#
The progress of the search for the departure, as a percentage.
- Game Scenes:
Flight
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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.
- AdvancedTransferMode Mode { get; set; }#
How the search chooses the departure and transfer time.
- Game Scenes:
Flight
Note
Setting it stops a search, so the next
MakeNodesstarts one.
- bool TargetInclinationFlag { get; set; }#
Whether to aim for
OperationAdvancedTransfer.TargetInclinationat the target.- Game Scenes:
Flight
- double TargetInclination { get; set; }#
The inclination of the orbit at the target, in degrees.
- Game Scenes:
Flight
Note
- void SelectLowestDeltaV ()#
Select the departure and transfer time that need the least delta-v. The search selects them when it finishes. Throws an exception if
OperationAdvancedTransfer.Modeis notAdvancedTransferMode.Porkchop, or the search has not finished.- Game Scenes:
Flight
- void SelectAsap ()#
Select the earliest departure, with the transfer time that needs the least delta-v for it. Throws an exception if
OperationAdvancedTransfer.Modeis notAdvancedTransferMode.Porkchop, or the search has not finished.- Game Scenes:
Flight
- void Select (double departureTime, double duration)#
Select the departure and transfer time nearest the given ones. Throws an exception if
OperationAdvancedTransfer.Modeis notAdvancedTransferMode.Porkchop, the search has not finished, or there is no transfer near those times.- Parameters:
departureTime – The universal time of the departure, in seconds.
duration – The transfer time, in seconds.
- Game Scenes:
Flight
- double SelectedDepartureTime { get; }#
The universal time of the selected departure, in seconds. Throws an exception if the search has not finished.
- Game Scenes:
Flight
- enum AdvancedTransferMode#
How the advanced transfer chooses the departure and transfer time. See
OperationAdvancedTransfer.Mode.- LimitedTime#
The transfer that needs the least delta-v and arrives before
OperationAdvancedTransfer.MaxArrivalTime.
- Porkchop#
A transfer from a grid of departures and transfer times, the porkchop plot of MechJeb’s window. The one that needs the least delta-v, unless another is selected.
OperationApoapsis#
- class OperationApoapsis#
Change the apoapsis.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationCircularize#
- 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 toTimeReference.Periapsis. These are the cheapest.- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationCourseCorrection#
- class OperationCourseCorrection#
Fine tune the closest approach to the target.
- double FinalPeriapsisAltitude { get; set; }#
The periapsis altitude at a target body, in meters.
- Game Scenes:
Flight
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- double InterceptDistance { get; set; }#
The closest approach distance to a target vessel, in meters.
- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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.
- bool InclinationFlag { get; set; }#
Whether to aim for
OperationCourseCorrection.Inclinationat the target.- Game Scenes:
Flight
Note
Applies when the target is a celestial body.
OperationEccentricity#
- class OperationEccentricity#
Change the eccentricity.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationEllipticize#
- class OperationEllipticize#
Change both the periapsis and the apoapsis.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationInclination#
- class OperationInclination#
Change the inclination.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationKillRelVel#
- class OperationKillRelVel#
Match velocities with the target.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationLambert#
- class OperationLambert#
Intercept the target at a chosen time.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- double InterceptInterval { get; set; }#
The time from the maneuver to the intercept, in seconds.
- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationLan#
- class OperationLan#
Change the longitude of the ascending node.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 NewLAN { get; set; }#
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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationLongitude#
- class OperationLongitude#
Change the surface longitude of the apsis.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 NewSurfaceLongitude { get; set; }#
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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationMoonReturn#
- class OperationMoonReturn#
Return from a moon to the body it orbits.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 MoonReturnAltitude { get; set; }#
The approximate periapsis altitude at the body, in meters.
- Game Scenes:
Flight
- bool InclinationFlag { get; set; }#
Whether to aim for
OperationMoonReturn.Inclination.- Game Scenes:
Flight
- double Inclination { get; set; }#
The inclination of the orbit around the body after the return, in degrees.
- Game Scenes:
Flight
Note
Requires
OperationMoonReturn.InclinationFlag.
OperationPeriapsis#
- class OperationPeriapsis#
Change the periapsis.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationPlane#
- class OperationPlane#
Match planes with the target.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationResonantOrbit#
- 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 ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 ResonanceDenominator { get; set; }#
The denominator of the ratio of the new orbital period to the current one.
- Game Scenes:
Flight
- int ResonanceNumerator { get; set; }#
The numerator of the ratio of the new orbital period to the current one.
- Game Scenes:
Flight
- TimeSelector TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationSemiMajor#
- class OperationSemiMajor#
Change the semi-major axis.
- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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 TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight
OperationStationaryOrbit#
- class OperationStationaryOrbit#
A transfer to the stationary orbit of the body, above
OperationStationaryOrbit.TargetLongitude.Note
The transfer is a Hohmann transfer with a second node to circularize. Throws an
OperationExceptionfromMakeNodesif the stationary orbit is outside the body’s sphere of influence.- string ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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.
OperationTransfer#
- 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 ErrorMessage { get; }#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
- IList<SpaceCenter.Node> MakeNodes ()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif 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.
- bool Capture { get; set; }#
Whether the transfer ends in the target’s orbit. Without capture, it is an impact or a flyby.
- Game Scenes:
Flight
- bool PlanCapture { get; set; }#
Whether to make a second node for the capture burn.
- Game Scenes:
Flight
Note
Requires
OperationTransfer.Capture. For a celestial body target, also requiresOperationTransfer.MatchOrbitor aOperationTransfer.LagTime.
- bool MatchOrbit { get; set; }#
Whether to reach the target’s orbit, ahead of or behind the target, rather than meet the target.
- Game Scenes:
Flight
Note
Requires
OperationTransfer.Capture.
- double LagTime { get; set; }#
The time by which the vessel arrives behind the target, in seconds.
- Game Scenes:
Flight
Note
Ignored with
OperationTransfer.MatchOrbit.
- bool Coplanar { get; set; }#
Whether the transfer stays in the vessel’s orbital plane.
- Game Scenes:
Flight
- TimeSelector TimeSelector { get; }#
The time of the maneuver.
- Game Scenes:
Flight