Sun sensors are widely used in satellite control systems for determining the sun's position relative to the satellite. Here's an algorithm in MATLAB for course sun sensor:
main.m1032 chars34 lines
Note that this algorithm assumes that the sun sensors have a linear response within their field of view. If the sensors have a non-linear response, or have limited field of view, additional logic and mathematical modeling will be required.
gistlibby LogSnag