fsCameraGet

The fsCameraGet function is used to get the current camera settings, regardless of whether it has been acquired or not.

 

Syntax
bool fsCameraGet(
    int referential,
    FsCameraData* pOut
    );

 

Members
Parameters Description
referential

The referential to use for the camera position values (including the camera "target" position values, if used), can be one of the following FsPositionReferential enum members:

  1. FS_POSITION_REFERENTIAL_AIRCRAFT - The position is an offset from the aircraft Datum Reference Point (expressed in meters).
  2. FS_POSITION_REFERENTIAL_WORLD - The position is expressed using latitude, longitude, and altitude.
  3. FS_POSITION_REFERENTIAL_EYEPOINT - The position is an offset from the aircraft pilot eyepoint (expressed in meters).
pOut This will contain a pointer to a FsCameraData struct with information on the current camera. The memory for this must be allocated by the client.

 

Return Values

The function returns false if it was not possible to send the request, otherwise it will return true.

 

Example

Request camera data:

FsCameraData cameraData = {};
if (!fsCameraGet(FS_POSITION_REFERENTIAL_AIRCRAFT, &cameraData))
{
    printf("Error getting camera data");
    return true;
}

 

Remarks

N/A

 

Related Topics

  1. WebAssembly
  2. Camera API

0/255