tpreynolds / uw_hs1_adcs

Development of ADCS flight software for the HuskySat-1 mission at the University of Washington.
0 stars 2 forks source link

Sun Sensor Angle Quadrant Check #19

Closed MathiasKerman closed 6 years ago

MathiasKerman commented 6 years ago

in sunsensor_processing_lib -> angles_to_vec, the third component of the vector needs to have the correct sign depending on which quadrant the angle is in. Currently, it can only be positive

MathiasKerman commented 6 years ago

Sun sensor needs to output invalid if |alpha|,|beta| <= 60deg.

MathiasKerman commented 6 years ago

Sun sensor processing library now outputs invalid if |alpha|,|beta| >= 60deg (note the typo in the above comment), and a unit test was written for all the possible cases.

The signs of alpha and beta were also tested to make sure they are consistent with the signs of x and y in the output sun vector.

Since the library will output invalid if alpha and beta are such that z is negative, no check for the proper sign of z is included.