.. default-domain:: c .. highlight:: c ManeuverPlanner =============== .. type:: krpc_MechJeb_ManeuverPlanner_t 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. .. macro:: KRPC_CLASS_MECHJEB_MANEUVERPLANNER The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationAdvancedTransfer(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that transfers to another planet, at the departure that needs the least delta-v. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationApoapsis(krpc_connection_t connection, krpc_MechJeb_OperationApoapsis_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes the apoapsis. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationCircularize(krpc_connection_t connection, krpc_MechJeb_OperationCircularize_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that circularizes the orbit. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationCourseCorrection(krpc_connection_t connection, krpc_MechJeb_OperationCourseCorrection_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that fine tunes the closest approach to the target. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationEccentricity(krpc_connection_t connection, krpc_MechJeb_OperationEccentricity_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes the eccentricity. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationEllipticize(krpc_connection_t connection, krpc_MechJeb_OperationEllipticize_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes both the periapsis and the apoapsis. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationInclination(krpc_connection_t connection, krpc_MechJeb_OperationInclination_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes the inclination. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationKillRelVel(krpc_connection_t connection, krpc_MechJeb_OperationKillRelVel_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that matches velocities with the target. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationLambert(krpc_connection_t connection, krpc_MechJeb_OperationLambert_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that intercepts the target at a chosen time. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationLan(krpc_connection_t connection, krpc_MechJeb_OperationLan_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes the longitude of the ascending node. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationLongitude(krpc_connection_t connection, krpc_MechJeb_OperationLongitude_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes the surface longitude of the apsis. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationMoonReturn(krpc_connection_t connection, krpc_MechJeb_OperationMoonReturn_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that returns from a moon. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationPeriapsis(krpc_connection_t connection, krpc_MechJeb_OperationPeriapsis_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes the periapsis. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationPlane(krpc_connection_t connection, krpc_MechJeb_OperationPlane_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that matches planes with the target. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationResonantOrbit(krpc_connection_t connection, krpc_MechJeb_OperationResonantOrbit_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes to a resonant orbit. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationSemiMajor(krpc_connection_t connection, krpc_MechJeb_OperationSemiMajor_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that changes the semi-major axis. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationTransfer(krpc_connection_t connection, krpc_MechJeb_OperationTransfer_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that transfers to the target. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_AbortNodeExecution(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance) Stop executing the maneuver nodes. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_ExecuteAllNodes(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance) Execute all the maneuver nodes. Throws an exception if the vessel has no maneuver node. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_ExecuteNextNode(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance) Execute the next maneuver node. Throws an exception if the vessel has no maneuver node. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_Autowarp(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_set_Autowarp(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance, bool value) Whether to warp time to the burn. :Game Scenes: Flight .. note:: The same setting as :func:`krpc_MechJeb_RendezvousAutopilot_Autowarp`. .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_ExecutingNode(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) Whether a maneuver node is being executed. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_LeadTime(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_set_LeadTime(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance, double value) The time before the burn at which time warp stops, in seconds. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_RCSOnly(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_set_RCSOnly(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance, bool value) Whether to burn with the RCS thrusters in place of the engines. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_KillRollRotation(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_set_KillRollRotation(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance, bool value) Whether to stop the vessel's roll before the burn. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_OperationStationaryOrbit(krpc_connection_t connection, krpc_MechJeb_OperationStationaryOrbit_t * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) The operation that transfers to the stationary orbit of the body. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_InitialWarpLeadTime(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_set_InitialWarpLeadTime(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance, double value) 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 :func:`krpc_MechJeb_ManeuverPlanner_LeadTime` once the vessel is aligned. .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_AlignedTolerance(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_set_AlignedTolerance(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance, double value) The angle from the burn direction within which the burn starts, in degrees. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_WarpAlignedTolerance(krpc_connection_t connection, double * returnValue, krpc_MechJeb_ManeuverPlanner_t instance) .. function:: krpc_error_t krpc_MechJeb_ManeuverPlanner_set_WarpAlignedTolerance(krpc_connection_t connection, krpc_MechJeb_ManeuverPlanner_t instance, double value) The angle from the burn direction within which time warp to the burn starts, in degrees. :Game Scenes: Flight .. macro:: KRPC_EXCEPTION_MECHJEB_OPERATIONEXCEPTION Thrown when an operation cannot make its nodes, such as when it needs a target and there is none. The service and exception ids of the exception, for :macro:`KRPC_IS_EXCEPTION`. A call that fails with it returns :macro:`KRPC_ERROR_SERVER`. TimeSelector ------------ .. type:: krpc_MechJeb_TimeSelector_t The time of a maneuver. .. macro:: KRPC_CLASS_MECHJEB_TIMESELECTOR The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_TimeSelector_CircularizeAltitude(krpc_connection_t connection, double * returnValue, krpc_MechJeb_TimeSelector_t instance) .. function:: krpc_error_t krpc_MechJeb_TimeSelector_set_CircularizeAltitude(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t instance, double value) The altitude, in meters. :Game Scenes: Flight .. note:: Applies to :macro:`KRPC_MECHJEB_TIMEREFERENCE_ALTITUDE`. .. function:: krpc_error_t krpc_MechJeb_TimeSelector_LeadTime(krpc_connection_t connection, double * returnValue, krpc_MechJeb_TimeSelector_t instance) .. function:: krpc_error_t krpc_MechJeb_TimeSelector_set_LeadTime(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t instance, double value) The time from now, in seconds. :Game Scenes: Flight .. note:: Applies to :macro:`KRPC_MECHJEB_TIMEREFERENCE_XFROMNOW`. .. function:: krpc_error_t krpc_MechJeb_TimeSelector_TimeReference(krpc_connection_t connection, krpc_MechJeb_TimeReference_t * returnValue, krpc_MechJeb_TimeSelector_t instance) .. function:: krpc_error_t krpc_MechJeb_TimeSelector_set_TimeReference(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t instance, krpc_MechJeb_TimeReference_t value) The time reference. Throws an exception if set to a reference the operation does not allow. :Game Scenes: Flight .. type:: krpc_MechJeb_TimeReference_t The time reference of a maneuver. See :func:`krpc_MechJeb_TimeSelector_TimeReference`. .. macro:: KRPC_ENUMERATION_MECHJEB_TIMEREFERENCE The service and enumeration ids of the enumeration, for :func:`krpc_KRPC_Type_EnumerationTypeById` and :func:`krpc_KRPC_Expression_ConstantEnumById`. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_COMPUTED At the optimum time. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_XFROMNOW After :func:`krpc_MechJeb_TimeSelector_LeadTime`. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_APOAPSIS At the next apoapsis. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_PERIAPSIS At the next periapsis. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_ALTITUDE At :func:`krpc_MechJeb_TimeSelector_CircularizeAltitude`. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_EQASCENDING At the equatorial ascending node. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_EQDESCENDING At the equatorial descending node. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_RELASCENDING At the next ascending node with the target. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_RELDESCENDING At the next descending node with the target. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_CLOSESTAPPROACH At the closest approach to the target. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_EQHIGHESTAD At the cheaper of the equatorial ascending and descending nodes. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_EQNEARESTAD At the nearer of the equatorial ascending and descending nodes. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_RELHIGHESTAD At the cheaper of the ascending and descending nodes with the target. .. macro:: KRPC_MECHJEB_TIMEREFERENCE_RELNEARESTAD At the nearer of the ascending and descending nodes with the target. Operations ---------- OperationAdvancedTransfer ^^^^^^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationAdvancedTransfer_t An interplanetary transfer to the target body. The departure and transfer time come from a search, chosen as :func:`krpc_MechJeb_OperationAdvancedTransfer_Mode` sets. .. note:: MechJeb searches in the background. The first call to ``MakeNodes`` starts the search, and throws an :macro:`KRPC_EXCEPTION_MECHJEB_OPERATIONEXCEPTION` until it finishes. See :func:`krpc_MechJeb_OperationAdvancedTransfer_Searching`. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONADVANCEDTRANSFER The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_MaxArrivalTime(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_set_MaxArrivalTime(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance, double value) The latest arrival time, as a time from now, in seconds. :Game Scenes: Flight .. note:: Applies in the :macro:`KRPC_MECHJEB_ADVANCEDTRANSFERMODE_LIMITEDTIME` mode. ``MakeNodes`` computes a default for a new target, from the synodic period and the transfer time, unless it was set while the target was selected. .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_IncludeCaptureBurn(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_set_IncludeCaptureBurn(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance, bool value) Whether to plan a capture burn at the destination. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_PeriapsisHeight(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_set_PeriapsisHeight(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance, double value) The altitude of the periapsis at the destination, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_Searching(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) Whether MechJeb is searching for the departure. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_SearchProgress(krpc_connection_t connection, int32_t * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) The progress of the search for the departure, as a percentage. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_Mode(krpc_connection_t connection, krpc_MechJeb_AdvancedTransferMode_t * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_set_Mode(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance, krpc_MechJeb_AdvancedTransferMode_t value) How the search chooses the departure and transfer time. :Game Scenes: Flight .. note:: Setting it stops a search, so the next ``MakeNodes`` starts one. .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_TargetInclinationFlag(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_set_TargetInclinationFlag(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance, bool value) Whether to aim for :func:`krpc_MechJeb_OperationAdvancedTransfer_TargetInclination` at the target. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_TargetInclination(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_set_TargetInclination(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance, double value) The inclination of the orbit at the target, in degrees. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_OperationAdvancedTransfer_TargetInclinationFlag`. .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_SearchFailed(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) Whether the search finished and found no transfer. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_SelectLowestDeltaV(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance) Select the departure and transfer time that need the least delta-v. The search selects them when it finishes. Throws an exception if :func:`krpc_MechJeb_OperationAdvancedTransfer_Mode` is not :macro:`KRPC_MECHJEB_ADVANCEDTRANSFERMODE_PORKCHOP`, or the search has not finished. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_SelectAsap(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance) Select the earliest departure, with the transfer time that needs the least delta-v for it. Throws an exception if :func:`krpc_MechJeb_OperationAdvancedTransfer_Mode` is not :macro:`KRPC_MECHJEB_ADVANCEDTRANSFERMODE_PORKCHOP`, or the search has not finished. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_Select(krpc_connection_t connection, krpc_MechJeb_OperationAdvancedTransfer_t instance, double departureTime, double duration) Select the departure and transfer time nearest the given ones. Throws an exception if :func:`krpc_MechJeb_OperationAdvancedTransfer_Mode` is not :macro:`KRPC_MECHJEB_ADVANCEDTRANSFERMODE_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 .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_SelectedDepartureTime(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) The universal time of the selected departure, in seconds. Throws an exception if the search has not finished. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_SelectedDuration(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) The selected transfer time, in seconds. Throws an exception if the search has not finished. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationAdvancedTransfer_SelectedDeltaV(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationAdvancedTransfer_t instance) The delta-v of the selected transfer that the search estimates, in :math:`\mathrm{m/s}`. Throws an exception if the search has not finished. :Game Scenes: Flight .. type:: krpc_MechJeb_AdvancedTransferMode_t How the advanced transfer chooses the departure and transfer time. See :func:`krpc_MechJeb_OperationAdvancedTransfer_Mode`. .. macro:: KRPC_ENUMERATION_MECHJEB_ADVANCEDTRANSFERMODE The service and enumeration ids of the enumeration, for :func:`krpc_KRPC_Type_EnumerationTypeById` and :func:`krpc_KRPC_Expression_ConstantEnumById`. .. macro:: KRPC_MECHJEB_ADVANCEDTRANSFERMODE_LIMITEDTIME The transfer that needs the least delta-v and arrives before :func:`krpc_MechJeb_OperationAdvancedTransfer_MaxArrivalTime`. .. macro:: KRPC_MECHJEB_ADVANCEDTRANSFERMODE_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 ^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationApoapsis_t Change the apoapsis. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONAPOAPSIS The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationApoapsis_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationApoapsis_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationApoapsis_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationApoapsis_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationApoapsis_NewApoapsis(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationApoapsis_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationApoapsis_set_NewApoapsis(krpc_connection_t connection, krpc_MechJeb_OperationApoapsis_t instance, double value) The new apoapsis altitude, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationApoapsis_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationApoapsis_t instance) The time of the maneuver. :Game Scenes: Flight OperationCircularize ^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationCircularize_t Circularize the orbit. .. note:: To raise the periapsis to the apoapsis, set the time to :macro:`KRPC_MECHJEB_TIMEREFERENCE_APOAPSIS`, and to lower the apoapsis to the periapsis, set it to :macro:`KRPC_MECHJEB_TIMEREFERENCE_PERIAPSIS`. These are the cheapest. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONCIRCULARIZE The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationCircularize_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationCircularize_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationCircularize_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationCircularize_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationCircularize_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationCircularize_t instance) The time of the maneuver. :Game Scenes: Flight OperationCourseCorrection ^^^^^^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationCourseCorrection_t Fine tune the closest approach to the target. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONCOURSECORRECTION The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_FinalPeriapsisAltitude(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationCourseCorrection_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_set_FinalPeriapsisAltitude(krpc_connection_t connection, krpc_MechJeb_OperationCourseCorrection_t instance, double value) The periapsis altitude at a target body, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationCourseCorrection_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_InterceptDistance(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationCourseCorrection_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_set_InterceptDistance(krpc_connection_t connection, krpc_MechJeb_OperationCourseCorrection_t instance, double value) The closest approach distance to a target vessel, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationCourseCorrection_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_InclinationFlag(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationCourseCorrection_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_set_InclinationFlag(krpc_connection_t connection, krpc_MechJeb_OperationCourseCorrection_t instance, bool value) Whether to aim for :func:`krpc_MechJeb_OperationCourseCorrection_Inclination` at the target. :Game Scenes: Flight .. note:: Applies when the target is a celestial body. .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_Inclination(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationCourseCorrection_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationCourseCorrection_set_Inclination(krpc_connection_t connection, krpc_MechJeb_OperationCourseCorrection_t instance, double value) The inclination of the orbit at the target, in degrees. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_OperationCourseCorrection_InclinationFlag`. OperationEccentricity ^^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationEccentricity_t Change the eccentricity. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONECCENTRICITY The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationEccentricity_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationEccentricity_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationEccentricity_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationEccentricity_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationEccentricity_NewEccentricity(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationEccentricity_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationEccentricity_set_NewEccentricity(krpc_connection_t connection, krpc_MechJeb_OperationEccentricity_t instance, double value) The new eccentricity. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationEccentricity_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationEccentricity_t instance) The time of the maneuver. :Game Scenes: Flight OperationEllipticize ^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationEllipticize_t Change both the periapsis and the apoapsis. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONELLIPTICIZE The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationEllipticize_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationEllipticize_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationEllipticize_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationEllipticize_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationEllipticize_NewApoapsis(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationEllipticize_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationEllipticize_set_NewApoapsis(krpc_connection_t connection, krpc_MechJeb_OperationEllipticize_t instance, double value) The new apoapsis altitude, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationEllipticize_NewPeriapsis(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationEllipticize_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationEllipticize_set_NewPeriapsis(krpc_connection_t connection, krpc_MechJeb_OperationEllipticize_t instance, double value) The new periapsis altitude, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationEllipticize_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationEllipticize_t instance) The time of the maneuver. :Game Scenes: Flight OperationInclination ^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationInclination_t Change the inclination. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONINCLINATION The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationInclination_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationInclination_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationInclination_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationInclination_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationInclination_NewInclination(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationInclination_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationInclination_set_NewInclination(krpc_connection_t connection, krpc_MechJeb_OperationInclination_t instance, double value) The new inclination, in degrees. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationInclination_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationInclination_t instance) The time of the maneuver. :Game Scenes: Flight OperationKillRelVel ^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationKillRelVel_t Match velocities with the target. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONKILLRELVEL The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationKillRelVel_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationKillRelVel_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationKillRelVel_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationKillRelVel_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationKillRelVel_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationKillRelVel_t instance) The time of the maneuver. :Game Scenes: Flight OperationLambert ^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationLambert_t Intercept the target at a chosen time. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONLAMBERT The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationLambert_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationLambert_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationLambert_InterceptInterval(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationLambert_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationLambert_set_InterceptInterval(krpc_connection_t connection, krpc_MechJeb_OperationLambert_t instance, double value) The time from the maneuver to the intercept, in seconds. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationLambert_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationLambert_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationLambert_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationLambert_t instance) The time of the maneuver. :Game Scenes: Flight OperationLan ^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationLan_t Change the longitude of the ascending node. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONLAN The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationLan_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationLan_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationLan_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationLan_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationLan_NewLAN(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationLan_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationLan_set_NewLAN(krpc_connection_t connection, krpc_MechJeb_OperationLan_t instance, 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. .. function:: krpc_error_t krpc_MechJeb_OperationLan_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationLan_t instance) The time of the maneuver. :Game Scenes: Flight OperationLongitude ^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationLongitude_t Change the surface longitude of the apsis. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONLONGITUDE The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationLongitude_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationLongitude_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationLongitude_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationLongitude_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationLongitude_NewSurfaceLongitude(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationLongitude_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationLongitude_set_NewSurfaceLongitude(krpc_connection_t connection, krpc_MechJeb_OperationLongitude_t instance, 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. .. function:: krpc_error_t krpc_MechJeb_OperationLongitude_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationLongitude_t instance) The time of the maneuver. :Game Scenes: Flight OperationMoonReturn ^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationMoonReturn_t Return from a moon to the body it orbits. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONMOONRETURN The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationMoonReturn_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationMoonReturn_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_MoonReturnAltitude(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationMoonReturn_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_set_MoonReturnAltitude(krpc_connection_t connection, krpc_MechJeb_OperationMoonReturn_t instance, double value) The approximate periapsis altitude at the body, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_InclinationFlag(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationMoonReturn_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_set_InclinationFlag(krpc_connection_t connection, krpc_MechJeb_OperationMoonReturn_t instance, bool value) Whether to aim for :func:`krpc_MechJeb_OperationMoonReturn_Inclination`. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_Inclination(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationMoonReturn_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationMoonReturn_set_Inclination(krpc_connection_t connection, krpc_MechJeb_OperationMoonReturn_t instance, double value) The inclination of the orbit around the body after the return, in degrees. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_OperationMoonReturn_InclinationFlag`. OperationPeriapsis ^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationPeriapsis_t Change the periapsis. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONPERIAPSIS The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationPeriapsis_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationPeriapsis_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationPeriapsis_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationPeriapsis_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationPeriapsis_NewPeriapsis(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationPeriapsis_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationPeriapsis_set_NewPeriapsis(krpc_connection_t connection, krpc_MechJeb_OperationPeriapsis_t instance, double value) The new periapsis altitude, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationPeriapsis_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationPeriapsis_t instance) The time of the maneuver. :Game Scenes: Flight OperationPlane ^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationPlane_t Match planes with the target. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONPLANE The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationPlane_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationPlane_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationPlane_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationPlane_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationPlane_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationPlane_t instance) The time of the maneuver. :Game Scenes: Flight OperationResonantOrbit ^^^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationResonantOrbit_t 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. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONRESONANTORBIT The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationResonantOrbit_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationResonantOrbit_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationResonantOrbit_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationResonantOrbit_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationResonantOrbit_ResonanceDenominator(krpc_connection_t connection, int32_t * returnValue, krpc_MechJeb_OperationResonantOrbit_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationResonantOrbit_set_ResonanceDenominator(krpc_connection_t connection, krpc_MechJeb_OperationResonantOrbit_t instance, int32_t value) The denominator of the ratio of the new orbital period to the current one. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationResonantOrbit_ResonanceNumerator(krpc_connection_t connection, int32_t * returnValue, krpc_MechJeb_OperationResonantOrbit_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationResonantOrbit_set_ResonanceNumerator(krpc_connection_t connection, krpc_MechJeb_OperationResonantOrbit_t instance, int32_t value) The numerator of the ratio of the new orbital period to the current one. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationResonantOrbit_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationResonantOrbit_t instance) The time of the maneuver. :Game Scenes: Flight OperationSemiMajor ^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationSemiMajor_t Change the semi-major axis. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONSEMIMAJOR The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationSemiMajor_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationSemiMajor_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationSemiMajor_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationSemiMajor_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationSemiMajor_NewSemiMajorAxis(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationSemiMajor_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationSemiMajor_set_NewSemiMajorAxis(krpc_connection_t connection, krpc_MechJeb_OperationSemiMajor_t instance, double value) The new semi-major axis, in meters. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationSemiMajor_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationSemiMajor_t instance) The time of the maneuver. :Game Scenes: Flight OperationStationaryOrbit ^^^^^^^^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationStationaryOrbit_t A transfer to the stationary orbit of the body, above :func:`krpc_MechJeb_OperationStationaryOrbit_TargetLongitude`. .. note:: The transfer is a Hohmann transfer with a second node to circularize. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_OPERATIONEXCEPTION` from ``MakeNodes`` if the stationary orbit is outside the body's sphere of influence. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONSTATIONARYORBIT The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationStationaryOrbit_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationStationaryOrbit_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationStationaryOrbit_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationStationaryOrbit_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationStationaryOrbit_TargetLongitude(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationStationaryOrbit_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationStationaryOrbit_set_TargetLongitude(krpc_connection_t connection, krpc_MechJeb_OperationStationaryOrbit_t instance, double value) The surface longitude to stay above, in degrees. :Game Scenes: Flight OperationTransfer ^^^^^^^^^^^^^^^^^ .. type:: krpc_MechJeb_OperationTransfer_t 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. .. macro:: KRPC_CLASS_MECHJEB_OPERATIONTRANSFER The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_ErrorMessage(krpc_connection_t connection, char * * returnValue, krpc_MechJeb_OperationTransfer_t instance) The warning or error from the last call to ``MakeNodes``, or an empty string. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_MakeNodes(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_MechJeb_OperationTransfer_t instance) Make the maneuver nodes of the operation. Throws an :macro:`KRPC_EXCEPTION_MECHJEB_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``. .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_Capture(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_set_Capture(krpc_connection_t connection, krpc_MechJeb_OperationTransfer_t instance, bool value) Whether the transfer ends in the target's orbit. Without capture, it is an impact or a flyby. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_PlanCapture(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_set_PlanCapture(krpc_connection_t connection, krpc_MechJeb_OperationTransfer_t instance, bool value) Whether to make a second node for the capture burn. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_OperationTransfer_Capture`. For a celestial body target, also requires :func:`krpc_MechJeb_OperationTransfer_MatchOrbit` or a :func:`krpc_MechJeb_OperationTransfer_LagTime`. .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_MatchOrbit(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_set_MatchOrbit(krpc_connection_t connection, krpc_MechJeb_OperationTransfer_t instance, bool value) Whether to reach the target's orbit, ahead of or behind the target, rather than meet the target. :Game Scenes: Flight .. note:: Requires :func:`krpc_MechJeb_OperationTransfer_Capture`. .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_LagTime(krpc_connection_t connection, double * returnValue, krpc_MechJeb_OperationTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_set_LagTime(krpc_connection_t connection, krpc_MechJeb_OperationTransfer_t instance, double value) The time by which the vessel arrives behind the target, in seconds. :Game Scenes: Flight .. note:: Ignored with :func:`krpc_MechJeb_OperationTransfer_MatchOrbit`. .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_Coplanar(krpc_connection_t connection, bool * returnValue, krpc_MechJeb_OperationTransfer_t instance) .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_set_Coplanar(krpc_connection_t connection, krpc_MechJeb_OperationTransfer_t instance, bool value) Whether the transfer stays in the vessel's orbital plane. :Game Scenes: Flight .. function:: krpc_error_t krpc_MechJeb_OperationTransfer_TimeSelector(krpc_connection_t connection, krpc_MechJeb_TimeSelector_t * returnValue, krpc_MechJeb_OperationTransfer_t instance) The time of the maneuver. :Game Scenes: Flight