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

State Estimation Library #7

Open tpreynolds opened 6 years ago

tpreynolds commented 6 years ago

Envelop EKF and TRIAD into a single state-estimation library block that has internal logic that switches from the TRIAD to the EKF once it has converged. The TRIAD and EKF should run in parallel always, and the EKF should switch to TRIAD in the event of gyro failure.

tpreynolds commented 6 years ago

Gonna add the following EKF tests to this issue. I called this a "stress test" for SGP4, and you can use a similar set up for this test:

Test all logic conditions in the EKF, make sure we are not updating when: -- gyro invalid -- sun invalid -- mag invalid -- eclipse -- MTs drawing too much power

MathiasKerman commented 6 years ago

Should I do this in C or in Simulink?

tpreynolds commented 6 years ago

Sorry I didn't see this comment, but Simulink. Let's get the library done so we can autocode and see if it fits on a 430; then decide from there whats the best way to proceed.

MathiasKerman commented 6 years ago

State estimation library is done, writing the stress test now.