forked from UC-Davis-SSS-ADCS-Software/efos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ADCS.c
43 lines (38 loc) · 981 Bytes
/
ADCS.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**@file ADCS.c
*
* @brief Implementation of Intellisat's interface to the ADCS software.
*
* @author Jacob Tkeio ([email protected])
* @date 8/5/2023
*/
#include "ADCS.h"
#include "virtual_intellisat.h"
#include "determination.h"
#include "detumble.h"
adcs_main_status
ADCS_MAIN(adcs_mode mode) {
switch(mode) {
case ADCS_DETUMBLE:
detumble_status detumble_status = detumble();
switch(detumble_status) {
case DETUMBLE_ERROR:
return ADCS_MAIN_DETUMBLE_ERROR;
break;
}
break;
case ADCS_HDD_EXP_ANGVEL:
break;
case ADCS_HDD_EXP_TRIAD:
break;
case ADCS_HDD_EXP_RAMP:
break;
}
}
adcs_mode ADCS_recommend_mode(){
static int first_time = 1; //Starts as true on reboot
if (first_time) {
return ADCS_HDD_EXP_ANGVEL;
} else {
// loop through other experiments
}
}