Camera#

type krpc_DockingCamera_Camera_t#

A camera from Docking Camera (KURS), on an onboard camera part or a docking port.

KRPC_CLASS_DOCKINGCAMERA_CAMERA#

The service and class ids of the class, for krpc_KRPC_Type_ClassTypeById().

krpc_error_t krpc_DockingCamera_Camera_Name(krpc_connection_t connection, char **returnValue, krpc_DockingCamera_Camera_t instance)#

Name of the PartModule. For example, “ModuleEngines”.

Inherited from krpc_SpaceCenter_Module_Name().

krpc_error_t krpc_DockingCamera_Camera_Part(krpc_connection_t connection, krpc_SpaceCenter_Part_t *returnValue, krpc_DockingCamera_Camera_t instance)#

The part that contains this module.

Inherited from krpc_SpaceCenter_Module_Part().

krpc_error_t krpc_DockingCamera_Camera_Config(krpc_connection_t connection, krpc_SpaceCenter_ConfigNode_t *returnValue, krpc_DockingCamera_Camera_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 krpc_SpaceCenter_Module_Config().

krpc_error_t krpc_DockingCamera_Camera_FieldList(krpc_connection_t connection, krpc_list_object_t *returnValue, krpc_DockingCamera_Camera_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 krpc_SpaceCenter_PartField_Visible() to get just the visible ones.

Inherited from krpc_SpaceCenter_Module_FieldList().

krpc_error_t krpc_DockingCamera_Camera_EventList(krpc_connection_t connection, krpc_list_object_t *returnValue, krpc_DockingCamera_Camera_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 krpc_SpaceCenter_PartEvent_Visible() and krpc_SpaceCenter_PartEvent_Active() to get just the ones shown in the menu.

Inherited from krpc_SpaceCenter_Module_EventList().

krpc_error_t krpc_DockingCamera_Camera_ActionList(krpc_connection_t connection, krpc_list_object_t *returnValue, krpc_DockingCamera_Camera_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 krpc_SpaceCenter_Module_ActionList().

krpc_error_t krpc_DockingCamera_Camera_Image(krpc_connection_t connection, krpc_bytes_t *returnValue, krpc_DockingCamera_Camera_t instance, krpc_StdLib_ImageFormat_t format, int32_t quality)#

The image from the camera, 256 by 256 pixels. Throws an exception if the camera is off or not started.

Parameters:
  • format – The format of the image.

  • quality – The quality of a JPEG image, from 1 to 100.

Returns:

The image data.

Note

The camera is switched on by setting the IsEnabled field of its PartCameraModule or DockingCameraModule to true, which also opens the camera window.