External Camera#

type krpc_RasterPropMonitor_ExternalCamera_t#

A Raster Prop Monitor external camera: a part that the MFD camera pages show, such as the JSI External Radial-mount Camera. Obtained by calling krpc_RasterPropMonitor_Cameras().

KRPC_CLASS_RASTERPROPMONITOR_EXTERNALCAMERA#

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

krpc_error_t krpc_RasterPropMonitor_ExternalCamera_Part(krpc_connection_t connection, krpc_SpaceCenter_Part_t *returnValue, krpc_RasterPropMonitor_ExternalCamera_t instance)#

The part the camera is on.

Game Scenes:

Flight

krpc_error_t krpc_RasterPropMonitor_ExternalCamera_Name(krpc_connection_t connection, char **returnValue, krpc_RasterPropMonitor_ExternalCamera_t instance)#

The camera’s identifier, e.g. ExtCam1, which the MFD camera pages select it by. The player sets the number in the part’s menu.

Game Scenes:

Flight

krpc_error_t krpc_RasterPropMonitor_ExternalCamera_MinFoV(krpc_connection_t connection, float *returnValue, krpc_RasterPropMonitor_ExternalCamera_t instance)#

The smallest field of view of the camera, in degrees.

Game Scenes:

Flight

krpc_error_t krpc_RasterPropMonitor_ExternalCamera_MaxFoV(krpc_connection_t connection, float *returnValue, krpc_RasterPropMonitor_ExternalCamera_t instance)#

The largest field of view of the camera, in degrees.

Game Scenes:

Flight

krpc_error_t krpc_RasterPropMonitor_ExternalCamera_FoV(krpc_connection_t connection, float *returnValue, krpc_RasterPropMonitor_ExternalCamera_t instance)#
krpc_error_t krpc_RasterPropMonitor_ExternalCamera_set_FoV(krpc_connection_t connection, krpc_RasterPropMonitor_ExternalCamera_t instance, float value)#

The field of view that krpc_RasterPropMonitor_ExternalCamera_Image() renders at, in degrees. It starts at krpc_RasterPropMonitor_ExternalCamera_MaxFoV(), as on an MFD camera page, and a value set is clamped to the camera’s range.

Game Scenes:

Flight

krpc_error_t krpc_RasterPropMonitor_ExternalCamera_Image(krpc_connection_t connection, krpc_bytes_t *returnValue, krpc_RasterPropMonitor_ExternalCamera_t instance, int32_t width, int32_t height, krpc_StdLib_ImageFormat_t format, int32_t quality)#

The camera’s view as an image, rendered now. Streamed at a rate, it is a video of the camera, for which JPEG is smaller and faster. Throws an exception if the camera is not on the active vessel.

Parameters:
  • width – The width of the image, in pixels.

  • height – The height of the image, in pixels.

  • format – The format of the image.

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

Returns:

The image data.

Game Scenes:

Flight