Scanner#
- public class Scanner#
A SCANsat scanner on a part. Obtained by calling
ScanSat.scanner(SpaceCenter.Part)orScanSat.scanners(SpaceCenter.Vessel).- SpaceCenter.Part getPart()#
The part containing this scanner.
- Game Scenes:
Flight
- boolean getActive()#
- void setActive(boolean value)#
Returns whether the scanner is switched on, and switches it on or off, as the buttons of the part do.
- Game Scenes:
Flight
Note
A resource scanner only switches on when
ScanSat.getInstantResourceScan()is off, orScanSat.getStockResourceScan()is off.
- float getFieldOfView()#
The field of view of the scanner at its best altitude, in degrees.
- Game Scenes:
Flight
- float getMinAltitude()#
The lowest altitude the scanner scans at, in meters.
- Game Scenes:
Flight
- float getBestAltitude()#
The lowest altitude for the full field of view, in meters.
- Game Scenes:
Flight
- float getMaxAltitude()#
The highest altitude the scanner scans at, in meters.
- Game Scenes:
Flight
- boolean getRequiresLight()#
Whether the scanner only scans in daylight, when
ScanSat.getDaylightCheck()is on.- Game Scenes:
Flight
- ScannerState getState()#
The state of the scanner.
- Game Scenes:
Flight
- public enum ScannerState#
The state of a scanner. See
Scanner.getState().- public ScannerState OFF#
Switched off.
- public ScannerState OUT_OF_RANGE#
Switched on, and outside its minimum and maximum altitudes.
- public ScannerState IN_DARKNESS#
Switched on, and paused as it needs light and the ground below it is in darkness.
- public ScannerState IN_RANGE#
Scanning between its minimum and best altitudes, with a reduced field of view.
- public ScannerState IN_BEST_RANGE#
Scanning between its best and maximum altitudes, with its full field of view.