Path: SC/Sensor
% Compute the parameters necessary to place a camera at a target.
Units: rECI, rBody are generally in km while radius is in m.
If camera is empty will use a default 10 degree FOV camera.
--------------------------------------------------------------------------
Form:
[qCamera,rCamera,distance] = AutoPoint( mode, camera, gTarget, rBody )
--------------------------------------------------------------------------
------
Inputs
------
mode (:) Mode, 'above', 'lvlh', 'fixed'
camera (:) Camera model from CameraDatabase
gTarget (:) CAD model of the target spacecraft
or structure with fields rECI, vECI, radius
rBody (3,1) Location of body for fixed mode (km)
-------
Outputs
-------
qCamera (4,1) World to body quaternion
rCamera (3,1) Locaton of camera in world (m)
distance (1,1) Distance between camera and target
--------------------------------------------------------------------------
AerospaceUtils: Coord/QAlign AerospaceUtils: Coord/QLVLH AerospaceUtils: Coord/U2AzEl SC: Sensor/CameraDatabase Common: Quaternion/QTForm Common: Quaternion/U2Q Imaging: Optics/AngleOfView Math: Linear/Mag Math: Linear/Unit
Back to the SC Module page