Path: SC/Sensor
% Power series model for the output of an analog sun sensor. Given the equation m = a(1)*x^1 + a(2)*x^2 +... solves for x using a Newton-Raphson method. Assumes that x � m/a(1), i.e. the other coefficients are small. Since version 1. -------------------------------------------------------------------------- Form: [x, e] = SSEye( m, a ) -------------------------------------------------------------------------- ------ Inputs ------ m (n) Magnitude of each sun sensor output a (m) Eye coefficients where m = a[1]*x^1 + a[2]*x^2 +... ------- Outputs ------- x (n) Ideal output (cosine of angle) e (n) Error --------------------------------------------------------------------------
Back to the SC Module page