changed /100 to /10 for temp

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

@ -1066,7 +1066,7 @@ if (firstTime != ON)
printf("Time: %f Eclipse: %d : %f %f | %f %f | %f %f\n",time, eclipse, voltage[map[PLUS_X]], voltage[map[MINUS_X]], voltage[map[PLUS_Y]], voltage[map[MINUS_Y]], current[map[PLUS_Z]], current[map[MINUS_Z]]); printf("Time: %f Eclipse: %d : %f %f | %f %f | %f %f\n",time, eclipse, voltage[map[PLUS_X]], voltage[map[MINUS_X]], voltage[map[PLUS_Y]], voltage[map[MINUS_Y]], current[map[PLUS_Z]], current[map[MINUS_Z]]);
temp += (eclipse > 0) ? ((temp_max - temp)/50.0): ((temp_min - temp)/50.0); temp += (eclipse > 0) ? ((temp_max - temp)/50.0): ((temp_min - temp)/50.0);
IHUcpuTemp = (temp + rnd_float(-0.5,+0.5)) * 100; IHUcpuTemp = (temp + rnd_float(-0.5,+0.5)) * 10;
voltage[map[BUS]] = rnd_float(4.99, 5.01); voltage[map[BUS]] = rnd_float(4.99, 5.01);
current[map[BUS]] = rnd_float(158, 171); current[map[BUS]] = rnd_float(158, 171);

Loading…
Cancel
Save

Powered by TurnKey Linux.