SmartASS

public class SmartASS

The Smart A.S.S. module provides aids for vessel pitch control.

SmartASSInterfaceMode getInterfaceMode()
void setInterfaceMode(SmartASSInterfaceMode value)

GUI mode; doesn’t do anything except changing SmartASS GUI buttons to a specified mode.

Game Scenes:

Flight

SmartASSAutopilotMode getAutopilotMode()
void setAutopilotMode(SmartASSAutopilotMode value)

Current autopilot mode.

Game Scenes:

Flight

void update(boolean resetPID)

Update SmartASS position to use new values.

Parameters:
  • resetPID (boolean) – False most of the time, use true only if it doesn’t work.

Game Scenes:

Flight

boolean getForceYaw()
void setForceYaw(boolean value)

Enable yaw control for SmartASS.getSurfaceHeading(), SmartASSAutopilotMode.SURFACE_PROGRADE and SmartASSAutopilotMode.SURFACE_RETROGRADE.

Game Scenes:

Flight

boolean getForcePitch()
void setForcePitch(boolean value)

Enable pitch control for SmartASS.getSurfacePitch(), SmartASSAutopilotMode.SURFACE_PROGRADE and SmartASSAutopilotMode.SURFACE_RETROGRADE.

Game Scenes:

Flight

boolean getForceRoll()
void setForceRoll(boolean value)

Enable roll control.

Game Scenes:

Flight

double getSurfaceHeading()
void setSurfaceHeading(double value)

Heading; Also called or azimuth, or the direction where you want to go.

Game Scenes:

Flight

Note

Works only in SmartASSAutopilotMode.SURFACE mode.

double getSurfacePitch()
void setSurfacePitch(double value)

Pitch or inclination; 0 is horizontal and 90 is straight up. Can be negative.

Game Scenes:

Flight

Note

Works only in SmartASSAutopilotMode.SURFACE mode.

double getSurfaceRoll()
void setSurfaceRoll(double value)

Roll; 0 is top side up.

Game Scenes:

Flight

Note

Works only in SmartASSAutopilotMode.SURFACE mode.

double getSurfaceVelYaw()
void setSurfaceVelYaw(double value)
Game Scenes:

Flight

double getSurfaceVelPitch()
void setSurfaceVelPitch(double value)

Pitch or inclination; 0 is horizontal and 90 is straight up. Can be negative.

Game Scenes:

Flight

double getSurfaceVelRoll()
void setSurfaceVelRoll(double value)

Roll; 0 is top side up.

Game Scenes:

Flight

AttitudeReference getAdvancedReference()
void setAdvancedReference(AttitudeReference value)
Game Scenes:

Flight

Note

Works only in SmartASSAutopilotMode.ADVANCED mode.

Direction getAdvancedDirection()
void setAdvancedDirection(Direction value)
Game Scenes:

Flight

Note

Works only in SmartASSAutopilotMode.ADVANCED mode.

public enum SmartASSInterfaceMode
public SmartASSInterfaceMode ORBITAL
public SmartASSInterfaceMode SURFACE
public SmartASSInterfaceMode TARGET
public SmartASSInterfaceMode ADVANCED
public SmartASSInterfaceMode AUTOMATIC

Internal mode, do not set.

public enum SmartASSAutopilotMode
public SmartASSAutopilotMode OFF

Switch off Smart A.S.S.

public SmartASSAutopilotMode KILL_ROT

“Kill” the spacecraft’s rotation (counters rotation/tumbling).

public SmartASSAutopilotMode NODE

Point the vessel to a maneuver node.

public SmartASSAutopilotMode ADVANCED

Advanced mode.

public SmartASSAutopilotMode AUTOMATIC

Automatic mode (internal mode, only for getting status).

public SmartASSAutopilotMode PROGRADE

ORBIT: Orient to orbital prograde.

public SmartASSAutopilotMode RETROGRADE

ORBIT: Orient to orbital retrograde.

public SmartASSAutopilotMode NORMAL_PLUS

ORBIT: Orient to orbital normal (change inclination).

public SmartASSAutopilotMode NORMAL_MINUS

ORBIT: Orient to orbital anti-normal (change inclination).

public SmartASSAutopilotMode RADIAL_PLUS

ORBIT: Orient to radial outward (away from SOI).

public SmartASSAutopilotMode RADIAL_MINUS

ORBIT: Orient to radial inward (towards SOI).

public SmartASSAutopilotMode SURFACE_PROGRADE

SURFACE: Orient in the direction of movement relative to the ground. Useful during lift-off for rockets which don’t have fins or are otherwise instable.

public SmartASSAutopilotMode SURFACE_RETROGRADE

SURFACE: Orient in the opposite direction of movement relative to the ground. Useful during reentry or aerobraking with an aerodynamically unstable craft.

public SmartASSAutopilotMode HORIZONTAL_PLUS

SURFACE: Orient in the direction of horizontal movement relative to the ground.

public SmartASSAutopilotMode HORIZONTAL_MINUS

SURFACE: Orient in the opposite direction of horizontal movement relative to the ground.

public SmartASSAutopilotMode SURFACE

SURFACE: Orient the vessel in specific direction relative to surface.

public SmartASSAutopilotMode VERTICAL_PLUS

SURFACE: Orient “up”, perpendicular to the surface.

public SmartASSAutopilotMode TARGET_PLUS

TARGET: Orient towards the target.

public SmartASSAutopilotMode TARGET_MINUS

TARGET: Orient away from the target.

public SmartASSAutopilotMode RELATIVE_PLUS

TARGET: Orient toward your relative velocity. Burning this direction will increase your relative velocity.

public SmartASSAutopilotMode RELATIVE_MINUS

TARGET: Orient away from your relative velocity. Burning this direction will decrease your relative velocity.

public SmartASSAutopilotMode PARALLEL_PLUS

TARGET: Orient parallel to the target’s orientation. If the target is a docking node it orients the ship along the docking axis, pointing away from the node.

public SmartASSAutopilotMode PARALLEL_MINUS

TARGET: Orient antiparallel to the target’s orientation. If the target is a docking node it orients the ship along the docking axis, pointing toward the node.

public enum AttitudeReference
public AttitudeReference INERTIAL

World coordinate system.

public AttitudeReference ORBIT

forward = prograde, left = normal plus, up = radial plus

public AttitudeReference ORBIT_HORIZONTAL

forward = surface projection of orbit velocity, up = surface normal

public AttitudeReference SURFACE_NORTH

forward = north, left = west, up = surface normal

public AttitudeReference SURFACE_VELOCITY

forward = surface frame vessel velocity, up = perpendicular component of surface normal

public AttitudeReference TARGET

forward = toward target, up = perpendicular component of vessel heading

public AttitudeReference RELATIVE_VELOCITY

forward = toward relative velocity direction, up = tbd

public AttitudeReference TARGET_ORIENTATION

forward = direction target is facing, up = target up

public AttitudeReference MANEUVER_NODE

forward = next maneuver node direction, up = tbd

public AttitudeReference SUN

forward = orbit velocity of the parent body orbiting the sun, up = radial plus of that orbit

public AttitudeReference SURFACE_HORIZONTAL

forward = surface velocity horizontal component, up = surface normal

public enum Direction
public Direction FORWARD
public Direction BACK
public Direction UP
public Direction DOWN
public Direction RIGHT
public Direction LEFT