SmartASS#

public class SmartASS#

The Smart A.S.S. window, which points the vessel in a chosen direction.

SmartASSInterfaceMode getInterfaceMode()#
void setInterfaceMode(SmartASSInterfaceMode value)#

The mode of the window, which selects its buttons and nothing else. Throws an exception if set to SmartASSInterfaceMode.AUTOMATIC.

Game Scenes:

Flight

SmartASSAutopilotMode getAutopilotMode()#
void setAutopilotMode(SmartASSAutopilotMode value)#

The autopilot mode. Throws an exception if set to SmartASSAutopilotMode.AUTOMATIC.

Game Scenes:

Flight

Note

Call SmartASS.update(boolean) to apply a change.

void update(boolean resetPID)#

Apply the settings.

Parameters:
  • resetPID (boolean) – Whether to reset the attitude controller. Use it only if the vessel does not follow the new settings.

Game Scenes:

Flight

boolean getForceYaw()#
void setForceYaw(boolean value)#

Whether the autopilot controls the yaw in the SmartASSAutopilotMode.SURFACE, SmartASSAutopilotMode.SURFACE_PROGRADE and SmartASSAutopilotMode.SURFACE_RETROGRADE modes.

Game Scenes:

Flight

boolean getForcePitch()#
void setForcePitch(boolean value)#

Whether the autopilot controls the pitch in the SmartASSAutopilotMode.SURFACE, SmartASSAutopilotMode.SURFACE_PROGRADE and SmartASSAutopilotMode.SURFACE_RETROGRADE modes.

Game Scenes:

Flight

boolean getForceRoll()#
void setForceRoll(boolean value)#

Whether the autopilot controls the roll.

Game Scenes:

Flight

double getRoll()#
void setRoll(double value)#

The roll, in degrees. 0 is top side up.

Game Scenes:

Flight

Note

Requires SmartASS.getForceRoll(), and applies in every mode but SmartASSAutopilotMode.KILL_ROT and the surface modes.

double getSurfaceHeading()#
void setSurfaceHeading(double value)#

The heading, in degrees.

Game Scenes:

Flight

Note

Requires SmartASS.getForceYaw(), and applies in the SmartASSAutopilotMode.SURFACE mode.

double getSurfacePitch()#
void setSurfacePitch(double value)#

The pitch above the horizon, in degrees. 90 is straight up.

Game Scenes:

Flight

Note

Requires SmartASS.getForcePitch(), and applies in the SmartASSAutopilotMode.SURFACE mode.

double getSurfaceRoll()#
void setSurfaceRoll(double value)#

The roll, in degrees. 0 is top side up.

Game Scenes:

Flight

Note

Requires SmartASS.getForceRoll(), and applies in the SmartASSAutopilotMode.SURFACE mode.

double getSurfaceVelYaw()#
void setSurfaceVelYaw(double value)#

The yaw from the surface velocity, in degrees.

Game Scenes:

Flight

double getSurfaceVelPitch()#
void setSurfaceVelPitch(double value)#

The pitch from the surface velocity, in degrees.

Game Scenes:

Flight

double getSurfaceVelRoll()#
void setSurfaceVelRoll(double value)#

The roll, in degrees. 0 is top side up.

Game Scenes:

Flight

AttitudeReference getAdvancedReference()#
void setAdvancedReference(AttitudeReference value)#

The reference frame of SmartASS.getAdvancedDirection(). Throws an exception if MechJeb uses a reference this enumeration lacks.

Game Scenes:

Flight

Note

Applies in the SmartASSAutopilotMode.ADVANCED mode.

Direction getAdvancedDirection()#
void setAdvancedDirection(Direction value)#

The direction in SmartASS.getAdvancedReference().

Game Scenes:

Flight

Note

Applies in the SmartASSAutopilotMode.ADVANCED mode.

public enum SmartASSInterfaceMode#

The mode of the Smart A.S.S. window. See SmartASS.getInterfaceMode().

public SmartASSInterfaceMode ORBITAL#

The orbital modes.

public SmartASSInterfaceMode SURFACE#

The surface modes.

public SmartASSInterfaceMode TARGET#

The target modes.

public SmartASSInterfaceMode ADVANCED#

The advanced mode.

public SmartASSInterfaceMode AUTOMATIC#

Set by MechJeb’s autopilots. Cannot be set.

public enum SmartASSAutopilotMode#

The autopilot mode of Smart A.S.S. See SmartASS.getAutopilotMode().

public SmartASSAutopilotMode OFF#

Off.

public SmartASSAutopilotMode KILL_ROT#

Stop the vessel’s rotation.

public SmartASSAutopilotMode NODE#

Point at the next maneuver node.

public SmartASSAutopilotMode SURFACE#

Point in the direction set by SmartASS.getSurfaceHeading(), SmartASS.getSurfacePitch() and SmartASS.getSurfaceRoll().

public SmartASSAutopilotMode PROGRADE#

Point orbital prograde.

public SmartASSAutopilotMode RETROGRADE#

Point orbital retrograde.

public SmartASSAutopilotMode NORMAL_PLUS#

Point orbit normal.

public SmartASSAutopilotMode NORMAL_MINUS#

Point orbit anti-normal.

public SmartASSAutopilotMode RADIAL_PLUS#

Point radially outward.

public SmartASSAutopilotMode RADIAL_MINUS#

Point radially inward.

public SmartASSAutopilotMode RELATIVE_PLUS#

Point along the velocity relative to the target.

public SmartASSAutopilotMode RELATIVE_MINUS#

Point against the velocity relative to the target.

public SmartASSAutopilotMode TARGET_PLUS#

Point at the target.

public SmartASSAutopilotMode TARGET_MINUS#

Point away from the target.

public SmartASSAutopilotMode PARALLEL_PLUS#

Point parallel to the target’s orientation. For a docking port, along its axis and away from it.

public SmartASSAutopilotMode PARALLEL_MINUS#

Point antiparallel to the target’s orientation. For a docking port, along its axis and toward it.

public SmartASSAutopilotMode ADVANCED#

Point in the direction set by SmartASS.getAdvancedReference() and SmartASS.getAdvancedDirection().

public SmartASSAutopilotMode AUTOMATIC#

Set by MechJeb’s autopilots. Cannot be set.

public SmartASSAutopilotMode SURFACE_PROGRADE#

Point along the surface velocity.

public SmartASSAutopilotMode SURFACE_RETROGRADE#

Point against the surface velocity.

public SmartASSAutopilotMode HORIZONTAL_PLUS#

Point along the horizontal surface velocity.

public SmartASSAutopilotMode HORIZONTAL_MINUS#

Point against the horizontal surface velocity.

public SmartASSAutopilotMode VERTICAL_PLUS#

Point up, normal to the surface.

public enum AttitudeReference#

A reference frame of Smart A.S.S. See SmartASS.getAdvancedReference().

public AttitudeReference INERTIAL#

The world coordinate system.

public AttitudeReference ORBIT#

Forward is prograde, left is normal and up is radial out.

public AttitudeReference ORBIT_HORIZONTAL#

Forward is the orbital velocity projected onto the surface, and up is the surface normal.

public AttitudeReference SURFACE_NORTH#

Forward is north, left is west and up is the surface normal.

public AttitudeReference SURFACE_VELOCITY#

Forward is the surface velocity, and up is the surface normal perpendicular to it.

public AttitudeReference TARGET#

Forward is toward the target, and up is the vessel’s heading perpendicular to it.

public AttitudeReference RELATIVE_VELOCITY#

Forward is the velocity relative to the target.

public AttitudeReference TARGET_ORIENTATION#

Forward is the direction the target faces, and up is the target’s up.

public AttitudeReference MANEUVER_NODE#

Forward is the burn direction of the next maneuver node.

public AttitudeReference SUN#

Forward is the orbital velocity of the body that orbits the sun, and up is radial out of that orbit.

public AttitudeReference SURFACE_HORIZONTAL#

Forward is the horizontal surface velocity, and up is the surface normal.

public enum Direction#

A direction of Smart A.S.S. See SmartASS.getAdvancedDirection().

public Direction FORWARD#

Forward.

public Direction BACK#

Back.

public Direction UP#

Up.

public Direction DOWN#

Down.

public Direction RIGHT#

Right.

public Direction LEFT#

Left.