Update main.c adde FAIL_UNPLUG

sim-fail-4
Alan Johnston 4 months ago committed by GitHub
parent 56918cbc15
commit 8d1c26dbd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1254,6 +1254,11 @@ void get_tlm_fox() {
// failureMode = (int) rnd_float(1, FAIL_COUNT);
// printf("Random Failure\n");
// }
if (failureMode == FAIL_UNPLUG) {
voltage[map[PLUS_X]] = rnd_float(0.8, 0.95);
current[map[PLUS_X]] = 0.0;
printf("+X Solar Unplugged Failure\n");
}
if (failureMode == FAIL_SOLAR) {
voltage[map[PLUS_X]] = 0.0;
current[map[PLUS_X]] = 0.0;

Loading…
Cancel
Save

Powered by TurnKey Linux.