Closed MathiasKerman closed 6 years ago
Sun sensor needs to output invalid if |alpha|,|beta| <= 60deg.
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.
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