.. default-domain:: c .. highlight:: c Scanner ======= .. type:: krpc_ScanSat_Scanner_t A SCANsat scanner on a part. Obtained by calling :func:`krpc_ScanSat_Scanner` or :func:`krpc_ScanSat_Scanners`. | Base class: :type:`krpc_SpaceCenter_Module_t` .. macro:: KRPC_CLASS_SCANSAT_SCANNER The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_ScanSat_Scanner_Name(krpc_connection_t connection, char * * returnValue, krpc_ScanSat_Scanner_t instance) Name of the PartModule. For example, "ModuleEngines". Inherited from :func:`krpc_SpaceCenter_Module_Name`. .. function:: krpc_error_t krpc_ScanSat_Scanner_Part(krpc_connection_t connection, krpc_SpaceCenter_Part_t * returnValue, krpc_ScanSat_Scanner_t instance) The part that contains this module. Inherited from :func:`krpc_SpaceCenter_Module_Part`. .. function:: krpc_error_t krpc_ScanSat_Scanner_Config(krpc_connection_t connection, krpc_SpaceCenter_ConfigNode_t * returnValue, krpc_ScanSat_Scanner_t instance) The static configuration of the module, as found in the part's `cfg file `_. This provides access to data that is not exposed as a field, such as the resources produced by a generator. Returns ``nullptr`` if the module's configuration node cannot be found. Inherited from :func:`krpc_SpaceCenter_Module_Config`. .. function:: krpc_error_t krpc_ScanSat_Scanner_FieldList(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_ScanSat_Scanner_t instance) A list of all the fields of the module, including those not visible in the right-click menu of the part. Filter by :func:`krpc_SpaceCenter_PartField_Visible` to get just the visible ones. Inherited from :func:`krpc_SpaceCenter_Module_FieldList`. .. function:: krpc_error_t krpc_ScanSat_Scanner_EventList(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_ScanSat_Scanner_t instance) A list of all the events of the module, including those not currently visible or active. Events are the clickable buttons visible in the right-click menu of the part. Filter by :func:`krpc_SpaceCenter_PartEvent_Visible` and :func:`krpc_SpaceCenter_PartEvent_Active` to get just the ones shown in the menu. Inherited from :func:`krpc_SpaceCenter_Module_EventList`. .. function:: krpc_error_t krpc_ScanSat_Scanner_ActionList(krpc_connection_t connection, krpc_list_object_t * returnValue, krpc_ScanSat_Scanner_t instance) A list of all the actions of the module. These are the parts actions that can be assigned to action groups in the in-game editor. Inherited from :func:`krpc_SpaceCenter_Module_ActionList`. .. function:: krpc_error_t krpc_ScanSat_Scanner_ScanTypes(krpc_connection_t connection, krpc_ScanSat_ScanType_t * returnValue, krpc_ScanSat_Scanner_t instance) The scan types of the scanner. .. function:: krpc_error_t krpc_ScanSat_Scanner_Active(krpc_connection_t connection, bool * returnValue, krpc_ScanSat_Scanner_t instance) .. function:: krpc_error_t krpc_ScanSat_Scanner_set_Active(krpc_connection_t connection, krpc_ScanSat_Scanner_t instance, bool 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 :func:`krpc_ScanSat_InstantResourceScan` is off, or :func:`krpc_ScanSat_StockResourceScan` is off. .. function:: krpc_error_t krpc_ScanSat_Scanner_FieldOfView(krpc_connection_t connection, float * returnValue, krpc_ScanSat_Scanner_t instance) The field of view of the scanner at its best altitude, in degrees. .. function:: krpc_error_t krpc_ScanSat_Scanner_MinAltitude(krpc_connection_t connection, float * returnValue, krpc_ScanSat_Scanner_t instance) The lowest altitude the scanner scans at, in meters. .. function:: krpc_error_t krpc_ScanSat_Scanner_BestAltitude(krpc_connection_t connection, float * returnValue, krpc_ScanSat_Scanner_t instance) The lowest altitude for the full field of view, in meters. .. function:: krpc_error_t krpc_ScanSat_Scanner_MaxAltitude(krpc_connection_t connection, float * returnValue, krpc_ScanSat_Scanner_t instance) The highest altitude the scanner scans at, in meters. .. function:: krpc_error_t krpc_ScanSat_Scanner_RequiresLight(krpc_connection_t connection, bool * returnValue, krpc_ScanSat_Scanner_t instance) Whether the scanner only scans in daylight, when :func:`krpc_ScanSat_DaylightCheck` is on. .. function:: krpc_error_t krpc_ScanSat_Scanner_State(krpc_connection_t connection, krpc_ScanSat_ScannerState_t * returnValue, krpc_ScanSat_Scanner_t instance) The state of the scanner. :Game Scenes: Flight .. type:: krpc_ScanSat_ScannerState_t The state of a scanner. See :func:`krpc_ScanSat_Scanner_State`. .. macro:: KRPC_ENUMERATION_SCANSAT_SCANNERSTATE The service and enumeration ids of the enumeration, for :func:`krpc_KRPC_Type_EnumerationTypeById` and :func:`krpc_KRPC_Expression_ConstantEnumById`. .. macro:: KRPC_SCANSAT_SCANNERSTATE_OFF Switched off. .. macro:: KRPC_SCANSAT_SCANNERSTATE_OUTOFRANGE Switched on, and outside its minimum and maximum altitudes. .. macro:: KRPC_SCANSAT_SCANNERSTATE_INDARKNESS Switched on, and paused as it needs light and the ground below it is in darkness. .. macro:: KRPC_SCANSAT_SCANNERSTATE_INRANGE Scanning between its minimum and best altitudes, with a reduced field of view. .. macro:: KRPC_SCANSAT_SCANNERSTATE_INBESTRANGE Scanning between its best and maximum altitudes, with its full field of view.