Path: SCPro/ProSensors
% Two detector sun sensor. The two detectors are at an angle of alpha1 and alpha2 with respect to vertical. You get t1 and t2 from running CalibrateSunSensor. The detector 1 measurement is assumed of the form: f1 = t1(1) + t1(2)*cos(angle+alpha1)+ t1(3)*cos(angle+alpha1)^2 Type SunSensor for a demo. -------------------------------------------------------------------------- Form: angleMeas = SunSensor( t1, t2, alpha1, alpha2, f1, f2, angle ) -------------------------------------------------------------------------- ------ Inputs ------ t1 (1,3) Detector 1 coefficients [constant linear square] t2 (1,3) Detector 2 coefficients [constant linear square] alpha1 (1,1) Offset angle sensor 1 (rad) alpha2 (1,1) Offset angle sensor 2 (rad) f1 (1,:) Detector 1 measurements f2 (1,:) Detector 2 measurements angle (1,:) Angle of measurements from the normal (rad) ------- Outputs ------- angleMeas (1,:) Measured sun angle (rad) --------------------------------------------------------------------------
SCPro: ProSensors/CalibrateSunSensor Common: CommonData/SwooshWatermark Common: General/CellToMat Common: General/MatToCell Common: General/Watermark Common: Graphics/NewFig Common: Graphics/Plot2D Common: Graphics/PltStyle
Back to the SCPro Module page