Update main.c add mapping

master-latency
Alan Johnston 4 months ago committed by GitHub
parent 5db96f8e82
commit 68abd02fa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1281,17 +1281,17 @@ void get_tlm_fox() {
printf("Random Failure\n");
}
if (failureMode == FAIL_SOLAR) {
voltage[PLUS_X] = 0.0;
current[PLUS_X] = 0.0;
voltage[map[PLUS_X]] = 0.0;
current[map[PLUS_X]] = 0.0;
printf("+X Solar Simulated Failure\n");
}
if (failureMode == FAIL_DEGRADE) {
voltage[PLUS_X] = voltage[PLUS_X] * 0.5;
current[PLUS_X] = current[PLUS_X] * 0.5;
printf("+X Solar Deg Simulated Failure\n");
voltage[map[MINUS_X]] = voltage[MINUS_X] * 0.5;
current[mapa[MINUS_X]] = current[MINUS_X] * 0.5;
printf("-X Solar Deg Simulated Failure\n");
}
if (failureMode == FAIL_SHORT) {
voltage[MINUS_Y] = 0.0;
voltage[map[MINUS_Y]] = 0.0;
printf("-Y Solar SC Simulated Failure!\n");
}

Loading…
Cancel
Save

Powered by TurnKey Linux.