pull/116/head
alanbjohnston 5 years ago committed by GitHub
parent af945401f7
commit 5a8adeea2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1068,6 +1068,7 @@ void get_tlm_fox() {
float voltage[9], current[9], sensor[17], other[3];
char sensor_payload[500];
memset(voltage, 0, sizeof(voltage));
memset(current, 0, sizeof(current));
memset(sensor, 0, sizeof(sensor));
@ -1205,7 +1206,7 @@ else {
}
fclose(cpuTempSensor);
char sensor_payload[500];
if (payload == ON) {
STEMBoardFailure = 0;
@ -1269,9 +1270,18 @@ else {
}
}
if ((sensor_payload[0] == 'O') && (sensor_payload[1] == 'K')) {
for (count1 = 0; count1 < 17; count1++) {
if (sensor[count1] < sensor_min[count1])
sensor_min[count1] = sensor[count1];
if (sensor[count1] > sensor_max[count1])
sensor_max[count1] = sensor[count1];
// printf("Smin %f Smax %f \n", sensor_min[count1], sensor_max[count1]);
}
for (count1 = 0; count1 < 8; count1++) {
for (int count1 = 0; count1 < 8; count1++) {
if (voltage[count1] < voltage_min[count1])
voltage_min[count1] = voltage[count1];
if (current[count1] < current_min[count1])
@ -1285,14 +1295,7 @@ else {
// printf("Vmin %f Vmax %f Imin %f Imax %f \n", voltage_min[count1], voltage_max[count1], current_min[count1], current_max[count1]);
}
if ((sensor_payload[0] == 'O') && (sensor_payload[1] == 'K')) {
for (count1 = 0; count1 < 17; count1++) {
if (sensor[count1] < sensor_min[count1])
sensor_min[count1] = sensor[count1];
if (sensor[count1] > sensor_max[count1])
sensor_max[count1] = sensor[count1];
// printf("Smin %f Smax %f \n", sensor_min[count1], sensor_max[count1]);
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.