Update main.c sim mode random only 1-9

sim-fail-2
Alan Johnston 4 months ago committed by GitHub
parent e99f6b5e5f
commit f953ddd413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -555,7 +555,8 @@ int main(int argc, char * argv[]) {
if (sim_mode) {
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");
FILE * failure_mode_file = fopen("/home/pi/CubeSatSim/failure_mode.txt", "w");
fprintf(failure_mode_file, "%d", failureMode);

Loading…
Cancel
Save

Powered by TurnKey Linux.