find out why -Xv goes to 40

pull/73/head
alanbjohnston 5 years ago committed by GitHub
parent d88973438e
commit 02b379e53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1079,6 +1079,8 @@ if (firstTime != ON)
if (mode == BPSK)
h[6] = 99;
printf("Mxv: %f \n",voltage[map[MINUS_X]]);
posXi = (int)(current[map[PLUS_X]] + 0.5) + 2048;
posYi = (int)(current[map[PLUS_Y]] + 0.5) + 2048;
posZi = (int)(current[map[PLUS_Z]] + 0.5) + 2048;
@ -1086,6 +1088,7 @@ if (firstTime != ON)
negYi = (int)(current[map[MINUS_Y]] + 0.5) + 2048;
negZi = (int)(current[map[MINUS_Z]] + 0.5) + 2048;
posXv = (int)(voltage[map[PLUS_X]] * 100);
posYv = (int)(voltage[map[PLUS_Y]] * 100);
posZv = (int)(voltage[map[PLUS_Z]] * 100);
@ -1099,6 +1102,8 @@ if (firstTime != ON)
if (payload == ON)
STEMBoardFailure = 0;
printf("NegXv: %d \n", negXv);
batteryVoltage = voltage[map[BAT]];
// if (payload == ON)

Loading…
Cancel
Save

Powered by TurnKey Linux.