Scanner#
Scanner
A SCANsat scanner on a part. Obtained by calling POST /scan-sat/scanner or
POST /scan-sat/scanners.
A Scanner object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- GET /scan-sat/scanner/(id)/part#
The part containing this scanner.
- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (SpaceCenter.Part)
- GET /scan-sat/scanner/(id)/scan-types#
The scan types of the scanner.
- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (ScanSat.ScanType)
- GET /scan-sat/scanner/(id)/active#
Returns whether the scanner is switched on, and switches it on or off, as the buttons of the part do.
Note
A resource scanner only switches on when
GET /scan-sat/instant-resource-scanis off, orGET /scan-sat/stock-resource-scanis off.- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (bool)
- PUT /scan-sat/scanner/(id)/active#
Returns whether the scanner is switched on, and switches it on or off, as the buttons of the part do.
Note
A resource scanner only switches on when
GET /scan-sat/instant-resource-scanis off, orGET /scan-sat/stock-resource-scanis off.- Parameters:
id – The identifier of the Scanner object.
- Request JSON Object:
value (bool) – The new value.
- GET /scan-sat/scanner/(id)/field-of-view#
The field of view of the scanner at its best altitude, in degrees.
- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (float)
- GET /scan-sat/scanner/(id)/min-altitude#
The lowest altitude the scanner scans at, in meters.
- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (float)
- GET /scan-sat/scanner/(id)/best-altitude#
The lowest altitude for the full field of view, in meters.
- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (float)
- GET /scan-sat/scanner/(id)/max-altitude#
The highest altitude the scanner scans at, in meters.
- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (float)
- GET /scan-sat/scanner/(id)/requires-light#
Whether the scanner only scans in daylight, when
GET /scan-sat/daylight-checkis on.- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (bool)
- GET /scan-sat/scanner/(id)/state#
The state of the scanner.
- Parameters:
id – The identifier of the Scanner object.
- Response JSON Object:
value (ScanSat.ScannerState)
ScannerState
The state of a scanner. See GET /scan-sat/scanner/(id)/state.
Passed and returned as the name of one of its values:
"off"Switched off.
"out_of_range"Switched on, and outside its minimum and maximum altitudes.
"in_darkness"Switched on, and paused as it needs light and the ground below it is in darkness.
"in_range"Scanning between its minimum and best altitudes, with a reduced field of view.
"in_best_range"Scanning between its best and maximum altitudes, with its full field of view.