Path: SCPro/ProSensors
% Returns the planet centroid and the local stars locations.
Assumes a pinhole camera model. It returns the pixel locations for
the planet/moon/asteroid and any stars in the field of view. It also
returns the chordwidth (diameter) of the planet/moon/asteroid.
You pass it the ECI vectors for the planets, moons or asteroids of
interest. You load the star catalog data structure using LoadCatalog.
d.starCatalog = LoadCatalog( 'Hipparcos' ); Hipparcos is the default.
d.camera = PinholeCameraStruct;
q may be an array of quaternions. It will animate the star field.
You can use this as a star camera by setting d.xPlanet = [];
Type NavigationCamera to see a movie of stars changing as the camera
rotates. The demo has the spacecraft at a distance of 50000 km from
the center of the Earth. It is first looking at the moon then rotates
to see the Earth.
--------------------------------------------------------------------------
Form:
d = NavigationCamera; % data structure
y = NavigationCamera( x, d )
--------------------------------------------------------------------------
------
Inputs
------
x (3,1) ECI position of sensor
d (.) Data structure
.xPlanet (3,:) Planet locations (km)
.radiusPlanet (1,:) Planet radius (km)
.namePlanet {:} Name of the planet
.starCatalog (.) Star catalog data structure
.camera (.) See PinholeStarCamera
.q (4,:) Quaternion from ECI to the navigation camera
-------
Outputs
-------
y (.) Measurement data structure
.star (.) Star measurement data structure
.planet (2,:) Planet centroid
.radius (1,:) Planet radius (km)
.ang (1,:) Planet angular radius (rad)
.uPlanet (3,:) Unit vectors for the planets
.outside (1,1) 2 means planet visible, 1 means planet not
in camera fov
--------------------------------------------------------------------------
SC: Sensor/U2Pix SCPro: ProSensors/StarCameraViewer SpacecraftEstimation: StellarAttDet/PinholeCameraStruct SpacecraftEstimation: StellarAttDet/PinholeStarCamera SpacecraftEstimation: StellarCatalog/LoadCatalog Common: Quaternion/Q2Mat Math: Linear/Mag Math: Linear/Unit
Back to the SCPro Module page