Scanner#

class ScanSat.Scanner()#

A SCANsat scanner on a part. Obtained by calling ScanSat.scanner() or ScanSat.scanners().

Scanner.getPart()#

The part containing this scanner.

Property:

Read-only, cannot be set

Return type:

SpaceCenter.Part

Game Scenes:

Flight

Scanner.getScanTypes()#

The scan types of the scanner.

Property:

Read-only, cannot be set

Return type:

ScanSat.ScanType

Game Scenes:

Flight

Scanner.getActive()#
Scanner.setActive(value)#

Returns whether the scanner is switched on, and switches it on or off, as the buttons of the part do.

Property:

Can be read or written

Return type:

boolean

Game Scenes:

Flight

Note

A resource scanner only switches on when ScanSat.getInstantResourceScan() is off, or ScanSat.getStockResourceScan() is off.

Scanner.getFieldOfView()#

The field of view of the scanner at its best altitude, in degrees.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

Scanner.getMinAltitude()#

The lowest altitude the scanner scans at, in meters.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

Scanner.getBestAltitude()#

The lowest altitude for the full field of view, in meters.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

Scanner.getMaxAltitude()#

The highest altitude the scanner scans at, in meters.

Property:

Read-only, cannot be set

Return type:

number

Game Scenes:

Flight

Scanner.getRequiresLight()#

Whether the scanner only scans in daylight, when ScanSat.getDaylightCheck() is on.

Property:

Read-only, cannot be set

Return type:

boolean

Game Scenes:

Flight

Scanner.getState()#

The state of the scanner.

Property:

Read-only, cannot be set

Return type:

ScanSat.ScannerState

Game Scenes:

Flight

class ScanSat.ScannerState()#

The state of a scanner. See ScanSat.Scanner.getState().

ScannerState.off#

Switched off.

ScannerState.outOfRange#

Switched on, and outside its minimum and maximum altitudes.

ScannerState.inDarkness#

Switched on, and paused as it needs light and the ground below it is in darkness.

ScannerState.inRange#

Scanning between its minimum and best altitudes, with a reduced field of view.

ScannerState.inBestRange#

Scanning between its best and maximum altitudes, with its full field of view.