Change failureMode range from 1-9 to 1-10

master-fsk-cw
Alan Johnston 2 weeks ago committed by GitHub
parent 4cff4980f8
commit b036c1f60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -613,7 +613,7 @@ int main(int argc, char * argv[]) {
// if (loop % 10 == 0) { // if (loop % 10 == 0) {
if ((loopTime - failTime) > fail_time * 1000) { if ((loopTime - failTime) > fail_time * 1000) {
// failureMode = (int) rnd_float(1, FAIL_COUNT); // failureMode = (int) rnd_float(1, FAIL_COUNT);
failureMode = (int) rnd_float(1, 9); failureMode = (int) rnd_float(1, 10);
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);

Loading…
Cancel
Save

Powered by TurnKey Linux.