Antenna

public class Antenna

A RemoteTech antenna. Obtained by calling Comms.getAntennas() or antenna(SpaceCenter.Part).

SpaceCenter.Part getPart()

Get the part containing this antenna.

boolean getHasConnection()

Whether the antenna has a connection.

Target getTarget()
void setTarget(Target value)

The object that the antenna is targetting. This property can be used to set the target to Target.NONE or Target.ACTIVE_VESSEL. To set the target to a celestial body, ground station or vessel see Antenna.getTargetBody(), Antenna.getTargetGroundStation() and Antenna.getTargetVessel().

SpaceCenter.CelestialBody getTargetBody()
void setTargetBody(SpaceCenter.CelestialBody value)

The celestial body the antenna is targetting.

String getTargetGroundStation()
void setTargetGroundStation(String value)

The ground station the antenna is targetting.

SpaceCenter.Vessel getTargetVessel()
void setTargetVessel(SpaceCenter.Vessel value)

The vessel the antenna is targetting.

public enum Target

The type of object an antenna is targetting. See Antenna.getTarget().

public Target ACTIVE_VESSEL

The active vessel.

public Target CELESTIAL_BODY

A celestial body.

public Target GROUND_STATION

A ground station.

public Target VESSEL

A specific vessel.

public Target NONE

No target.