updated to use python voltcurrent.py

pull/54/head
alanbjohnston 6 years ago committed by GitHub
parent c9311b1499
commit 8579fe6216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -168,14 +168,14 @@ int main(int argc, char *argv[]) {
}
printf("\n");
printf("+X | % 4.2fV % 6.0fmA \n", voltage[map[PLUS_X]], current[map[PLUS_X]]);
printf("+Y | % 4.2fV % 6.0fmA \n", voltage[map[PLUS_Y]], current[map[PLUS_Y]]);
printf("+Z | % 4.2fV % 6.0fmA \n", voltage[map[PLUS_Z]], current[map[PLUS_Z]]);
printf("-X | % 4.2fV % 6.0fmA \n", voltage[map[MINUS_X]], current[map[MINUS_X]]);
printf("-Y | % 4.2fV % 6.0fmA \n", voltage[map[MINUS_Y]], current[map[MINUS_Y]]);
printf("-Z | % 4.2fV % 6.0fmA \n", voltage[map[MINUS_Z]], current[map[MINUS_Z]]);
printf("Bat | % 4.2fV % 6.0fmA \n", voltage[map[BAT]], current[map[BAT]]);
printf("Bus | % 4.2fV % 6.0fmA \n\n", voltage[map[BUS]], current[map[BUS]]);
printf("+X | % 4.2fV % 5.0fmA \n", voltage[map[PLUS_X]], current[map[PLUS_X]]);
printf("+Y | % 4.2fV % 5.0fmA \n", voltage[map[PLUS_Y]], current[map[PLUS_Y]]);
printf("+Z | % 4.2fV % 5.0fmA \n", voltage[map[PLUS_Z]], current[map[PLUS_Z]]);
printf("-X | % 4.2fV % 5.0fmA \n", voltage[map[MINUS_X]], current[map[MINUS_X]]);
printf("-Y | % 4.2fV % 5.0fmA \n", voltage[map[MINUS_Y]], current[map[MINUS_Y]]);
printf("-Z | % 4.2fV % 5.0fmA \n", voltage[map[MINUS_Z]], current[map[MINUS_Z]]);
printf("Bat | % 4.2fV % 5.0fmA \n", voltage[map[BAT]], current[map[BAT]]);
printf("Bus | % 4.2fV % 5.0fmA \n\n", voltage[map[BUS]], current[map[BUS]]);
return 0;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.