|
|
|
@ -555,7 +555,8 @@ int main(int argc, char * argv[]) {
|
|
|
|
|
|
|
|
|
|
|
|
if (sim_mode) {
|
|
|
|
if (sim_mode) {
|
|
|
|
if (loop % 10 == 0) {
|
|
|
|
if (loop % 10 == 0) {
|
|
|
|
failureMode = (int) rnd_float(1, FAIL_COUNT);
|
|
|
|
// failureMode = (int) rnd_float(1, FAIL_COUNT);
|
|
|
|
|
|
|
|
failureMode = (int) rnd_float(1, 9);
|
|
|
|
printf("Sim Mode Random Failure Change\n");
|
|
|
|
printf("Sim Mode Random Failure Change\n");
|
|
|
|
FILE * failure_mode_file = fopen("/home/pi/CubeSatSim/failure_mode.txt", "w");
|
|
|
|
FILE * failure_mode_file = fopen("/home/pi/CubeSatSim/failure_mode.txt", "w");
|
|
|
|
fprintf(failure_mode_file, "%d", failureMode);
|
|
|
|
fprintf(failure_mode_file, "%d", failureMode);
|
|
|
|
|