SmartASS#
- class MechJeb.SmartASS()#
The Smart A.S.S. window, which points the vessel in a chosen direction.
- SmartASS.getInterfaceMode()#
- SmartASS.setInterfaceMode(value)#
The mode of the window, which selects its buttons and nothing else. Throws an exception if set to
MechJeb.SmartASSInterfaceMode.automatic.- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight
- SmartASS.getAutopilotMode()#
- SmartASS.setAutopilotMode(value)#
The autopilot mode. Throws an exception if set to
MechJeb.SmartASSAutopilotMode.automatic.- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight
Note
Call
MechJeb.SmartASS.update()to apply a change.
- SmartASS.update(resetPID)#
Apply the settings.
- Arguments:
resetPID (
boolean) – Whether to reset the attitude controller. Use it only if the vessel does not follow the new settings.
- Game Scenes:
Flight
- SmartASS.getForceYaw()#
- SmartASS.setForceYaw(value)#
Whether the autopilot controls the yaw in the
MechJeb.SmartASSAutopilotMode.surface,MechJeb.SmartASSAutopilotMode.surfaceProgradeandMechJeb.SmartASSAutopilotMode.surfaceRetrogrademodes.- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- SmartASS.getForcePitch()#
- SmartASS.setForcePitch(value)#
Whether the autopilot controls the pitch in the
MechJeb.SmartASSAutopilotMode.surface,MechJeb.SmartASSAutopilotMode.surfaceProgradeandMechJeb.SmartASSAutopilotMode.surfaceRetrogrademodes.- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- SmartASS.getForceRoll()#
- SmartASS.setForceRoll(value)#
Whether the autopilot controls the roll.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- SmartASS.getRoll()#
- SmartASS.setRoll(value)#
The roll, in degrees. 0 is top side up.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.SmartASS.getForceRoll(), and applies in every mode butMechJeb.SmartASSAutopilotMode.killRotand the surface modes.
- SmartASS.getSurfaceHeading()#
- SmartASS.setSurfaceHeading(value)#
The heading, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.SmartASS.getForceYaw(), and applies in theMechJeb.SmartASSAutopilotMode.surfacemode.
- SmartASS.getSurfacePitch()#
- SmartASS.setSurfacePitch(value)#
The pitch above the horizon, in degrees. 90 is straight up.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.SmartASS.getForcePitch(), and applies in theMechJeb.SmartASSAutopilotMode.surfacemode.
- SmartASS.getSurfaceRoll()#
- SmartASS.setSurfaceRoll(value)#
The roll, in degrees. 0 is top side up.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.SmartASS.getForceRoll(), and applies in theMechJeb.SmartASSAutopilotMode.surfacemode.
- SmartASS.getSurfaceVelYaw()#
- SmartASS.setSurfaceVelYaw(value)#
The yaw from the surface velocity, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.SmartASS.getForceYaw(), and applies in theMechJeb.SmartASSAutopilotMode.surfaceProgradeandMechJeb.SmartASSAutopilotMode.surfaceRetrogrademodes.
- SmartASS.getSurfaceVelPitch()#
- SmartASS.setSurfaceVelPitch(value)#
The pitch from the surface velocity, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.SmartASS.getForcePitch(), and applies in theMechJeb.SmartASSAutopilotMode.surfaceProgradeandMechJeb.SmartASSAutopilotMode.surfaceRetrogrademodes.
- SmartASS.getSurfaceVelRoll()#
- SmartASS.setSurfaceVelRoll(value)#
The roll, in degrees. 0 is top side up.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.SmartASS.getForceRoll(), and applies in theMechJeb.SmartASSAutopilotMode.surfaceProgradeandMechJeb.SmartASSAutopilotMode.surfaceRetrogrademodes.
- SmartASS.getAdvancedReference()#
- SmartASS.setAdvancedReference(value)#
The reference frame of
MechJeb.SmartASS.getAdvancedDirection(). Throws an exception if MechJeb uses a reference this enumeration lacks.- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight
Note
Applies in the
MechJeb.SmartASSAutopilotMode.advancedmode.
- SmartASS.getAdvancedDirection()#
- SmartASS.setAdvancedDirection(value)#
The direction in
MechJeb.SmartASS.getAdvancedReference().- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight
Note
Applies in the
MechJeb.SmartASSAutopilotMode.advancedmode.
- class MechJeb.SmartASSInterfaceMode()#
The mode of the Smart A.S.S. window. See
MechJeb.SmartASS.getInterfaceMode().- SmartASSInterfaceMode.orbital#
The orbital modes.
- SmartASSInterfaceMode.surface#
The surface modes.
- SmartASSInterfaceMode.target#
The target modes.
- SmartASSInterfaceMode.advanced#
The advanced mode.
- SmartASSInterfaceMode.automatic#
Set by MechJeb’s autopilots. Cannot be set.
- class MechJeb.SmartASSAutopilotMode()#
The autopilot mode of Smart A.S.S. See
MechJeb.SmartASS.getAutopilotMode().- SmartASSAutopilotMode.off#
Off.
- SmartASSAutopilotMode.killRot#
Stop the vessel’s rotation.
- SmartASSAutopilotMode.node#
Point at the next maneuver node.
- SmartASSAutopilotMode.surface#
Point in the direction set by
MechJeb.SmartASS.getSurfaceHeading(),MechJeb.SmartASS.getSurfacePitch()andMechJeb.SmartASS.getSurfaceRoll().
- SmartASSAutopilotMode.prograde#
Point orbital prograde.
- SmartASSAutopilotMode.retrograde#
Point orbital retrograde.
- SmartASSAutopilotMode.normalPlus#
Point orbit normal.
- SmartASSAutopilotMode.normalMinus#
Point orbit anti-normal.
- SmartASSAutopilotMode.radialPlus#
Point radially outward.
- SmartASSAutopilotMode.radialMinus#
Point radially inward.
- SmartASSAutopilotMode.relativePlus#
Point along the velocity relative to the target.
- SmartASSAutopilotMode.relativeMinus#
Point against the velocity relative to the target.
- SmartASSAutopilotMode.targetPlus#
Point at the target.
- SmartASSAutopilotMode.targetMinus#
Point away from the target.
- SmartASSAutopilotMode.parallelPlus#
Point parallel to the target’s orientation. For a docking port, along its axis and away from it.
- SmartASSAutopilotMode.parallelMinus#
Point antiparallel to the target’s orientation. For a docking port, along its axis and toward it.
- SmartASSAutopilotMode.advanced#
Point in the direction set by
MechJeb.SmartASS.getAdvancedReference()andMechJeb.SmartASS.getAdvancedDirection().
- SmartASSAutopilotMode.automatic#
Set by MechJeb’s autopilots. Cannot be set.
- SmartASSAutopilotMode.surfacePrograde#
Point along the surface velocity.
- SmartASSAutopilotMode.surfaceRetrograde#
Point against the surface velocity.
- SmartASSAutopilotMode.horizontalPlus#
Point along the horizontal surface velocity.
- SmartASSAutopilotMode.horizontalMinus#
Point against the horizontal surface velocity.
- SmartASSAutopilotMode.verticalPlus#
Point up, normal to the surface.
- class MechJeb.AttitudeReference()#
A reference frame of Smart A.S.S. See
MechJeb.SmartASS.getAdvancedReference().- AttitudeReference.inertial#
The world coordinate system.
- AttitudeReference.orbit#
Forward is prograde, left is normal and up is radial out.
- AttitudeReference.orbitHorizontal#
Forward is the orbital velocity projected onto the surface, and up is the surface normal.
- AttitudeReference.surfaceNorth#
Forward is north, left is west and up is the surface normal.
- AttitudeReference.surfaceVelocity#
Forward is the surface velocity, and up is the surface normal perpendicular to it.
- AttitudeReference.target#
Forward is toward the target, and up is the vessel’s heading perpendicular to it.
- AttitudeReference.relativeVelocity#
Forward is the velocity relative to the target.
- AttitudeReference.targetOrientation#
Forward is the direction the target faces, and up is the target’s up.
- AttitudeReference.maneuverNode#
Forward is the burn direction of the next maneuver node.
- AttitudeReference.sun#
Forward is the orbital velocity of the body that orbits the sun, and up is radial out of that orbit.
- AttitudeReference.surfaceHorizontal#
Forward is the horizontal surface velocity, and up is the surface normal.