PlanetSensorDualScan:

Path: SCPro/ProSensors

% A dual scan Earth Sensor model
 This function models a dual scan earth sensor. It has two sensors at
 different roll angles. It measures the chordwidth given by the two scans
 and then uses that to compute roll and pitch. The offset of the scan from
 vertical axis determines pitch. It also computes a standard, the average
 of the two so that if one scan is off the Earth it can still produce
 roll and pitch angles. It updates d each time it is called. The standard
 chord is updated sequentially wih each sample.

 Type PlanetSensorDualScan for a demonstration of a spacecraft in
 geosynchronous orbit.
--------------------------------------------------------------------------
   Form:
   d =  PlanetSensorDualScan;
   [roll, pitch, d] = PlanetSensorDualScan(r, q, d)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r         (3,:)   Position vector in the ECI frame (km)
   q         (4,:)   Quaternion ECI to Body
   d         (.)     Sensor data structure
                     .cant     (2,1) Cant angle from rotation axis (rad)
                     .sC       (1,1) Standard chord  (rad)
                     .uB       (3,1) Boresight vector
                     .uS       (3,1) Scan vector
                     .aP       (1,1) Planet radius
                     .sig      (1,1) 1 sigma chordwidth noise
                     .useScan  (2,1) true if use that scan
                     .valid    (1,:) true if data is valid

   -------
   Outputs
   -------
   roll      (1,:)   Roll (rad)
   pitch     (1,:)   Pitch (rad)
   d         (.)     Sensor data structure

--------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/QLVLH
AerospaceUtils: Coord/RollPitchToQECI
Orbit: OrbitCoord/SLR
Orbit: OrbitMechanics/RVOrbGen
SC: BasicOrbit/CP2I
SC: BasicOrbit/E2M
SC: BasicOrbit/E2Nu
SC: BasicOrbit/M2E
SC: BasicOrbit/M2EApp
SC: BasicOrbit/M2EEl
SC: BasicOrbit/M2EHy
SC: BasicOrbit/Nu2E
SC: BasicOrbit/Nu2M
SC: BasicOrbit/RVFromKepler
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/Axis3D
Common: Graphics/Mesh2
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/Plot3D
Common: Graphics/PltStyle
Common: Graphics/TimeLabl
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/Mat2Q
Common: Quaternion/Q2Mat
Common: Quaternion/QForm
Common: Quaternion/QPose
Math: Linear/Cross
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Unit

Back to the SCPro Module page