AscentGuidance#
- public class AscentGuidance#
The Ascent Guidance window, which flies the vessel to orbit.
Note
See the MechJeb wiki for how to set up this autopilot.
- boolean getEnabled()#
- void setEnabled(boolean value)#
Whether the module is enabled.
- Game Scenes:
Flight
- String getStatus()#
The autopilot status, which depends on the selected ascent path.
- Game Scenes:
Flight
- AscentType getAscentType()#
- void setAscentType(AscentType value)#
The ascent path.
- Game Scenes:
Flight
- AscentSettings getSettings()#
The Ascent Settings window.
- Game Scenes:
Flight
- PVGSettings getPVGSettings()#
The PVG Settings window, with the settings of the
AscentType.PVGpath.- Game Scenes:
Flight
- ClassicPath getClassicPath()#
The Ascent Path Editor window, with the settings of the
AscentType.CLASSICpath.- Game Scenes:
Flight
- double getDesiredOrbitAltitude()#
- void setDesiredOrbitAltitude(double value)#
The altitude of the final circular orbit, in meters.
- Game Scenes:
Flight
- double getDesiredApoapsis()#
- void setDesiredApoapsis(double value)#
The target apoapsis, in meters.
- Game Scenes:
Flight
Note
Applies on the
AscentType.PVGpath.
- boolean getAttachAltFlag()#
- void setAttachAltFlag(boolean value)#
Whether the orbit is attached at
AscentGuidance.getDesiredAttachAlt().- Game Scenes:
Flight
Note
Applies on the
AscentType.PVGpath, with an early shutoff stage, set byPVGSettings.getOptimizeStageFlag()andPVGSettings.getOptimizeStage(). Without one, MechJeb always attaches the orbit.
- double getDesiredAttachAlt()#
- void setDesiredAttachAlt(double value)#
The altitude at which the orbit is attached, in meters.
- Game Scenes:
Flight
Note
Applies on the
AscentType.PVGpath. RequiresAscentGuidance.getAttachAltFlag(), unless there is no early shutoff stage. SeePVGSettings.getOptimizeStage().
- double getDesiredFPA()#
- void setDesiredFPA(double value)#
The flight path angle at orbit insertion, in degrees.
- Game Scenes:
Flight
Note
Applies on the
AscentType.PVGpath, when there is no early shutoff stage. SeePVGSettings.getOptimizeStage().
- double getDesiredInclination()#
- void setDesiredInclination(double value)#
The inclination of the final circular orbit, in degrees.
- Game Scenes:
Flight
- AscentLaunchMode getLaunchMode()#
The launch mode, which gives whether the autopilot is waiting for a timed launch.
- Game Scenes:
Flight
- void launchToRendezvous()#
Launch to rendezvous with the target. Throws an exception if there is no target, or the ascent path is PVG.
- Game Scenes:
Flight
- double getLaunchPhaseAngle()#
- void setLaunchPhaseAngle(double value)#
The phase angle to the target of a launch to rendezvous, in degrees.
- Game Scenes:
Flight
- void launchToTargetPlane()#
Launch into the plane of the target. Throws an exception if there is no target.
- Game Scenes:
Flight
- double getLaunchLANDifference()#
- void setLaunchLANDifference(double value)#
The difference from the target’s longitude of the ascending node of a launch into the target’s plane, in degrees.
- Game Scenes:
Flight
- void launchToMatchLan()#
Launch into the plane of the target, at the time the target’s longitude of the ascending node, less
AscentGuidance.getLaunchLANDifference(), passes overhead. KeepsAscentGuidance.getDesiredInclination(). Throws an exception if there is no target, or the ascent path is notAscentType.PVG.- Game Scenes:
Flight
- void launchToLan()#
Launch into the plane with longitude of the ascending node
AscentGuidance.getDesiredLan()and inclinationAscentGuidance.getDesiredInclination(). Throws an exception if the ascent path is notAscentType.PVG.- Game Scenes:
Flight
- double getDesiredLan()#
- void setDesiredLan(double value)#
The longitude of the ascending node of a launch to a LAN, in degrees. See
AscentGuidance.launchToLan().- Game Scenes:
Flight
- void abortTimedLaunch()#
Abort a timed launch that has not started yet. Throws an exception if the launch mode is
AscentLaunchMode.UNKNOWN.- Game Scenes:
Flight
- int getWarpCountDown()#
- void setWarpCountDown(int value)#
The time before a timed launch at which time warp stops, in seconds.
- Game Scenes:
Flight
- boolean getOverrideWarpToPlane()#
- void setOverrideWarpToPlane(boolean value)#
Whether a timed launch launches at once, rather than at the time it computes.
- Game Scenes:
Flight
- public enum AscentType#
The ascent path. See
AscentGuidance.getAscentType().- public AscentType CLASSIC#
The classic ascent path. See
AscentGuidance.getClassicPath().
- public AscentType PVG#
Primer Vector Guidance, for RSS/RO. See
AscentGuidance.getPVGSettings().
- public enum AscentLaunchMode#
The launch mode of the ascent autopilot. See
AscentGuidance.getLaunchMode().- public AscentLaunchMode NORMAL#
The autopilot is not performing a timed launch.
- public AscentLaunchMode RENDEZVOUS#
A timed launch to rendezvous with the target vessel.
- public AscentLaunchMode TARGET_PLANE#
A timed launch into the plane of the target.
- public AscentLaunchMode MATCH_LAN#
A timed launch to the target’s longitude of the ascending node. See
AscentGuidance.launchToMatchLan().
- public AscentLaunchMode LAN#
A timed launch to a longitude of the ascending node. See
AscentGuidance.launchToLan().
- public AscentLaunchMode UNKNOWN#
A timed launch of another kind, started from MechJeb’s window.
AscentSettings#
- public class AscentSettings#
The Ascent Settings window, which holds the settings shared by the ascent paths.
- boolean getForceRoll()#
- void setForceRoll(boolean value)#
Whether the autopilot controls the roll.
- Game Scenes:
Flight
- double getVerticalRoll()#
- void setVerticalRoll(double value)#
The roll during the vertical climb, in degrees.
- Game Scenes:
Flight
Note
Requires
AscentSettings.getForceRoll().
- double getTurnRoll()#
- void setTurnRoll(double value)#
The roll during the turn, in degrees.
- Game Scenes:
Flight
Note
Requires
AscentSettings.getForceRoll().
- double getRollAltitude()#
- void setRollAltitude(double value)#
The altitude above which the autopilot controls the roll, in meters.
- Game Scenes:
Flight
Note
Requires
AscentSettings.getForceRoll().
- boolean getLimitAngleOfAttack()#
- void setLimitAngleOfAttack(boolean value)#
Whether to limit the angle of attack.
- Game Scenes:
Flight
Note
Applies on the
AscentType.CLASSICpath.
- double getMaxAngleOfAttack()#
- void setMaxAngleOfAttack(double value)#
The largest angle of attack, in degrees.
- Game Scenes:
Flight
Note
Requires
AscentSettings.getLimitAngleOfAttack(), and applies on theAscentType.CLASSICpath.
- double getAngleOfAttackLimitFadeoutPressure()#
- void setAngleOfAttackLimitFadeoutPressure(double value)#
The dynamic pressure below which the angle of attack limit fades out, in pascals.
- Game Scenes:
Flight
Note
Requires
AscentSettings.getLimitAngleOfAttack(), and applies on theAscentType.CLASSICpath.
- boolean getLimitingAngleOfAttack()#
Whether the angle of attack limit is limiting the steering.
- Game Scenes:
Flight
- double getCurrentMaxAngleOfAttack()#
The largest angle of attack the limit allows now, in degrees.
- Game Scenes:
Flight
- boolean getCorrectiveSteering()#
- void setCorrectiveSteering(boolean value)#
Whether the autopilot steers by the velocity vector rather than the position vector.
- Game Scenes:
Flight
Note
It is more accurate, though large craft may do better without it. Applies on the
AscentType.CLASSICpath.
- double getCorrectiveSteeringGain()#
- void setCorrectiveSteeringGain(double value)#
The gain of the corrective steering.
- Game Scenes:
Flight
Note
Requires
AscentSettings.getCorrectiveSteering(), and applies on theAscentType.CLASSICpath.
- boolean getAutostage()#
- void setAutostage(boolean value)#
Whether the autopilot stages when the current stage runs out of fuel.
- Game Scenes:
Flight
- Autostaging getStaging()#
The autostaging settings. The same object as
Utilities.getStaging().- Game Scenes:
Flight
- ThrustLimiter getThrust()#
The throttle limiters. The same object as
Utilities.getThrust().- Game Scenes:
Flight
- boolean getAutodeploySolarPanels()#
- void setAutodeploySolarPanels(boolean value)#
Whether to deploy the solar panels when the ascent finishes.
- Game Scenes:
Flight
- boolean getAutoDeployAntennas()#
- void setAutoDeployAntennas(boolean value)#
Whether to deploy the antennas when the ascent finishes.
- Game Scenes:
Flight
- boolean getAutowarp()#
- void setAutowarp(boolean value)#
Whether to warp time during the ascent.
- Game Scenes:
Flight
Note
The same setting as
ManeuverPlanner.getAutowarp().
- boolean getSkipCircularization()#
- void setSkipCircularization(boolean value)#
Whether to skip the circularization burn.
- Game Scenes:
Flight
PVGSettings#
- public class PVGSettings#
The PVG Settings window, which holds the settings of the Primer Vector Guidance ascent path.
- double getDynamicPressureTrigger()#
- void setDynamicPressureTrigger(double value)#
The dynamic pressure below which guidance starts, in pascals.
- Game Scenes:
Flight
- boolean getFixedCoast()#
- void setFixedCoast(boolean value)#
Whether the coast has a fixed length.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getCoastStageFlag().
- double getFixedCoastLength()#
- void setFixedCoastLength(double value)#
The length of the coast, in seconds.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getFixedCoast().
- double getMinDeltaV()#
- void setMinDeltaV(double value)#
The smallest delta-v of a stage that guidance plans with, in \(\mathrm{m/s}\).
- Game Scenes:
Flight
- int getLastStage()#
- void setLastStage(int value)#
The last stage that guidance plans with.
- Game Scenes:
Flight
- boolean getOptimizeStageFlag()#
- void setOptimizeStageFlag(boolean value)#
Whether guidance may shut off
PVGSettings.getOptimizeStage()early.- Game Scenes:
Flight
- int getOptimizeStage()#
- void setOptimizeStage(int value)#
The stage that guidance may shut off early.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getOptimizeStageFlag(). -1 is no stage.
- boolean getUnguidedStagesFlag()#
- void setUnguidedStagesFlag(boolean value)#
Whether guidance leaves
PVGSettings.getUnguidedStages()unguided.- Game Scenes:
Flight
- void setUnguidedStages(java.util.List<Integer> value)#
The stages that guidance leaves unguided.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getUnguidedStagesFlag().
- boolean getCoastStageFlag()#
- void setCoastStageFlag(boolean value)#
Whether guidance coasts in
PVGSettings.getCoastStage().- Game Scenes:
Flight
- int getCoastStage()#
- void setCoastStage(int value)#
The stage before or after which guidance coasts.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getCoastStageFlag().
- boolean getCoastBeforeFlag()#
- void setCoastBeforeFlag(boolean value)#
Whether the coast comes before
PVGSettings.getCoastStage(), rather than after it.- Game Scenes:
Flight
Note
Requires
PVGSettings.getCoastStageFlag().
- double getUllageLeadTime()#
- void setUllageLeadTime(double value)#
The time before an ignition at which RCS settles the propellant, in seconds.
- Game Scenes:
Flight
- boolean getSpinupStageFlag()#
- void setSpinupStageFlag(boolean value)#
Whether to spin up the vessel before
PVGSettings.getSpinupStage().- Game Scenes:
Flight
- int getSpinupStage()#
- void setSpinupStage(int value)#
The stage before which to spin up the vessel.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getSpinupStageFlag().
- double getSpinupAngularVelocity()#
- void setSpinupAngularVelocity(double value)#
The angular velocity of the spin-up, in \(\mathrm{rad/s}\).
- Game Scenes:
Flight
Note
Requires
PVGSettings.getSpinupStageFlag(). MechJeb’s window shows it in revolutions per minute.
- double getSpinupLeadTime()#
- void setSpinupLeadTime(double value)#
The time before staging at which the spin-up starts, in seconds.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getSpinupStageFlag().
- double getLimitQa()#
- void setLimitQa(double value)#
The limit on dynamic pressure times angle of attack, in \(\mathrm{Pa \cdot rad}\).
- Game Scenes:
Flight
Note
MechJeb clamps it to between 0 and 10000.
- double getPitchRate()#
- void setPitchRate(double value)#
The pitch rate of the booster, in \(\mathrm{deg/s}\).
- Game Scenes:
Flight
- double getPitchStartVelocity()#
- void setPitchStartVelocity(double value)#
The speed at which the booster starts to pitch over, in \(\mathrm{m/s}\).
- Game Scenes:
Flight
- int getStagingTrigger()#
- void setStagingTrigger(int value)#
The stage after which guidance starts.
- Game Scenes:
Flight
Note
Requires
PVGSettings.getStagingTriggerFlag().
- boolean getStagingTriggerFlag()#
- void setStagingTriggerFlag(boolean value)#
Whether guidance starts after
PVGSettings.getStagingTrigger().- Game Scenes:
Flight
ClassicPath#
- public class ClassicPath#
The Ascent Path Editor window, which holds the settings of the classic ascent path.
- boolean getAutoPath()#
- void setAutoPath(boolean value)#
Whether the autopilot chooses the turn altitudes and speed.
- Game Scenes:
Flight
- float getAutoTurnPercent()#
- void setAutoTurnPercent(float value)#
The altitude at which an automatic turn starts, as a fraction of the height of the atmosphere.
- Game Scenes:
Flight
Note
Requires
ClassicPath.getAutoPath().
- float getAutoTurnSpeedFactor()#
- void setAutoTurnSpeedFactor(float value)#
The factor that sets the speed at which an automatic turn starts.
- Game Scenes:
Flight
Note
Requires
ClassicPath.getAutoPath().
- double getAutoTurnStartAltitude()#
The altitude at which an automatic turn starts, in meters.
- Game Scenes:
Flight
- double getAutoTurnStartVelocity()#
The speed at which an automatic turn starts, in \(\mathrm{m/s}\).
- Game Scenes:
Flight
- double getAutoTurnEndAltitude()#
The altitude at which an automatic turn ends, in meters.
- Game Scenes:
Flight
- double getTurnStartAltitude()#
- void setTurnStartAltitude(double value)#
The altitude at which the turn starts, in meters.
- Game Scenes:
Flight
- double getTurnStartVelocity()#
- void setTurnStartVelocity(double value)#
The speed at which the turn starts, in \(\mathrm{m/s}\).
- Game Scenes:
Flight
- double getTurnEndAltitude()#
- void setTurnEndAltitude(double value)#
The altitude at which the turn ends, in meters.
- Game Scenes:
Flight
- double getTurnEndAngle()#
- void setTurnEndAngle(double value)#
The final flight path angle, in degrees.
- Game Scenes:
Flight
- double getTurnShapeExponent()#
- void setTurnShapeExponent(double value)#
The steepness of the turn, between 0 and 1.
- Game Scenes:
Flight